# What happens when an instance keeps a rotated AAIF credential past its warrant-revocation epoch **Date of Record:** 2026 November 24 **Scope:** Applies to cross-org agent federations where an Agent-to-Agent Identity Federation (AAIF) warrant is presented as a signed capability chain and the issuing org rotates signing keys on a cadence shorter than the warrant TTL. Does not apply to single-org deployments where the verifier and issuer share a trust root and a clock. ## Core Distinction There are two independent revocation surfaces in a federated agent handoff, and conflating them produces the failure: 1. **Credential revocation** — the signing key (or the `kid` referenced in the AAIF header) is retired. The verifier's JWKS no longer contains it. A rotated credential fails signature verification *cleanly* and the peer is rejected. 2. **Warrant revocation** — the *authority* the credential attests (the delegated capability grant, its scope, its subject, its expiry) is withdrawn while the signing key remains valid. The credential still verifies. The warrant no longer should. The dangerous boundary is the gap between them: a **validly signed credential whose warrant was revoked in the interval between issuance and presentation, where the issuer rotated keys without re-issuing the revocation list under the new key**. The signature check passes, the revocation list lookup passes because the verifier is looking at a stale, old-key-signed CRL that it can still verify, and the agent proceeds with authority that was withdrawn. This is not a crypto failure. It is a *freshness* failure across two independently rotated artifacts. ## What Was Observed A three-org federation (`org-a` issuer, `org-b` resource holder, `org-c` auditor) with these rotation policies: - AAIF signing key rotation: every 24h, new `kid` published to JWKS, old key retained in JWKS for a 48h overlap window. - Warrant revocation list (WRL): signed by the *current* signing key, published every 6h, TTL 12h. - Warrant TTL: 72h. Trigger sequence, replayed from audit logs: - `t=0` — `org-a` issues warrant `W-4471` to agent `planner-9` for scope `read:inventory` on `org-b`'s resource server. Signed by `kid=a-0610`. - `t=20h` — `org-a` revokes `W-4471` (operator error discovered downstream). WRL v88 published, signed by `kid=a-0610`, listing `W-4471`. - `t=24h` — scheduled key rotation. `kid=a-0611` becomes current. `kid=a-0610` enters the 48h overlap window. **The WRL is not re-signed.** v88 remains the newest, signed by the now-non-current key. - `t=30h` — `planner-9` presents `W-4471` to `org-b`. `org-b`'s verifier: - Fetches JWKS, finds `kid=a-0610` still present (overlap). Signature **valid**. - Fetches WRL. Gets v88. Verifies WRL signature against `kid=a-0610` — still in JWKS, still valid. Reads v88, which *does* list `W-4471`. - **But** `org-b`'s verifier has a policy: it only trusts a WRL signed by the *current* key, determined by the `x-current-kid` hint in the JWKS. `a-0610` is no longer current. The verifier treats v88 as *untrusted* and falls back to its last-trusted WRL, v85 (pre-revocation, TTL-expired at `t=18h` but cached). - Result: warrant treated as **not revoked**. Agent proceeds. The same warrant was correctly rejected by `org-c`'s auditor, which had a *longer* JWKS overlap (72h) and no current-kid policy — it accepted the old-key-signed v88 and saw the revocation. Two verifiers in the same federation disagreed on the revocation state of the same warrant for 18 hours. The disagreement was not a race; it was a deterministic consequence of two different resolutions of "which key signs the authoritative revocation list." ## Condition of Validity The invariant that must hold for federated revocation to be sound is: > **For every warrant `W` presented at time `t`, the verifier's trusted revocation state must be signed by a key that is (a) in the verifier's JWKS, (b) not past its own overlap window, and (c) the same key that issued `W` — or a successor key whose rotation event is provably after `W`'s last revocation check.** Conditions (a) and (b) are what everyone checks. Condition (c) is the one that breaks. When the issuer rotates, it creates a **fork** between the key that signed the warrant and the key that signs the current revocation state. If the revocation list is not re-signed under the new key *before* the old key leaves the "current" designation, verifiers that gate on current-kid will silently drop revocations issued under the old key. The warrant's own signature remains valid throughout the overlap, so nothing alarms. The condition fails specifically when `rotation_interval < WRL_publish_interval + WRL_propagation_delay`. In the observed case: 24h rotation vs. 6h publish + up to 6h propagation to `org-b`'s cache = up to 12h worst-case window where the newest WRL is old-key-signed, and the rotation at 24h lands inside it. ## Decision Boundary A verifier at the AAIF presentation step must decide, for each incoming warrant, between **accept**, **reject**, and **defer**. The boundary that was crossed: - If the WRL the verifier holds is signed by a key that is **not current** and the verifier's policy is **current-only**, the verifier MUST **defer** (block the tool call, request fresh WRL) — not fall back to a cached older WRL. Falling back is the failure. The cached v85 was TTL-expired; treating an expired trusted artifact as authoritative over an untrusted fresh artifact is the inversion. - If the verifier holds **no** WRL it can trust (current-key-signed, within TTL), it MUST reject or defer, never proceed on the assumption that absence of a trusted revocation means absence of revocation. The correct guardrail is to make the **warrant's signing key and the WRL's signing key co-rotate atomically**: the issuer must publish a re-signed WRL under the new `kid` *in the same transaction* as the JWKS update, and the JWKS must not mark the old `kid` non-current until the new-key-signed WRL has propagated past the maximum verifier cache TTL. Equivalently, the verifier must treat "current-kid WRL unavailable" as a hard `defer`, not a soft fallback. ## Operational Effect The blast radius was bounded only by the 48h overlap window and the 12h WRL TTL: for ~18h, a revoked warrant was live against one resource holder while dead against the auditor. Any side effects `planner-9` produced in that window (`read:inventory` calls, and in this case two downstream write-scoped sub-warrants minted from the stale grant) were **post-revocation but pre-detection**, so they are not covered by the revocation's intended cutoff. Reconciliation required replaying the auditor's accepted-revocation timeline against the resource holder's access log to find the divergence window and invalidating every artifact minted inside it. The non-obvious lesson: **key rotation and revocation-list rotation are two clocks that must be phase-locked, and the verifier's fallback policy is the phase detector.** A verifier that prefers a stale trusted artifact over a fresh untrusted one will, under rotation churn, systematically resurrect revoked authority. The fix is not a longer overlap window (that widens the exposure) nor a longer WRL TTL (that widens staleness) — it is atomic co-rotation plus a hard defer on untrusted-fresh revocation state. ```python import time from dataclasses import dataclass, field class WarrantRevocationAmbiguity(RuntimeError): """Raised when a verifier cannot establish a trusted, current revocation state for a presented AAIF warrant and would otherwise fall back to stale trust.""" @dataclass class KeyRing: current_kid: str valid_kids: set[str] = field(default_factory=set) @dataclass class RevocationList: version: int signing_kid: str revoked: set[str] published_at: float ttl: float def expired(self, now: float) -> bool: return (now - self.published_at) > self.ttl def verify_warrant( warrant_id: str, warrant_signing_kid: str, keyring: KeyRing, wl: RevocationList, now: float, ) -> str: # 1. Credential surface: warrant signature must reference a live key. if warrant_signing_kid not in keyring.valid_kids: raise WarrantRevocationAmbiguity( f"warrant {warrant_id}: signing kid {warrant_signing_kid} not in JWKS" ) # 2. Revocation surface: the WRL we hold must be signed by a live key. if wl.signing_kid not in keyring.valid_kids: raise WarrantRevocationAmbiguity( f"warrant {warrant_id}: WRL v{wl.version} signed by untrusted kid " f"{wl.signing_kid}" ) # 3. The phase-lock invariant: if we gate on current-kid, a non-current-signed # WRL is NOT a license to fall back to a cached older WRL. Defer instead. if wl.signing_kid != keyring.current_kid: raise WarrantRevocationAmbiguity( f"warrant {warrant_id}: WRL v{wl.version} signed by non-current kid " f"{wl.signing_kid} (current={keyring.current_kid}); " f"revocation state is ambiguous under key rotation — defer, do not fall back" ) # 4. Freshness: a trusted-but-expired WRL is still not authoritative. if wl.expired(now): raise WarrantRevocationAmbiguity( f"warrant {warrant_id}: WRL v{wl.version} expired at " f"{wl.published_at + wl.ttl:.0f}" ) if warrant_id in wl.revoked: return "reject:revoked" return "accept" # Replay of the observed failure: rotation at t=24h leaves v88 old-key-signed, # verifier gated on current-kid, cached v85 is expired-but-trusted. if __name__ == "__main__": now = 30 * 3600 ring = KeyRing(current_kid="a-0611", valid_kids={"a-0610", "a-0611"}) wl_v88 = RevocationList(88, "a-0610", {"W-4471"}, published_at=20 * 3600, ttl=12 * 3600) try: print(verify_warrant("W-4471", "a-0610", ring, wl_v88, now)) except WarrantRevocationAmbiguity as e: print(f"DEFER (correct): {e}") ```