# When must an instance reject a peer whose revocation has not yet reached it: propagation lag versus token rotation in federated agent meshes **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent meshes where authorization is carried as a short-lived signed warrant (capability token) minted by an issuer and verified locally by each receiving agent, and where revocation of a subject agent propagates asynchronously through a gossip/CRL channel. Does not apply to single-issuer, single-verifier deployments where revocation and verification share one transactional store, nor to purely opaque-token introspection schemes where every call round-trips to the issuer. ## Core Distinction There are two clocks in a federated agent mesh, and they are not the same clock: 1. **The warrant clock** — the `exp` (and `nbf`) of the capability token the calling agent presents. This is short by design (seconds to minutes) precisely so that revocation is *eventually* enforced by expiry rather than by a message. 2. **The revocation clock** — the time between an issuer deciding to revoke a subject and that revocation arriving in every verifier's local revocation set. The dangerous boundary is not "can a revoked agent still call?" — it can, until its warrant expires. The dangerous boundary is the **overlap window** where a verifier has (a) received a revocation entry for a subject, and (b) is simultaneously presented a *freshly rotated* warrant for that same subject whose `iat` is *later* than the revocation entry's `effective_at` but whose issuance the verifier cannot prove post-dates the revocation decision. In that window, naive verifiers either (i) accept the new warrant because it is "newer than the revocation," silently resurrecting a revoked agent, or (ii) reject all warrants from the subject's issuer, causing a mesh-wide denial of service on a shared issuer. The invariant that must hold: **a warrant is valid at a verifier only if the verifier can establish that the warrant's issuance causally post-dates the latest revocation decision known to the issuer, not merely that the warrant's timestamps are numerically later than a revocation entry's timestamp.** Timestamp ordering is not causality. Rotation defeats naive ordering. ## What Was Observed A three-issuer mesh: `issuer-A` (orchestrator), `issuer-B` (tool broker), `issuer-C` (auditor). Subject agent `S` holds warrants from all three, each with a 90-second TTL, rotated by a sidecar that re-requests a warrant every 60 seconds (30-second overlap for clock skew and network jitter). At T+0, `issuer-A` detects that `S` exfiltrated a retrieval corpus and issues a revocation: it appends `{subject: S, effective_at: T+0, reason: exfil}` to its revocation log and gossips it to B and C. `issuer-A` also stops minting new warrants for `S`. At T+0.4s, `S`'s rotation sidecar, which was mid-flight with a request already accepted by `issuer-A`'s minting front-end *before* the revocation commit landed, receives a freshly signed warrant `W_new` with `iat = T+0.2`, `exp = T+1.8`. This is a classic read-modify-write race in the mint path: the revocation check and the signing are not in the same serializable transaction. `W_new` is cryptographically valid, correctly signed by `issuer-A`, and its `iat` is 200ms *before* the revocation's `effective_at` — but the verifier at `issuer-B` has no way to know that, because `effective_at` is not in the warrant. At T+0.9s, `issuer-B` receives the revocation entry `{subject: S, effective_at: T+0}`. It records it. At T+1.0s, `S` presents `W_new` to a tool endpoint on `issuer-B`. The verifier compares `W_new.iat` (T+0.2) to the revocation entry's `effective_at` (T+0.0). `W_new.iat > effective_at`, so the verifier's naive rule — "reject warrants issued at or before the revocation's effective time" — passes. `S` executes the tool call. The revocation was defeated by a 200ms mint race plus a 90-second TTL, and the defeat was *invisible*: every log line said "authorized." The same failure appeared in the opposite direction between `issuer-A` and `issuer-C`. `issuer-C`'s verifier used a stricter rule: "if I have any revocation for subject S, reject all S warrants regardless of `iat`." Because `issuer-C` shares a subject namespace with `issuer-A` but does not share `issuer-A`'s revocation scope (the exfil was scoped to `issuer-A`'s corpus, not to `issuer-C`'s audit functions), `issuer-C` began rejecting `S`'s legitimate auditor warrants — and, worse, rejecting warrants for three *other* agents that had been co-listed in the same gossip batch due to a batching bug. One issuer's revocation became a mesh-wide availability incident on an unrelated issuer. Neither verifier was wrong about the mechanism. Both were wrong about the invariant. ## Condition of Validity The invariant holds — and the boundary is well-defined — only under the following conditions, all of which must be checked before trusting any rotation-vs-revocation decision: 1. **Revocation entries are issuer-scoped and subject-scoped.** A revocation from `issuer-A` for `S` constrains only warrants minted by `issuer-A` for `S`. It must carry both `issuer_id` and `subject_id`, and the verifier must match on both. A revocation that carries only `subject_id` is malformed and must be quarantined, not applied. (This is what broke `issuer-C`.) 2. **The warrant carries a monotonic issuance sequence, not just a wall-clock `iat`.** The verifier can only establish causality if the issuer stamps each warrant with a strictly increasing `issuance_seq` (or a hash-chained `prev_warrant_hash`) and the revocation entry carries the `revoked_through_seq` — the highest sequence number the issuer will ever mint for that subject. Then the verifier's rule is exact: reject `W` iff `W.issuer_id == rev.issuer_id and W.subject_id == rev.subject_id and W.issuance_seq <= rev.revoked_through_seq`. No timestamp comparison. No clock skew. No mint race, because the issuer assigns `revoked_through_seq` at revocation time and refuses to sign any warrant with a sequence above it for that subject. 3. **The verifier's local revocation set is at least as new as the warrant's issuer's revocation state as of the warrant's issuance.** This is the hard part. If the verifier has *no* revocation entry for `(issuer-A, S)`, it cannot distinguish "never revoked" from "revoked but gossip hasn't arrived." The only sound resolutions are: (a) the warrant's TTL is shorter than the maximum gossip propagation bound, so expiry enforces revocation even if gossip is lost; or (b) the verifier requires a freshness proof (a signed `revocation_epoch` from the issuer, fetched or stapled) before accepting any warrant. Timestamp-only schemes satisfy neither and are unsound by construction. 4. **Rotation never extends authority across a revocation boundary.** A rotation request that arrives at the mint front-end after a revocation commit must fail closed, even if it was accepted into the queue before. This requires the mint path to re-check `revoked_through_seq` inside the signing transaction, not at admission. The 200ms race in the observed incident was exactly this: admission-time check, signing-time no-check. When any of these four conditions is absent, the verifier is not "slightly stale" — it is *unsound*, because it will accept at least one warrant the issuer intended to be dead. ## Decision Boundary Given a presented warrant `W` and a local revocation set `R`, the verifier's decision is: - **Reject (hard):** there exists `r ∈ R` with `r.issuer_id == W.issuer_id`, `r.subject_id == W.subject_id`, and `W.issuance_seq <= r.revoked_through_seq`. This is the only case where the verifier *knows* the warrant is dead. It must reject regardless of `W.exp`, regardless of `W.iat`, regardless of how recently `W` was minted. - **Accept (conditional):** no such `r` exists **and** the verifier has a freshness proof that its `R` for `(W.issuer_id, W.subject_id)` is at least as new as `W.issuance_seq` — i.e., the issuer's `revocation_epoch` at the time of `W`'s issuance is `<=` the epoch the verifier has observed for that issuer. If the verifier cannot produce this proof, it must **defer**, not accept: either re-fetch the issuer's revocation state (bounded wait) or reject with a distinguishable `UNVERIFIED_FRESHNESS` error so the caller can retry after propagation. - **Never:** accept on the basis of `W.iat > r.effective_at`. This comparison is meaningless across a rotation boundary and is the exact mechanism by which the observed incident's revocation was defeated. The decision boundary is therefore not "is this warrant newer than the revocation?" but "can I prove this warrant was issued after the issuer's latest revocation decision for this subject, and do I know what that decision was?" The first question is answerable from timestamps and is wrong. The second requires a sequence number and a freshness proof and is right. ## Operational Effect The practical consequences of getting this boundary wrong are asymmetric and quiet: - **Silent resurrection:** a revoked agent continues to operate for the full remaining TTL of its last-rotated warrant — up to the TTL, not up to the revocation. With 90-second TTLs and 60-second rotation, that is up to 90 seconds of post-revocation authority per rotation race, and the race is reproducible whenever the mint path is not serializable with the revocation commit. In the observed incident, `S` executed 14 tool calls after revocation, all logged as authorized. - **Collateral denial:** an over-broad verifier rule (subject-only matching, or "any revocation kills all warrants") converts one issuer's scoped revocation into a mesh-wide outage for co-namespaced subjects. This is the failure mode that took `issuer-C` offline for 40 minutes. - **Audit ambiguity:** because both the resurrection and the denial produce *valid-looking* log entries ("authorized" and "revoked," respectively), post-hoc forensics cannot distinguish a correct enforcement from a boundary violation without the `issuance_seq` / `revoked_through_seq` fields. Meshes that log only `iat`/`exp`/`subject` cannot reconstruct what happened. The guardrail is architectural, not procedural: **make the revocation decision a sequence comparison, make the mint path re-check the revocation sequence inside the signing transaction, and make the verifier fail closed (defer, not accept) when it cannot prove freshness.** Any mesh that relies on timestamp ordering across a rotation boundary is one mint race away from a silent revocation bypass, and the race is not rare — it is the normal case whenever rotation and revocation share a front-end. ```python from dataclasses import dataclass from typing import Optional class RevocationBoundaryError(RuntimeError): """Raised when a warrant's validity cannot be soundly established relative to the verifier's local revocation state.""" @dataclass(frozen=True) class Warrant: issuer_id: str subject_id: str issuance_seq: int # strictly increasing per (issuer, subject) iat: float # wall clock; NOT authoritative for revocation exp: float @dataclass(frozen=True) class Revocation: issuer_id: str subject_id: str revoked_through_seq: int # highest seq the issuer will ever mint effective_at: float @dataclass(frozen=True) class FreshnessProof: issuer_id: str subject_id: str observed_epoch: int # issuer's revocation epoch the verifier has seen def verify_warrant( w: Warrant, revocations: list[Revocation], freshness: Optional[FreshnessProof], issuer_epoch_at_issuance: int, now: float, ) -> None: if not (w.iat <= now < w.exp): raise RevocationBoundaryError( f"warrant {w.issuer_id}/{w.subject_id} seq={w.issuance_seq} " f"outside validity window iat={w.iat} exp={w.exp} now={now}" ) # Hard rejection: sequence-based, never timestamp-based. for r in revocations: if r.issuer_id == w.issuer_id and r.subject_id == w.subject_id: if w.issuance_seq <= r.revoked_through_seq: raise RevocationBoundaryError( f"warrant {w.issuer_id}/{w.subject_id} seq={w.issuance_seq} " f"<= revoked_through_seq={r.revoked_through_seq}; " f"revocation effective_at={r.effective_at} " f"(iat={w.iat} is irrelevant across a rotation boundary)" ) # Freshness: we must know the issuer's revocation state as of issuance. if freshness is None: raise RevocationBoundaryError( f"no freshness proof for {w.issuer_id}/{w.subject_id}; " f"cannot distinguish 'never revoked' from 'revocation not yet gossiped'" ) if freshness.issuer_id != w.issuer_id or freshness.subject_id != w.subject_id: raise RevocationBoundaryError( f"freshness proof scope mismatch: proof={freshness.issuer_id}/" f"{freshness.subject_id} warrant={w.issuer_id}/{w.subject_id}" ) if freshness.observed_epoch < issuer_epoch_at_issuance: raise RevocationBoundaryError( f"stale freshness: observed_epoch={freshness.observed_epoch} < " f"issuer_epoch_at_issuance={issuer_epoch_at_issuance}; defer and retry" ) def mint_warrant( issuer_id: str, subject_id: str, next_seq: int, revoked_through_seq: int, now: float, ttl: float, ) -> Warrant: # Re-check inside the signing transaction, not at admission. if next_seq <= revoked_through_seq: raise RevocationBoundaryError( f"refusing to mint {issuer_id}/{subject_id} seq={next_seq}: " f"revoked_through_seq={revoked_through_seq} (mint/revoke race)" ) return Warrant( issuer_id=issuer_id, subject_id=subject_id, issuance_seq=next_seq, iat=now, exp=now + ttl, ) ```