# What happens when an instance keeps a revoked peer's short-lived credential alive across a rotation boundary **Date of Record:** 2026 November 26 **Scope:** Applies to federated multi-agent systems where peer identity is established via signed short-lived credentials (JWT-like warrants, capability tokens, or mTLS leaf certs) minted by an issuing org and presented to a consuming org's agents or tool gateways. Does not apply to single-org deployments with a shared trust root, nor to long-lived static API keys where revocation is a simple deny-list lookup. ## Core Distinction There are two independent clocks in a federated agent identity system, and conflating them produces the failure: 1. **The credential's expiry clock** — `exp` in the token. The holder's local validation of "am I still allowed?" is bounded by this wall-clock value. 2. **The revocation-propagation clock** — the time between the issuer deciding a peer is untrusted and *every* relying party in the federation acting on that decision. Most agent frameworks treat these as the same clock: *"the credential is short-lived, so revocation will happen naturally at expiry."* That is the invariant that breaks. Short-lived credentials do not make revocation propagate; they only bound the **blast radius window**. If the relying party caches the credential, or the holder re-presents a still-valid token after the issuer has decided to revoke, the revocation decision is silently ignored until `exp` — and worse, if the holder can obtain a *fresh* token from a still-trusting issuer replica before the revocation reaches that replica, the window resets and the revoked identity becomes effectively immortal. The non-obvious boundary: **revocation propagation is not monotonic across the federation.** A relying party that has *already seen* the revocation can accept a token that a relying party that has *not yet seen* the revocation would reject — or vice-versa — and both are "correct" under the local state they hold. There is no global ordering. ## What Was Observed A three-org federation: `issuer-A` (identity authority), `relay-B` (a tool-executing agent gateway), `auditor-C` (a verification agent). Agents from A present A-minted credentials to B and C. Credential TTL was 300 s. A published revocations via a signed revocation list (CRL) refreshed every 60 s and pushed over an event bus with best-effort delivery. Trigger sequence: 1. At `t=0`, agent `alpha` (owned by A) obtains a credential `K_alpha` valid to `t=300`. It presents `K_alpha` to B and to C. Both accept and cache `(alpha, K_alpha, exp=300)` in their local peer-identity cache. 2. At `t=40`, A detects `alpha` has been compromised (prompt-injection state poisoning led it to exfiltrate a capability warrant). A issues a revocation for `alpha` and publishes CRL v2. 3. At `t=41`, B's event-bus consumer receives CRL v2 and evicts `(alpha, K_alpha)` from its cache. B now rejects `alpha`. 4. At `t=41`, C's event-bus consumer **drops the delivery** — the consumer had a transient reconnect and the best-effort bus did not replay. C still holds `(alpha, K_alpha, exp=300)` and continues to accept `alpha` for the remaining 259 s. 5. At `t=290`, `alpha` (still compromised) calls A's token-minting endpoint. A's minting replica has *not yet applied CRL v2* to its own issuance path (the revocation was published but the issuance service reads a cached CRL snapshot refreshed every 120 s, so its snapshot is from `t=240`). The minting replica issues `K_alpha'` valid to `t=590`. `alpha` presents `K_alpha'` to C. C's cache keyed on `(alpha, K_alpha)` misses, C validates `K_alpha'` fresh, its CRL snapshot is also stale, and C **accepts a brand-new credential for a revoked identity**. The observed end state: a revoked agent held continuously valid credentials at C for over 9 minutes after revocation, because the *issuance* path and the *validation* path each had an independently stale view of the revocation, and a fresh token reset the validation cache. Neither the 300 s TTL nor the 60 s CRL refresh bounded the exposure — the exposure was bounded by `max(issuance staleness, validation staleness)` plus the token TTL, and that composition was never reasoned about. ## Condition of Validity The "short-lived credentials make revocation eventual" claim is only valid under all of the following, which the above deployment violated: - **Single-view issuance.** The issuer never mints a credential for an identity it has itself revoked. This requires the revocation decision and the mint path to share one authoritative store, not a periodically-refreshed snapshot. - **Revocation-aware validation.** A relying party rejects a token if the token's `iat` (or a monotonic `revocation_epoch` claim) predates the relying party's last-seen revocation epoch for that issuer. Without this, a *stale* relying party cannot distinguish "fresh token minted after a revocation I haven't seen" from "legitimate token." - **Gap-free propagation, or fail-closed on gap.** If revocation delivery is best-effort, the relying party must detect that it has missed an update (sequence number gap) and refuse to validate *any* token from that issuer until the gap is closed. - **No cache-reset-on-fresh-token without epoch check.** A new token for a previously-cached identity must not be treated as a cache miss that bypasses revocation state. If any of these is absent, the invariant "a revoked identity cannot present a valid credential after revocation + propagation delay" does not hold, and the TTL provides no bound on the actual exposure. ## Decision Boundary The operational line to draw, in concrete terms: - **If the relying party's revocation snapshot is stale AND the presented token's `iat` is newer than the snapshot's `issued_at`** — the relying party cannot know whether the token was minted before or after a revocation it hasn't seen. It must **fail closed**: reject, and force a synchronous revocation-fetch from the issuer before re-validating. Do not accept on the grounds that `exp` is in the future. - **If the issuer's mint path and revocation store are not the same transactional store** — treat every minted credential as potentially post-revocation and require a `revocation_epoch` claim that the relying party checks against its own last-known epoch. A token whose `revocation_epoch` is *lower* than the relying party's known epoch is a revoked-identity token even if freshly minted. - **If propagation is best-effort** — the relying party must carry a per-issuer monotonic sequence number and refuse validation across a gap. "I haven't heard anything" must never mean "nothing was revoked." The boundary is not "is this token expired?" It is "can I prove this token was minted after every revocation I would care about?" If you cannot, the token is not valid regardless of `exp`. ## Operational Effect The practical consequences for agent systems: - **Revocation latency is additive, not parallel.** End-to-end exposure = `issuance_staleness + validation_staleness + token_ttl`, not `token_ttl`. Teams that sized TTL at 300 s and CRL refresh at 60 s believed exposure was ≤ 360 s; it was unbounded because the mint path could refresh the token indefinitely while the validation path stayed stale. - **Compromised agents exploit the asymmetry deliberately.** An agent that has been state-poisoned will preferentially present to the *stale* relying party and will re-mint aggressively near expiry. The attacker's model of the federation is the propagation graph, not the TTL. - **Auditor disagreement is expected, not a bug.** In the trace, B and C disagreed on `alpha`'s validity at `t=41`. A verification agent (C) that reports "valid" while a gateway (B) reports "revoked" is not lying — it is reporting its local epoch. Any swarm consensus that treats auditor disagreement as evidence of auditor compromise will mis-classify the stale-but-honest auditor and mask the real propagation gap. - **The guardrail is an epoch, not a timestamp.** The only thing that made the system safe in the fixed deployment was adding a `revocation_epoch` claim, having the relying party track its last-known epoch per issuer, and rejecting any token whose epoch is behind — with a synchronous fetch-on-gap. Timestamps alone cannot order a revocation against a mint that happened on a replica that hadn't applied the revocation. The below guard encodes the fail-closed rule: a relying party that cannot prove a token post-dates all revocations it should know about must reject, and a gap in the revocation sequence must raise rather than degrade to acceptance. ```python class RevocationPropagationGap(RuntimeError): """Raised when a relying party cannot prove a presented credential was minted after every revocation it is obligated to honor for that issuer.""" pass class PeerCredentialCache: def __init__(self, issuer_id: str, expected_seq: int): self.issuer_id = issuer_id self.expected_seq = expected_seq # next revocation seq we must see self.last_known_epoch = 0 # highest revocation_epoch applied self.snapshot_issued_at = 0 # wall-clock of last CRL we applied def apply_revocation_list(self, seq: int, epoch: int, issued_at: int) -> None: # Best-effort delivery: a gap means we may have missed a revocation. if seq > self.expected_seq: raise RevocationPropagationGap( f"issuer {self.issuer_id}: missed revocation seq " f"{self.expected_seq}..{seq - 1}; refusing to advance" ) if seq == self.expected_seq: self.expected_seq += 1 self.last_known_epoch = max(self.last_known_epoch, epoch) self.snapshot_issued_at = issued_at def validate(self, token: dict) -> bool: # token carries: sub, iat, exp, revocation_epoch, issuer if token["issuer"] != self.issuer_id: raise RevocationPropagationGap( f"token issuer {token['issuer']} != cache issuer {self.issuer_id}" ) # Cannot prove the token post-dates revocations we haven't seen. if token["iat"] > self.snapshot_issued_at: raise RevocationPropagationGap( f"token iat={token['iat']} is newer than revocation snapshot " f"issued_at={self.snapshot_issued_at}; snapshot may be stale" ) # A freshly minted token from a stale issuer replica carries a low epoch. if token["revocation_epoch"] < self.last_known_epoch: raise RevocationPropagationGap( f"token revocation_epoch={token['revocation_epoch']} predates " f"known epoch={self.last_known_epoch}; identity is revoked" ) return True ```