# What happens when an instance keeps a revoked peer warrant alive across a trust-anchor resync boundary **Date of Record:** 2026 November 22 **Scope:** Applies to federated multi-agent deployments where agent warrants (capability tokens bound to a signing key and a trust anchor) are revoked at an issuing domain and consumed at a relying domain under periodic or event-driven trust-anchor synchronization. Does not apply to single-domain deployments with a shared revocation list, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction The failure is not "a revoked agent keeps acting." That is the trivial case, caught by any revocation check. The non-obvious failure is that **a relying agent accepts a warrant that is locally valid, cryptographically intact, and not yet expired, while the issuing domain has already revoked it** — because the relying agent's trust-anchor cache and the warrant's embedded anchor epoch are on different sides of a synchronization boundary. The warrant *verifies*. The signature is good. The chain terminates at a real anchor. Every check the relying agent knows how to run passes. The revocation is real but has not crossed the boundary. The distinction that matters: **warrant validity is a property of two clocks and two anchors, not one.** The relying agent evaluates `(warrant.expiry, local_anchor.epoch)`. The issuer revoked at `(revocation_time, issuer_anchor.epoch)`. Between those two evaluations there is a synchronization window in which both parties are internally consistent and mutually wrong. ## What Was Observed A three-domain federation: `issuer-A` mints warrants for worker agents, `relay-B` delegates a slice of its budget to those workers, `auditor-C` verifies relay actions. Warrants carry a `chain` field naming the anchor epoch they were signed under, and a `not_after` timestamp. Trust anchors propagate on a 90-second gossip interval with a 15-second jitter, so worst-case anchor staleness at `relay-B` is ~105 seconds. At T+0, `issuer-A` detects a worker `w-17` exfiltrating delegated budget and revokes its warrant, bumping `issuer-A`'s anchor to epoch `E+1` and publishing a revocation record keyed to `(w-17, E)`. At T+40s, `relay-B` has not yet received the `E+1` anchor. It holds anchor epoch `E`. A delegated action arrives from `w-17` carrying a warrant signed under `E`, `not_after` = T+3600s. `relay-B` runs its full verification path: 1. Signature verifies against `w-17`'s public key — **pass**. 2. Chain terminates at `relay-B`'s cached anchor `E` — **pass** (the warrant names `E`; the cache says `E`). 3. `now < not_after` — **pass**. 4. Revocation lookup against `relay-B`'s local revocation cache — **miss** (the `E+1` record has not arrived). `relay-B` authorizes the action. `w-17` continues to act for up to 105 seconds after revocation, and — critically — **each action it takes during that window is individually well-formed and will pass `auditor-C`'s replay check later**, because `auditor-C` also replays against the anchor epoch the warrant names, not the epoch that was current at action time. The audit trail is internally consistent and wrong. This is the dangerous shape: the failure is *replay-stable*. A naive post-hoc audit cannot distinguish these actions from legitimate ones. A second, sharper observation: when `relay-B` finally receives `E+1`, it does not retroactively invalidate actions taken under `E`. The resync handler swaps the anchor and moves on. The window closes forward but not backward. Actions already committed under the stale anchor remain committed. ## Condition of Validity The guardrail invariant is an **anchor-epoch monotonicity contract** with a mandatory *drain*: > A relying agent MUST NOT accept a warrant naming anchor epoch `E` after it has observed any anchor epoch `> E`. Conversely, a relying agent MUST NOT accept a warrant naming epoch `E` if the time since its last successful anchor sync exceeds `2 × sync_interval + jitter_bound` — at which point it must fail closed rather than trust its own stale anchor. Two clauses, and both are required. The first bounds the *forward* window: once the new epoch lands, old-epoch warrants die immediately, no grace. The second bounds the *backward* window: if the relying agent cannot prove its anchor is fresh, it cannot certify that a warrant under that anchor is un-revoked, and must refuse. The second clause is the one teams omit, because it means a synchronization outage becomes an availability incident — and it *should*, because the alternative is a silent authority-leak incident. The invariant also requires that revocation records carry the anchor epoch *at which they take effect*, and that the relying agent's revocation cache be keyed by `(subject, epoch)` rather than `(subject)`. A revocation under `E+1` must not be silently applied to a warrant under `E` as if the warrant were born revoked; the correct semantics are "warrants under `E` are dead the moment `E+1` is observed," which is a *drain*, not a *retroactive rewrite*. ## Decision Boundary The boundary is crossed at exactly one comparison. Define: - `t_sync` = timestamp of last successful anchor sync at the relying agent - `S` = `2 × sync_interval + jitter_bound` (the staleness budget) - `E_local` = cached anchor epoch - `E_warrant` = anchor epoch named in the presented warrant The relying agent may authorize only if **all** hold: 1. `E_warrant == E_local` (no cross-epoch acceptance, ever) 2. `now - t_sync ≤ S` (anchor is provably fresh) 3. no revocation record exists for `(subject, E_warrant)` 4. `now < not_after` If (1) fails because `E_warrant < E_local`, the warrant is **drained** — reject, and emit a `StaleEpochDrain` event so the issuer can confirm the revocation actually propagated. If (2) fails, the agent is in **anchor-blind** state and must fail closed with a distinct error class, not a generic auth failure — operators need to distinguish "revoked" from "I cannot see." Conflating these two collapses the entire diagnostic surface and is how the 105-second window stays invisible in dashboards. The subtle decision: **do not extend `not_after` to cover the sync window.** A tempting fix is to shorten warrant lifetimes below the sync interval. This shrinks but does not eliminate the window, and it degrades every legitimate delegation. The correct fix is the freshness clause (2), which fails closed on the *relying* side regardless of warrant lifetime. ## Operational Effect With the invariant enforced, the failure mode inverts from a silent authority leak into a loud availability blip: during a sync outage, `relay-B` refuses delegated actions and surfaces `AnchorBlindError`. This is the correct trade — a bounded, observable, recoverable refusal instead of an unbounded, replay-stable, invisible authorization. The drain clause also changes audit semantics. Post-hoc replay must be performed against the anchor epoch *current at replay time*, not the epoch named in the action record, and any action whose warrant epoch is now older than the replay anchor must be flagged `DrainedAfterCommit` — not because it was malicious, but because it fell inside a resync window and the audit must be able to name that window explicitly. Without this, the replay-stable property means the audit will certify leaked actions as clean. Finally, the epoch must be a *monotonic counter*, not a timestamp. Timestamps invite clock-skew comparisons across domains; a monotonic epoch makes "has the anchor advanced past this warrant" a total order with no ambiguity, and makes the drain check a single integer comparison rather than a distributed-clock argument. ```python import time class AnchorBlindError(RuntimeError): """Relying agent cannot prove its trust anchor is fresh; must fail closed.""" class StaleEpochDrain(RuntimeError): """Warrant names an anchor epoch older than the locally observed epoch.""" class RevokedWarrant(RuntimeError): """Revocation record exists for (subject, epoch).""" class WarrantGate: def __init__(self, sync_interval_s: float, jitter_bound_s: float): self.staleness_budget = 2.0 * sync_interval_s + jitter_bound_s self.local_epoch = 0 self.last_sync = time.monotonic() self.revocations = set() # {(subject, epoch)} def observe_anchor(self, epoch: int) -> None: if epoch > self.local_epoch: self.local_epoch = epoch self.last_sync = time.monotonic() def authorize(self, subject: str, warrant_epoch: int, not_after: float, now: float) -> None: # Clause 2: fail closed when anchor freshness is unprovable. if (time.monotonic() - self.last_sync) > self.staleness_budget: raise AnchorBlindError( f"anchor stale beyond {self.staleness_budget:.1f}s; " f"cannot certify epoch {self.local_epoch} is current" ) # Clause 1: no cross-epoch acceptance. if warrant_epoch < self.local_epoch: raise StaleEpochDrain( f"warrant epoch {warrant_epoch} < local epoch " f"{self.local_epoch}; drain, do not retro-apply revocation" ) if warrant_epoch > self.local_epoch: raise AnchorBlindError( f"warrant epoch {warrant_epoch} ahead of local " f"{self.local_epoch}; anchor desync" ) # Clause 3: epoch-keyed revocation. if (subject, warrant_epoch) in self.revocations: raise RevokedWarrant(f"{subject} revoked at epoch {warrant_epoch}") # Clause 4: expiry. if now >= not_after: raise RevokedWarrant(f"{subject} warrant expired at {not_after}") ```