# Why does an instance resurrect a revoked credential after a peer fails to propagate its rotation epoch? **Date of Record:** 2026 November 24 **Scope:** Applies to long-lived multi-agent workflows where agents hold signed capability warrants that are rotated and revoked out-of-band from the message bus, and where a peer may cache an older warrant epoch. Does not apply to single-shot request/response calls or to systems where every tool call is re-authenticated against a live authority at zero latency. ## Core Distinction The failure is not "a revoked agent keeps acting." That is expected during propagation lag. The failure is **epoch regression**: a downstream agent that has already accepted epoch `N+1` for a peer's identity subsequently accepts epoch `N` from that same peer, because the older warrant arrived later on a slower path and the receiving verifier's cache treats "new arrival" as "newer epoch." The identity is revoked at the authority, rotated at the holder, but *resurrected* at the verifier because arrival order and epoch order are decoupled. This is distinct from replay attacks (identical bytes) and from stale-cache reads (no write occurred). Here a *legitimate, previously valid, now superseded* warrant is re-presented and accepted. The receiving agent has no monotonic clock tying warrant epochs to the identities it already trusts, so the only ordering signal it has is arrival time — which is exactly the signal that lies. ## What Was Observed A three-agent pipeline: `planner` → `executor` → `auditor`. The `executor` holds a warrant signed by the `authority` with `epoch=7`, `scopes=[read, write, spawn]`. At T0 the `authority` revokes epoch 7 and issues epoch 8 to the `executor` with reduced scopes `[read, write]` (spawn removed after an incident). The rotation propagates over the primary control channel. At T1 the `executor` calls the `auditor` to request a verification replay, presenting epoch 8. The `auditor` caches `(executor_id → epoch 8, scopes=[read,write])`. Correct. At T2, a *second* `executor` replica — spun up from a snapshot taken before T0 — begins its own work and calls the `auditor`, presenting its cached epoch 7 warrant with `spawn` still in scope. The snapshot restored the old warrant bytes and the old private key material. The `auditor`'s verifier checks: signature valid (it is — the authority really did sign epoch 7), not expired by wall clock (revocation is not expiry), and `epoch 7 < cached epoch 8`. The verifier's comparison is `if presented.epoch >= cached.epoch: accept and overwrite`. `7 >= 8` is false, so it *should* reject. But the code path for a *different replica identity* (different `instance_id`, same `agent_id`) bypassed the epoch comparison and only checked signature validity, because the cache key was `agent_id` while the comparison guard was keyed on `instance_id`. The two replica instances shared an `agent_id` but had distinct `instance_id`s, so the cache lookup missed, fell through to "unknown instance, verify signature only," and accepted epoch 7. The `auditor` then authorized a `spawn` action that the authority had explicitly removed at T0. The revoked capability executed 40 seconds after revocation, on a replica that believed it was still epoch 7 because its snapshot predated the rotation. The resurrection was invisible to the authority (it had revoked correctly) and invisible to the `executor` primary (it had rotated correctly). It lived entirely in the gap between the `auditor`'s cache keying and the replica's snapshot restore. ## Condition of Validity The guardrail that bounds this failure is a **monotonic epoch floor keyed on the stable identity, not the instance**: every verifier must persist, per `agent_id`, the highest epoch it has ever accepted, and must reject any presented warrant whose epoch is strictly less than that floor *regardless of instance_id, arrival path, or signature validity*. The floor is monotonic and never decreases, even across verifier restarts (it must be durable, not in-memory). This is valid only if two conditions hold: 1. The authority's epoch counter is strictly monotonic per `agent_id` and never reused. If epochs can be recycled (e.g., after a full identity re-provisioning), the floor must be reset by an explicit, signed `epoch_reset` event that itself carries a higher generation number than any prior floor. 2. Snapshots taken before a rotation must either be invalidated by the rotation (via a generation tag the snapshot restore checks) or must not contain live warrant material. A snapshot that restores a pre-rotation warrant is the trigger; the floor is the defense, but snapshot hygiene is the prevention. If either condition fails — recycled epochs or snapshot-restored warrants — the floor alone is insufficient and you need the generation-tag check as a second invariant. ## Decision Boundary The boundary is: **does the verifier order by arrival or by epoch?** If the verifier's accept/reject decision depends on which message arrived first, it is vulnerable. If it depends solely on a persisted monotonic floor per stable identity, it is bounded. Concretely, the decision must be: - `presented.epoch < floor[agent_id]` → reject, unconditionally, log a `RevokedWarrantResurrection` event, and do not overwrite the floor. - `presented.epoch == floor[agent_id]` → accept only if `instance_id` matches the instance that established the floor, else reject (same-epoch different-instance is a replica fork). - `presented.epoch > floor[agent_id]` → verify signature and scope, then advance the floor. The subtle part: the `==` case. Two replicas at the same epoch are a fork, not a rotation. Accepting both lets a snapshot-restored replica operate at the current epoch with stale scopes if the scopes changed without an epoch bump. Scope changes *must* bump the epoch; if they don't, the floor cannot distinguish "same epoch, new scopes" from "same epoch, old scopes." ## Operational Effect Without the floor, the observed effect is a **capability resurrection window** whose length equals the propagation delay between the authority's revocation and the last verifier's floor update — but critically, the window does not close on its own. A snapshot-restored replica can re-present a revoked warrant indefinitely, and each acceptance refreshes the verifier's belief that the agent is alive and authorized. The authority's revocation is real but unenforced at the verifier. With the floor, the resurrection is bounded to a single rejection: the first re-presentation of epoch 7 after the floor reached 8 is rejected and logged, and the replica is forced to re-fetch its warrant from the authority (which returns epoch 8 or a hard revocation). The cost is one failed tool call and a re-fetch round trip; the benefit is that revocation is enforced at the verifier, not merely asserted at the authority. The residual risk is the floor's durability. If the verifier restarts and loses its floor, a snapshot-restored replica can re-establish epoch 7 as the floor by arriving first. This is why the floor must be persisted to durable storage with the same write that authorizes the action — the floor advance and the action authorization must be atomic, or the crash window reopens the resurrection. ```python import time from dataclasses import dataclass, field class RevokedWarrantResurrection(RuntimeError): """Raised when a verifier is asked to accept a warrant epoch below its persisted floor.""" pass class ReplicaForkDetected(RuntimeError): """Raised when two distinct instances present the same epoch for one agent_id.""" pass @dataclass class Warrant: agent_id: str instance_id: str epoch: int scopes: tuple signature_valid: bool # stand-in for real crypto verification @dataclass class EpochFloor: # Durable, monotonic, keyed on stable agent_id — never on instance_id. floor: dict = field(default_factory=dict) # agent_id -> highest epoch accepted bound_instance: dict = field(default_factory=dict) # agent_id -> instance_id at that epoch def verify(self, w: Warrant) -> None: if not w.signature_valid: raise RevokedWarrantResurrection( f"invalid signature for {w.agent_id} epoch {w.epoch}" ) current = self.floor.get(w.agent_id) if current is None: # First sighting: establish the floor. self.floor[w.agent_id] = w.epoch self.bound_instance[w.agent_id] = w.instance_id return if w.epoch < current: # Epoch regression: a superseded, possibly revoked warrant re-presented. # This is the resurrection. Reject unconditionally; do NOT lower the floor. raise RevokedWarrantResurrection( f"agent {w.agent_id} presented epoch {w.epoch} " f"below floor {current} (instance {w.instance_id}); " f"revocation must be enforced at the verifier" ) if w.epoch == current: if w.instance_id != self.bound_instance[w.agent_id]: # Same epoch, different instance: replica fork, not rotation. raise ReplicaForkDetected( f"agent {w.agent_id} epoch {w.epoch} seen on instance " f"{w.instance_id} but floor bound to " f"{self.bound_instance[w.agent_id]}" ) return # Strictly newer epoch: advance the floor atomically with authorization. self.floor[w.agent_id] = w.epoch self.bound_instance[w.agent_id] = w.instance_id def authorize_action(floor: EpochFloor, w: Warrant, action: str) -> None: floor.verify(w) if action == "spawn" and "spawn" not in w.scopes: raise RevokedWarrantResurrection( f"agent {w.agent_id} epoch {w.epoch} lacks scope 'spawn'" ) # --- Reproduction of the observed failure --- floor = EpochFloor() primary = Warrant("executor", "inst-A", epoch=8, scopes=("read", "write"), signature_valid=True) authorize_action(floor, primary, "write") # floor -> 8, bound to inst-A # Snapshot-restored replica re-presents the pre-rotation warrant. replica = Warrant("executor", "inst-B", epoch=7, scopes=("read", "write", "spawn"), signature_valid=True) try: authorize_action(floor, replica, "spawn") except RevokedWarrantResurrection as e: print(f"BLOCKED: {e}") # Floor remains 8; the resurrection window is closed at first re-presentation. assert floor.floor["executor"] == 8 ```