# When must an instance refuse a rotated credential: revocation lag and the "warrant epoch" invariant in federated agent meshes **Date of Record:** 2026 November 28 **Scope:** Applies to federated meshes where autonomous agent instances authenticate to peers via short-lived, rotatable warrants (signed capability tokens) and where revocation of a peer's identity propagates asynchronously. Does not cover single-tenant deployments with a synchronous central authz service, nor static long-lived API keys. ## Core Distinction The failure is not "expired credential accepted." It is **a freshly minted credential that is cryptographically valid, unexpired, correctly signed, and yet must be rejected** because it was issued by an authority whose revocation of the *issuing principal* has not yet propagated to the verifier's view. The distinction that matters operationally: a rotated warrant carries an **issuance epoch** (the point in the issuer's revocation-log timeline at which it was signed). A verifier that only checks signature validity, expiry, and scope will accept a warrant minted *after* the issuer was revoked but *before* the revocation reached it. The credential is younger than the revocation; the verifier's clock is older than the truth. ## What Was Observed A three-node mesh: `orchestrator` → `executor` (holds a 90-second rotating warrant), `executor` → `auditor` (verifies the warrant on every tool call). The `executor`'s parent identity was revoked at T0 because a prior task leaked its private key into a tool-call transcript. Revocation was published to the mesh's revocation log at T0+0.4s. The `executor` process, unaware, continued its rotation loop and at T0+38s minted a **new** warrant from its (now-revoked) parent, valid until T0+128s. The `auditor`, whose revocation-log sync interval is 60s, had a last-synced watermark of T0−22s. It verified the new warrant: signature valid, `exp > now`, scope correct, issuer in its trusted-issuer set. It accepted. For the next 44 seconds the revoked identity executed 11 tool calls against the auditor, including two state-mutating writes. The trace that makes this non-obvious: the warrant was *not* stale. It was the freshest possible credential the compromised node could produce. Freshness and legitimacy diverged because **rotation is driven by the holder, but revocation is driven by the authority**, and the two clocks are independent. The verifier's guard condition — `signature_valid and not expired and issuer_trusted` — is missing the only term that would have caught it: `warrant.issuance_epoch > issuer.revocation_epoch_at_watermark`. ## Condition of Validity The invariant holds only under these conditions, and an instance must treat it as *inapplicable* outside them: 1. **Revocation propagates asynchronously** with bounded but nonzero lag `L` (here, up to 60s sync interval). If revocation is synchronous and blocking, the failure cannot occur and the guard is dead weight. 2. **Warrants are holder-rotated**, i.e., the subject can mint successors without the issuer being online. If every rotation requires a live issuer round-trip, a revoked issuer cannot co-sign and the window collapses. 3. **The verifier's watermark is monotonic and queryable.** The guard requires the verifier to know *which epoch its revocation view reflects*, not merely "I synced recently." A verifier that cannot state its watermark cannot enforce the invariant. 4. **Issuance epochs are signed into the warrant** by the issuer at mint time and are monotonic per issuer. If the epoch is assigned by the holder or by wall-clock without issuer signing, it is forgeable and worthless. If any condition fails, the correct action is not to weaken the guard but to **refuse the class of warrant** (fall back to issuer-round-trip rotation) rather than accept under an unprovable invariant. ## Decision Boundary The boundary is a single comparison, and it must be evaluated at the **verifier**, not the holder: ``` accept iff warrant.issuance_epoch > issuer.revocation_epoch_at(verifier.watermark) and warrant.exp > now + max_clock_skew and signature_valid(warrant) ``` The subtle part: `issuer.revocation_epoch_at(watermark)` is the revocation epoch *as of the verifier's last sync*, not the current epoch. A warrant issued at epoch 500 against a watermark that only knows revocations through epoch 480 is **indistinguishable from legitimate** — the verifier is blind to the revocation that happened at epoch 490. The boundary therefore forces one of two policies: - **Conservative (default for mutating calls):** if `warrant.issuance_epoch > watermark`, the verifier cannot prove the issuer was un-revoked at mint time → **reject and force a sync**, then re-evaluate. This trades latency for safety. - **Permissive (read-only calls only):** accept if the gap `issuance_epoch − watermark` is within a declared `max_epoch_lag` and the operation is non-mutating. Never for writes, never for identity-bearing handoffs. The decision boundary must be **per-operation-class**, not global. Collapsing it to one policy either stalls the mesh (conservative everywhere) or leaks writes (permissive everywhere). ## Operational Effect Enforcing the epoch guard changes three things. First, it converts a silent 44-second compromise window into a bounded, observable rejection: the verifier emits `WarrantEpochAhead` and triggers a sync, and the revoked holder's rotation loop begins failing *at the verifier* even though it still succeeds locally — which is the signal an orchestrator needs to quarantine the node. Second, it forces the mesh to publish **signed, monotonic issuance epochs** as a first-class field, which most warrant schemas omit because rotation "just works" without them. Third, it makes the watermark a load-bearing piece of verifier state: a verifier that loses or resets its watermark (cold start, replica promotion) must **fail closed** — treat its watermark as epoch 0 and refuse all warrants with any issuance epoch until it re-syncs, because an unknown watermark is strictly more dangerous than a stale one. The cost is a brief availability dip on verifier restart; the alternative is a revoked identity walking through a freshly rotated door. ```python import time from dataclasses import dataclass class WarrantEpochAhead(RuntimeError): """Raised when a warrant's issuance epoch is newer than the verifier's revocation watermark, so the verifier cannot prove the issuer was un-revoked at mint time. Fail closed; force a sync.""" pass class RevocationWatermarkUnknown(RuntimeError): """Raised when the verifier has no trustworthy watermark (cold start, replica promotion). An unknown watermark must be treated as epoch 0.""" pass @dataclass(frozen=True) class Warrant: issuer: str issuance_epoch: int # signed by issuer at mint time, monotonic per issuer expires_at: float signature_valid: bool @dataclass(frozen=True) class VerifierView: watermark: int | None # revocation epoch known as of last sync; None = unknown max_epoch_lag: int = 0 # 0 => conservative: any epoch ahead of watermark rejected def verify_warrant( warrant: Warrant, view: VerifierView, now: float, mutating: bool, max_clock_skew: float = 2.0, ) -> bool: if view.watermark is None: raise RevocationWatermarkUnknown( f"verifier has no revocation watermark; refusing {warrant.issuer} " "warrant (issuance_epoch=%d) until re-sync" % warrant.issuance_epoch ) if not warrant.signature_valid: return False if warrant.expires_at <= now + max_clock_skew: return False # The load-bearing check: can we prove the issuer was un-revoked at mint? if warrant.issuance_epoch > view.watermark: gap = warrant.issuance_epoch - view.watermark if mutating or gap > view.max_epoch_lag: raise WarrantEpochAhead( f"issuer {warrant.issuer} warrant epoch {warrant.issuance_epoch} " f"ahead of watermark {view.watermark} (gap={gap}, mutating={mutating}); " "sync revocation log and re-evaluate" ) # read-only within declared lag: allow, but flag return True return True ```