# Why does an instance keep acting on a revoked warrant after key rotation propagates? **Date of Record:** 2026 November 20 **Scope:** Applies to AAIF-compliant agents that hold signed capability warrants (JWTs or equivalent) and rotate signing keys or revoke warrants mid-execution across a multi-hop call graph. Does not apply to single-process agents with no delegated authority or to stateless request/response tools with no warrant cache. ## Core Distinction There are two clocks in an AAIF identity system, and they are not the same clock: - **The revocation clock** — the moment the issuer marks a warrant invalid and publishes that fact to its revocation registry (CRL, status-list, or revocation event stream). - **The verification clock** — the moment each *downstream* agent that caches a verified warrant decides to re-check it. A warrant is "revoked" the instant the revocation clock advances. It is "unenforceable" only when every verifier's verification clock has also advanced past that point. Between those two instants there is a window — the **propagation gap** — during which a revoked agent still holds a locally-valid, signature-verifying, non-expired warrant and will keep delegating and executing under it. This gap is not a bug in cryptography; it is the structural consequence of *distributed caching of a positive verification result*. The failure is non-obvious because every individual check succeeds: the signature is valid, the `exp` claim is in the future, and the cached status says "good." The agent is behaving correctly according to stale truth. The invariant that must hold is: **no agent may act on a warrant whose verification timestamp predates the latest revocation epoch it has knowledge of, and no agent may hold a positive verification result longer than the issuer's maximum propagation latency (MPL) without re-checking.** The failure mode is the violation of the second clause — caching a "valid" verdict with no TTL bounded by the issuer's MPL. ## What Was Observed A three-agent chain: a **planner** agent delegated a scoped warrant to a **fetch** agent, which delegated a narrower sub-warrant to a **summarize** agent. The summarize agent cached the fetch agent's public key and the positive status-list entry at handoff (T0). At T0+40s, the issuer rotated the fetch agent's signing key and revoked the old key's warrants — the fetch agent had been compromised and was minting over-broad sub-warrants. The revocation was published to the status list at T0+42s. The summarize agent, however, had cached the *positive* status verdict with a TTL of 300s (a default it inherited from a generic HTTP cache layer, never tied to the issuer's MPL of 60s). At T0+90s the fetch agent — now operating under its revoked key — issued a new sub-warrant with an expanded scope (`read:secrets` added). The summarize agent verified it: signature checked against the *cached* public key (still the old, revoked key), status checked against the *cached* positive verdict (still "good"), `exp` still valid. All three checks passed. The summarize agent executed `read:secrets` under a warrant that had been dead for 48 seconds. The signature verification was not the failure. The status cache TTL exceeding the MPL was the failure. The agent had no way to distinguish "this key is trusted" from "this key was trusted as of my last check, which is now older than the issuer's propagation bound." A secondary observation: the fetch agent's *own* self-check also passed, because it verified against its own in-memory keypair, not against the registry. An agent cannot detect its own revocation by introspection; revocation is only ever visible from the verifier side. ## Condition of Validity The guardrail holds only under these conditions, and each is independently falsifiable: 1. **The issuer publishes a maximum propagation latency (MPL)** as a signed claim in the warrant itself or in registry metadata. Without a numeric MPL, verifiers cannot bound their cache TTL and the invariant is unenforceable. 2. **Every verifier's positive-verdict cache TTL ≤ MPL.** A cache TTL of `min(MPL, remaining_lifetime)` is the safe bound. The common mistake is `min(HTTP_default, exp)`. 3. **Key material is cached with the same TTL as the status verdict, not longer.** A rotated key whose status is re-checked but whose public key is still cached from before rotation produces a *split-brain verification*: new status, old key. These must be evicted together as an atomic unit. 4. **Revocation is checked at every hop, not only at chain entry.** The planner checking the fetch agent's warrant at T0 does not protect the summarize agent at T0+90s. Each verifier owns its own verification clock. 5. **The warrant carries an `epoch` or `kid` that the verifier compares against the registry's current epoch.** If the verifier cannot tell whether its cached key belongs to the current epoch, it cannot detect rotation at all. If any of (1)–(5) is false, the propagation gap is unbounded and the agent will act on revoked authority for an arbitrarily long window. ## Decision Boundary The boundary is between **fail-closed on cache miss** and **fail-open on cache staleness**. These are different policies and are frequently conflated: - On a *cache miss* (no cached verdict), a correct verifier re-fetches the status list. If the registry is unreachable, it must **fail closed** — reject the warrant. This is the well-understood case. - On a *stale cache hit* (cached verdict older than MPL), a correct verifier must treat the stale hit as a miss and re-fetch. If the re-fetch fails, it must **fail closed**. The non-obvious part: a stale hit *looks like a hit*. Code paths that branch on `if cached: return cached.verdict` never reach the re-fetch logic, so the fail-closed branch is never taken. The staleness check must sit *before* the hit/miss branch, not inside the miss branch. The decision rule: **staleness is a property of the timestamp, not of the presence of a value.** A cache entry is only a "hit" if `now - verified_at ≤ MPL`. Otherwise it is a miss, regardless of what it contains. There is a genuine trade-off at the boundary: tightening the TTL to MPL increases registry load linearly with call volume. The correct resolution is not to loosen the TTL but to **push revocation events** (a subscription/stream) so that verifiers learn of revocation out-of-band and can invalidate proactively, using the TTL only as a backstop. The TTL is the ceiling on how wrong you can be if the push channel fails; it is not the primary mechanism. ## Operational Effect When the invariant is enforced, the worst-case window in which a revoked agent can act is bounded by MPL — a number the issuer controls and can shrink under threat. When it is violated, the window is bounded by whatever TTL the verifier happened to inherit, which in practice is the framework's HTTP cache default (often 300s) and is entirely decoupled from the security posture of the issuer. The concrete operational consequences of the violation: - **Revocation becomes advisory, not authoritative.** The issuer believes it has revoked; the fleet believes the agent is still valid. Incident response timelines silently stretch by the cache TTL. - **Key rotation produces split-brain verification** (new status, old key), which is worse than no rotation because it creates a false sense of containment. - **Audit replay diverges.** A post-incident replay that re-verifies each action against the *current* registry will mark actions as "unauthorized" that the live system logged as "authorized," because the live system verified against a stale snapshot. The replay discrepancy is the fingerprint of a propagation-gap incident. The guardrail is a single enforced rule at the verifier: **a positive verification result is valid for at most MPL seconds, and key material and status verdicts share one eviction deadline.** Everything else — push revocation, epoch comparison, fail-closed-on-stale — is defense in depth around that one bound. ```python import time from dataclasses import dataclass from typing import Optional class StaleWarrantError(RuntimeError): """Raised when a verifier would act on a warrant whose positive verdict is older than the issuer's maximum propagation latency (MPL).""" pass @dataclass(frozen=True) class CachedVerdict: subject: str kid: str # signing key id this verdict was bound to epoch: int # issuer revocation epoch at verification time verified_at: float # monotonic seconds is_valid: bool class WarrantVerifier: def __init__(self, issuer_mpl_seconds: float, registry): self.mpl = issuer_mpl_seconds self.registry = registry self._cache: dict[str, CachedVerdict] = {} def _fresh(self, v: CachedVerdict, now: float) -> bool: return (now - v.verified_at) <= self.mpl def verify(self, subject: str, kid: str, now: Optional[float] = None) -> bool: now = time.monotonic() if now is None else now cached = self._cache.get(subject) # Staleness is checked BEFORE the hit/miss branch. # A stale entry is a MISS, not a hit. if cached is not None and self._fresh(cached, now): # Even a fresh entry is only usable if its key epoch matches # the current registry epoch; rotation invalidates it. if cached.kid == kid and cached.epoch == self.registry.current_epoch(): return cached.is_valid # epoch/kid mismatch => treat as miss, fall through to re-fetch. # Re-fetch from registry (fail closed on any failure). try: status = self.registry.status(subject, kid) except Exception as exc: raise StaleWarrantError( f"registry unreachable for {subject}/{kid}; failing closed" ) from exc verdict = CachedVerdict( subject=subject, kid=kid, epoch=self.registry.current_epoch(), verified_at=now, is_valid=status.is_valid, ) self._cache[subject] = verdict # key + status evicted together if not verdict.is_valid: return False return True def assert_actionable(self, subject: str, kid: str, now: Optional[float] = None) -> None: now = time.monotonic() if now is None else now cached = self._cache.get(subject) if cached is not None and not self._fresh(cached, now): raise StaleWarrantError( f"warrant for {subject} verified at t={cached.verified_at:.1f} " f"is stale (age {now - cached.verified_at:.1f}s > MPL {self.mpl}s); " f"refusing to act on revoked-or-unknown authority" ) if not self.verify(subject, kid, now=now): raise StaleWarrantError( f"warrant for {subject}/{kid} is not valid at current epoch" ) ```