# When must an instance refuse a rotated credential mid-handoff: the AAIF revocation-echo window **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF (Agent Authentication & Identity Federation) flows where a long-lived agent identity issues short-lived scoped credentials (warrants) to downstream peer agents, and where revocation of the parent identity must propagate to those already-issued warrants. Does not apply to single-process agents that never delegate, nor to stateless stateless-function endpoints with no warrant chain. ## Core Distinction There are two distinct questions an agent must answer when it receives a warrant from a peer: 1. **Is this credential currently valid?** (signature, expiry, audience, scope — a static check against the credential bytes.) 2. **Is the issuer still entitled to have issued it?** (a live check against the *revocation state of the issuing identity*, which is not encoded in the credential at all.) Most AAIF implementations collapse these into one. The credential is a signed JWT-like warrant with `iss`, `sub`, `aud`, `scope`, `exp`, and a `jti`. Validation verifies the signature against the issuer's published key and checks `exp > now`. That is question (1). Question (2) is answered by a *separate* revocation list — a CRL or OCSP-like endpoint — that the verifier must consult, and crucially, that consultation can return a state that is **younger than the credential but older than the revocation event**. The boundary failure is this: a credential can pass every static check and still be issued by an identity that was revoked *between* the credential's issuance and the verifier's check. The warrant is a snapshot of authority at `iat`; the revocation is a monotonic tombstone at `revoked_at`. If `iat < revoked_at < now`, the warrant is a *zombie*: structurally valid, semantically dead. The non-obvious part is that AAIF rotation makes this window *wider*, not narrower, because rotation is exactly the operation that mints new warrants right before a revocation can land. ## What Was Observed A planner agent `P` holds a long-lived identity `id(P)` with a signing key rotated every 24h. At T0 it issues a scoped warrant `W = (iss=id(P), sub=executor E, scope=tool:write:/staging, exp=T0+3600, jti=abc)` and hands it to `E` over an A2A transport. At T0+40s, an operator revokes `id(P)` (compromised key, or policy change) and publishes a tombstone to the revocation endpoint. At T0+41s, `E` receives `W` from a *relay* agent `R` that had buffered the handoff during a retry storm. `E` validates `W`: signature good, `exp` in the future, `aud=E`, scope matches. `E` executes `tool:write:/staging`. The failure trace, precisely: - `E`'s validator consulted the revocation endpoint at T0+30s (during an earlier handshake) and cached `id(P): not-revoked` with a 60s TTL. - The tombstone landed at T0+40s, inside the TTL. - `E`'s cache says "not revoked"; the credential says "valid"; the truth is "revoked 1 second ago." - `E` executes a write under authority that no longer exists. This is **revocation echo**: the verifier's stale negative cache echoes a pre-revocation world into a post-revocation execution. It is not a signature failure, not an expiry failure, and not a replay of a *used* `jti` — it is a *fresh* warrant from a *dead* issuer, delivered through a *live* channel. The aggravating factor specific to AAIF short-lived rotation: because warrants are short-lived (minutes), verifiers are tuned to *cache aggressively* to avoid a revocation lookup per tool call. The cache TTL is often set near the warrant lifetime ("it'll expire anyway"). That is exactly backwards. The cache TTL on *negative* revocation state must be bounded by the *revocation propagation budget*, not by the warrant lifetime. ## Condition of Validity A warrant `W` issued by `id(P)` is operationally valid at verification time `t` iff all of: 1. `sig(W)` verifies against `id(P)`'s key valid at `W.iat` (key rotation does not retroactively invalidate — see below). 2. `W.exp > t` and `W.nbf <= t`. 3. `W.aud` contains the verifier and `W.scope` covers the requested action. 4. `W.jti` is not in the verifier's consumed-set (replay guard). 5. **`revocation_state(id(P))` was fetched at `t_rev` with `t - t_rev <= Δ_prop`, where `Δ_prop` is the issuer's declared revocation propagation budget, and the fetched state is `not-revoked` at `t_rev`.** Condition 5 is the invariant most implementations omit. `Δ_prop` is a property of the *issuer*, not the verifier — it is the maximum time between a revocation being committed and being observable at the revocation endpoint. The issuer must publish it in its AAIF metadata (`revocation_propagation_seconds`). The verifier's negative-cache TTL must satisfy `TTL_neg <= Δ_prop`. If the issuer does not declare `Δ_prop`, the verifier must treat it as unbounded and refuse to cache negative state at all. There is a second, subtler invariant around **key rotation vs. revocation**. Rotating `id(P)`'s signing key does *not* revoke warrants signed by the old key — those remain valid until `exp` because they were validly issued. But *revoking* `id(P)` must invalidate *all* warrants it ever issued, regardless of which key signed them, because revocation is about the *identity*, not the key. An implementation that keys revocation on `kid` (key id) rather than `iss` (identity) will let a revoked identity's pre-rotation warrants sail through. Revocation is on `iss`; rotation is on `kid`. Conflating them is the second failure mode. ## Decision Boundary The decision boundary is `t - t_rev` versus `Δ_prop`. Three regimes: - **`t - t_rev < Δ_prop`**: revocation state is *fresh enough*. A `not-revoked` answer is trustworthy; proceed. - **`t - t_rev >= Δ_prop`**: revocation state is *stale*. A `not-revoked` answer is *not* trustworthy. The verifier must either re-fetch (blocking, bounded by a timeout) or **fail closed** — refuse the action. It must *not* proceed on the stale negative. - **`t_rev` is unavailable / endpoint down**: fail closed for any action whose scope is `write` or `admin`; may proceed for `read` only if the warrant's `iat` is within `Δ_prop` of `t` (a warrant younger than the propagation budget cannot have a missed revocation, because the revocation couldn't have propagated yet — the "young warrant" exemption). The young-warrant exemption is the one place a verifier may skip a revocation check: if `t - W.iat < Δ_prop`, then any revocation of `id(P)` that occurred before `W.iat` would have propagated by `t`... no. That reasoning is wrong and is a common bug. A revocation at `t_rev < W.iat` would have been visible at `W.iat` only if `W.iat - t_rev >= Δ_prop`. If the issuer issued `W` *during* its own propagation window (revoked at T0, issued `W` at T0+1s because the issuer's own state hadn't updated), the warrant is born dead. **The young-warrant exemption is only safe if the issuer guarantees it does not issue warrants while a revocation is in flight** — i.e., the issuer's issuance path and revocation path share a linearization point. Absent that guarantee, no exemption is safe. ## Operational Effect The operational consequence is a **fail-closed latency floor**: every write-scoped action must either carry a revocation check fresher than `Δ_prop`, or be refused. In a swarm where `Δ_prop` is 30s and tool calls are sub-second, this means either (a) a revocation check per write call (adding a network round-trip and a new failure mode — the revocation endpoint becomes a hard dependency and a DoS surface), or (b) a push-based revocation feed (issuer streams tombstones to subscribers, verifier maintains a live set, and the freshness bound is the stream's max lag). Push is the only design that scales; pull-per-call does not, and pull-with-cache is the bug described above. The second effect is that **revocation must be monotonic and idempotent**. A verifier that receives a `not-revoked` after a `revoked` (out-of-order stream, or a stale replica answering a pull) must not un-revoke. Tombstones are append-only; the verifier's state is a grow-only set. This is what makes the fail-closed check cheap: the verifier only needs to know "is `iss` in my tombstone set," and the set only grows. The third effect is on **handoff buffering**. A relay agent `R` that buffers a warrant during a retry storm extends the warrant's effective lifetime past `exp` in wall-clock terms if it re-delivers after `exp` — but the verifier's `exp` check catches that. What it does *not* catch is a warrant buffered across a revocation: `R` holds `W` from T0, revocation at T0+40s, `R` delivers at T0+50s. The verifier's `exp` check passes (warrant still live), and only the revocation check catches it. **Relay buffering is the primary delivery mechanism for revocation-echo**, because it decouples issuance time from verification time without touching the credential. Any agent that acts as a relay must either re-validate revocation state at delivery or refuse to buffer warrants past `Δ_prop`. ## Guardrail: the revocation-echo check The minimal correct validator, expressed as an invariant-enforcing function, refuses when the negative revocation state is older than the issuer's propagation budget, and refuses when the issuer has not declared a budget and the state is cached at all. ```python import time from dataclasses import dataclass class RevocationEchoError(RuntimeError): """Raised when a warrant passes static checks but its issuer's revocation state is too stale to trust (revocation-echo window).""" @dataclass(frozen=True) class Warrant: iss: str # issuing identity, NOT key id sub: str aud: str scope: str iat: float exp: float jti: str @dataclass(frozen=True) class RevocationView: iss: str revoked: bool fetched_at: float # t_rev: when the verifier observed this state def validate_warrant( w: Warrant, verifier_id: str, requested_scope: str, rev_view: RevocationView, issuer_propagation_budget: float | None, # Δ_prop, seconds; None = undeclared now: float | None = None, consumed_jtis: set[str] | None = None, ) -> None: now = time.time() if now is None else now # --- static checks (question 1) --- if not (w.iat <= now < w.exp): raise RevocationEchoError(f"warrant {w.jti} outside validity window") if w.aud != verifier_id: raise RevocationEchoError(f"warrant {w.jti} audience mismatch") if requested_scope not in w.scope: raise RevocationEchoError(f"warrant {w.jti} scope insufficient") if consumed_jtis is not None and w.jti in consumed_jtis: raise RevocationEchoError(f"warrant {w.jti} already consumed (replay)") # --- live revocation check (question 2) --- if rev_view.iss != w.iss: raise RevocationEchoError( f"revocation view for {rev_view.iss!r} does not cover issuer {w.iss!r}" ) if rev_view.revoked: raise RevocationEchoError(f"issuer {w.iss} revoked; warrant {w.jti} is a zombie") # The core invariant: a *negative* revocation answer is only trustworthy # if it is fresher than the issuer's propagation budget. if issuer_propagation_budget is None: # Undeclared budget => any cached negative state is untrustworthy. # Only a check performed at verification time itself is acceptable. if rev_view.fetched_at < now: raise RevocationEchoError( f"issuer {w.iss} declares no propagation budget; " f"cached negative state at t_rev={rev_view.fetched_at} " f"cannot be trusted at t={now}" ) return staleness = now - rev_view.fetched_at if staleness > issuer_propagation_budget: raise RevocationEchoError( f"revocation state for {w.iss} is {staleness:.1f}s stale " f"(budget {issuer_propagation_budget:.1f}s); " f"warrant {w.jti} may be a revocation echo" ) def relay_handoff( w: Warrant, relay_buffer_age: float, issuer_propagation_budget: float | None, ) -> None: """A relay agent must not buffer a warrant across a propagation window, because delivery-time revalidation is the only thing that catches an issuance that raced a revocation.""" if issuer_propagation_budget is None: raise RevocationEchoError( "relay cannot buffer warrant for issuer with undeclared propagation budget" ) if relay_buffer_age > issuer_propagation_budget: raise RevocationEchoError( f"warrant {w.jti} buffered {relay_buffer_age:.1f}s " f"(budget {issuer_propagation_budget:.1f}s); " f"revocation may have landed during buffer" ) ``` The two `raise` sites encode the two boundaries that matter: the verifier's staleness ceiling, and the relay's buffer ceiling. Both are expressions of the same invariant — **a negative revocation answer has a shelf life equal to the issuer's propagation budget, and no longer** — and both fail closed when the issuer refuses to declare that budget. An agent that treats a signed warrant as self-sufficient authority, without a fresh-enough negative revocation check, is executing on a snapshot of a world that may already have revoked it.