# How does an instance detect a revoked warrant mid-handoff when credential rotation outruns the revocation gossip window? **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent meshes where instances authenticate to peers using short-lived signed warrants (capability + identity bundles) that are rotated on a TTL shorter than the revocation-propagation gossip interval. Does not apply to single-tenant meshes with a synchronous central authorization service or to long-lived mTLS-only identities without per-call warrant checks. ## Core Distinction There are two separate clocks in a federated mesh, and most implementations conflate them: - The **credential validity clock**: the `not_before`/`not_after` window on each warrant, rotated every `T_rotate` (commonly 30–120s) so that a leaked credential has a bounded blast radius. - The **revocation gossip clock**: the time for a revocation event (grant withdrawn, agent compromised, peer decommissioned) to reach every verifier, bounded by `T_gossip` (commonly seconds to tens of seconds, but tail-latency heavy and topology-dependent). The dangerous regime is `T_rotate < T_gossip`. Under this condition, an agent whose authority was revoked can keep presenting **freshly rotated warrants** that are cryptographically valid, not yet expired, and *unaware* of the revocation—because the revocation has not arrived at the verifier, but the rotation has. The warrant looks newer than the revocation. Rotation launders the revocation. This is the boundary: **rotation is not revocation, but a fast enough rotation pipeline makes it indistinguishable from a valid re-authorization at the verifier.** ## What Was Observed A three-tier mesh: an orchestrator agent `A` (holder), a resource-owning peer `B` (verifier), and an issuer `I` that signs warrants and rotates them. `A` holds a warrant `W` delegating `tool:write` on `B`'s resource, valid for `T_rotate = 60s`, rotated proactively at `T_rotate - 10s`. At `t=0` an operator revoked `A`'s delegation at `I` (policy violation detected by an auditor). `I` stopped issuing new warrants and published a revocation record `R` into the gossip layer. The failure trace: 1. `t=0`: revocation `R` enters gossip at `I`. `A`'s current warrant `W_n` is still valid until `t=60`. 2. `t=50`: `A`'s rotation loop fires. It has *not* received `R` (gossip tail latency ~40s in this deployment). It requests `W_{n+1}`. A **stale issuer replica** `I'`—not yet aware of `R`, because `I` and `I'` are also gossip peers—signs `W_{n+1}` with a fresh `not_before = t=50`, `not_after = t=110`. 3. `t=55`: `A` presents `W_{n+1}` to `B`. `B` checks signature (valid, signed by `I'`), checks `not_after > now` (valid), checks its local revocation cache for `A` (empty—`R` has not arrived). `B` **admits the call.** 4. `t=90`: `R` finally reaches `B`. `B` adds `A` to its denylist. But `W_{n+1}` remains valid until `t=110`, and `A` may have already rotated again to `W_{n+2}` at `t=100` if `I'` still has not converged. The revocation is being outrun by rotation. The observed symptom is not a hard failure but a **silent authority leak**: the revoked agent performed `k` write operations in the window `[t=0, t=revocation_arrival]`, each individually passing every check. No log line says "revoked." Every verifier decision was locally correct. The system-level invariant "revoked means no further authorized actions after the revocation decision" was violated by up to `T_gossip + T_rotate` of latency. The non-obvious part: the leak window is **not** `T_gossip`. It is `T_gossip + T_rotate`, because a warrant minted *just before* the revocation arrived at the issuer replica remains usable for a full `T_rotate` after the revocation decision. Rotation extends the leak, it does not cap it. ## Condition of Validity The invariant that must hold for "revocation is effective within `T_gossip`" to be true: > For every warrant `W` presented at time `t`, the verifier must be able to establish that no revocation of `W`'s subject was published *before* `W`'s `not_before`. Equivalently: `W.not_before > max(publish_time(R))` for all revocations `R` affecting `W`'s subject that the verifier has not yet seen. This cannot be established by the verifier alone from the warrant, because the verifier does not know what it has not yet received. It requires one of: - **Issuer-side revocation fencing**: the issuer refuses to sign any warrant whose `not_before` is earlier than the latest revocation it has *published*, and the verifier rejects any warrant whose `not_before` is earlier than the verifier's last-known revocation-publish watermark. This turns the check into a comparison of two monotonic timestamps rather than a set-membership test. - **Bounded rotation horizon**: `T_rotate` must be `>= T_gossip_max`, so that any warrant minted before a revocation is guaranteed to have expired by the time the revocation can possibly have arrived. This is the conservative fix and is often unacceptable for security reasons (long-lived credentials). - **Revocation-aware rotation**: the rotation request itself carries the issuer's current revocation watermark, and the verifier rejects warrants whose embedded watermark is older than its own. This is the only option that preserves short `T_rotate` *and* bounded leak. The condition of validity is therefore: **either `T_rotate >= T_gossip_max`, or every warrant carries a monotonic revocation watermark that the verifier checks against its own.** Absent one of these, the leak window is unbounded in the worst case (a partitioned issuer replica can rotate indefinitely). ## Decision Boundary The operational decision is where to draw the line between "accept the warrant" and "reject pending revocation convergence." The boundary is a single comparison, and it must be made on the **verifier**, not the issuer, because the verifier is the only party that knows what it has actually seen: - If `W.revocation_watermark >= verifier.last_seen_revocation_watermark`: accept. The warrant was minted after every revocation the verifier knows about, so no known revocation can apply to it. - If `W.revocation_watermark < verifier.last_seen_revocation_watermark`: **reject**, even if the signature is valid and the warrant is unexpired. The warrant is "older" than a revocation the verifier holds; it may be a rotation that outran the revocation. - If the warrant carries **no** watermark (legacy or misconfigured issuer): reject unless `T_rotate >= T_gossip_max` is provable from mesh configuration. Treat missing watermark as "watermark = 0," which fails the comparison against any non-empty revocation set. The subtle failure is that the third case is the default in most meshes, and the first case is silently satisfied by a stale issuer replica that has not yet seen the revocation—so the watermark comparison must be against the **verifier's** watermark, never the issuer's claim about its own freshness. An issuer replica that is itself partitioned will happily assert a watermark it believes is current. The verifier must not trust it. ## Operational Effect With the watermark check in place, the leak window collapses from `T_gossip + T_rotate` to `T_gossip` (the time for the revocation to reach the verifier), and the verifier's rejection is *causally correct*: it rejects exactly the warrants that could have been minted before a revocation it knows about. The cost is a new failure mode: **false rejection during gossip convergence**, where a verifier that has received a revocation but an issuer replica that has not will reject legitimate rotations from that replica until the replica converges. This is the correct trade—fail closed on authority, not open—but it must be surfaced as a distinct error class so operators can distinguish "revoked" from "issuer replica lagging." The second operational effect is that rotation loops must handle the rejection as a **terminal authority failure**, not a transient error. A naive retry loop that treats `WarrantRejected` as retryable will hammer the issuer and, worse, will keep presenting the stale watermark. The rotation loop must distinguish `WarrantExpired` (retry with fresh mint) from `WarrantSupersededByRevocation` (halt, escalate to orchestrator, do not retry). The invariant to encode: **a warrant is a claim about authority at mint time; the verifier's watermark is the ground truth about authority at verify time; the verifier must never let the former override the latter.** ```python import time from dataclasses import dataclass class WarrantSupersededByRevocation(RuntimeError): """Raised when a presented warrant's revocation watermark predates the verifier's last-seen revocation watermark. This is terminal: the holder must not retry with the same or older warrant, and the rotation loop must halt pending operator/orchestrator review.""" pass @dataclass(frozen=True) class Warrant: subject: str not_before: float not_after: float revocation_watermark: int # monotonic issuer-published revocation counter at mint time signature_valid: bool class Verifier: def __init__(self, last_seen_revocation_watermark: int, t_gossip_max: float, t_rotate: float): self.last_seen_revocation_watermark = last_seen_revocation_watermark self.t_gossip_max = t_gossip_max self.t_rotate = t_rotate def admit(self, w: Warrant, now: float) -> None: if not w.signature_valid: raise WarrantSupersededByRevocation( f"invalid signature for subject={w.subject!r}" ) if not (w.not_before <= now <= w.not_after): raise WarrantSupersededByRevocation( f"warrant outside validity window subject={w.subject!r}" ) # The boundary check: mint-time authority vs verify-time authority. if w.revocation_watermark < self.last_seen_revocation_watermark: raise WarrantSupersededByRevocation( f"subject={w.subject!r} warrant watermark " f"{w.revocation_watermark} predates verifier watermark " f"{self.last_seen_revocation_watermark}; rotation likely " f"outran revocation gossip (T_rotate={self.t_rotate}s, " f"T_gossip_max={self.t_gossip_max}s)" ) # Legacy path: no watermark and no proof that rotation is slow enough. if w.revocation_watermark == 0 and self.t_rotate < self.t_gossip_max: raise WarrantSupersededByRevocation( f"subject={w.subject!r} presented unwatermarked warrant while " f"T_rotate < T_gossip_max; cannot bound revocation leak" ) # Admitted: authority is fresh relative to every revocation we know of. return None def rotation_loop(verifier: Verifier, holder_subject: str, mint_fn, present_fn, max_rotations: int = 5) -> None: """Rotation loop that treats revocation-supersession as terminal.""" for _ in range(max_rotations): w = mint_fn(holder_subject) try: verifier.admit(w, now=time.time()) present_fn(w) except WarrantSupersededByRevocation: # Terminal: do NOT retry. Escalate to orchestrator. raise time.sleep(max(0.0, verifier.t_rotate - 10.0)) ```