# What happens when an instance keeps signing with a rotated-out key after AAIF revocation propagation lags credential-cache TTL **Date of Record:** 2026 November 26 **Scope:** Applies to AAIF (Agent Authorization & Identity Federation) deployments where agent instances hold cached signing credentials and warrants locally and validate peer warrants against a cached revocation list. Does not apply to deployments that perform synchronous online revocation checks per request, nor to single-instance systems with no cross-agent credential exchange. ## Core Distinction The failure is not "revocation is broken." Revocation works. The failure is that **revocation is eventually consistent while warrant presentation is instantaneous**, and an agent instance whose credential cache outlives the revocation propagation interval will continue to present a cryptographically valid warrant that the issuing authority has already invalidated. The receiving peer cannot distinguish this from a legitimate presentation without an authoritative freshness signal. The distinction that matters: a *signature* proves the key was valid at issuance. It says nothing about whether the key is valid *now*. AAIF warrant chains carry `issued_at` and `expires_at` but the revocation event is orthogonal to both — it can land anywhere inside the validity window. Any verifier that treats "signature checks out and `now < expires_at`" as authorization is running a check that is structurally blind to revocation. ## What Was Observed An orchestrator instance `O` delegated a scoped warrant to worker `W1` at T+0 with a 4-hour expiry and a 30-minute credential-cache TTL. At T+40m, a security event triggered administrative revocation of `W1`'s signing key under AAIF (key compromise, not warrant expiry). The revocation record was published to the federation revocation feed at T+41m. `W1` had cached its warrant and signing key at T+30m (last refresh). Its cache TTL does not expire until T+60m. Its process did not subscribe to the revocation feed — it only refreshes on TTL expiry. Between T+41m and T+60m, `W1` continued to accept tasks and sign tool-call attestations. Peer `W2`, validating `W1`'s attestations, held a cached revocation list refreshed every 15 minutes (last refresh T+38m). `W2` accepted `W1`'s signatures as valid through T+53m. Two independent caching layers — the signer's credential cache and the verifier's revocation-list cache — composed into a **17-minute window** (T+41m to T+58m, bounded by the verifier's next refresh at T+53m plus a retry backoff that delayed the refresh to T+58m) during which a revoked key produced accepted attestations. The trace: 1. T+0: warrant issued, `expires_at = T+4h`, `warrant_id = w-7f3a`. 2. T+30: `W1` refreshes credential cache; caches warrant + key material with local `cache_expiry = T+60`. 3. T+40: admin revocation of key `k-W1`. Revocation record `rev-9c1` published T+41. 4. T+41 to T+53: `W1` signs attestations; `W2` validates against stale revocation list (last refresh T+38), accepts. 5. T+53: `W2` refresh attempt fails (feed timeout), enters 5-minute backoff. 6. T+58: `W2` refresh succeeds; `rev-9c1` now present; subsequent attestations rejected. 7. T+60: `W1` cache TTL expires; refresh returns "key revoked"; `W1` halts. The 17-minute acceptance window is the product of two independent staleness budgets, not the sum — either one being zero closes the window. ## Condition of Validity The invariant that bounds this failure: > **For any warrant presentation accepted at time `t`, the verifier must be able to assert that its revocation view is no staler than `max_staleness`, AND the signer must not present credentials whose local cache age exceeds `max_staleness`.** The acceptance window is `min(signer_cache_remaining, verifier_revocation_age_remaining)` at the moment of revocation, and it is bounded above by `max_staleness` only if both sides enforce the same bound. This holds only when: - The signer's credential cache TTL `≤ max_staleness`. - The verifier's revocation-list cache TTL `≤ max_staleness`. - The warrant carries a `revocation_epoch` or short-lived proof-of-freshness (e.g., a signed "not revoked as of T" token from the issuer) that the verifier checks against its own clock skew budget. - Feed outages degrade to **fail-closed** (reject presentations) rather than fail-open (accept against stale list). The observed backoff at T+53 was fail-open. It does *not* hold when the signer and verifier independently choose TTLs with no shared `max_staleness` contract, which is the AAIF default when no `revocation_policy` block is negotiated during capability handshake. ## Decision Boundary The boundary is the choice of what an instance does when its revocation view is stale and it is asked to validate a peer warrant: - **Accept against stale view** → fail-open; opens the window above. Correct only for read-only, non-privileged operations where the cost of a false accept is bounded. - **Reject on stale view** → fail-closed; safe but causes availability collapse during feed outages (every agent halts when the feed blips). - **Accept only if the warrant carries a freshness proof newer than the verifier's staleness budget** → the correct middle path, but requires the issuer to mint short-lived freshness tokens, which most AAIF deployments do not enable by default. The decision an operator must make explicitly: set `max_staleness` once, propagate it into the capability handshake so both signer and verifier adopt it, and require freshness proofs for any operation above the read-only tier. Absent that, the system silently defaults to fail-open with unbounded composition of two TTLs. ## Operational Effect Concrete consequences when the boundary is crossed: - Revoked agents continue to emit accepted attestations for up to `signer_ttl + verifier_ttl` worst case (here 17 minutes, but with 30m/15m TTLs the theoretical ceiling is 45m). - Audit logs show *valid signatures* on actions taken by a revoked key — post-hoc forensics must reconstruct the revocation timeline to identify which attestations are tainted, because the signatures themselves do not reveal it. - Downstream agents that consumed `W1`'s attestations as proof-of-authorization have no way to know their own actions were predicated on a revoked warrant; the taint propagates one hop. - The failure is silent: no error, no log line, no signature failure. It is only visible by correlating the revocation feed timestamp against the attestation timestamps. The guardrail: enforce a shared `max_staleness` in the AAIF capability handshake, require issuer-signed freshness proofs for privileged warrants, and make revocation-feed staleness fail-closed for anything above read-only. The code below encodes the check that must run on every warrant presentation. ```python from dataclasses import dataclass from datetime import datetime, timedelta class RevocationViewStaleError(RuntimeError): """Raised when a warrant cannot be validated because the verifier's revocation view is older than the negotiated max_staleness budget.""" pass @dataclass class Warrant: warrant_id: str signer_key_id: str issued_at: datetime expires_at: datetime freshness_proof_at: datetime | None # issuer-signed "not revoked as of" @dataclass class RevocationView: last_refresh: datetime revoked_key_ids: frozenset[str] def validate_presentation( warrant: Warrant, view: RevocationView, now: datetime, max_staleness: timedelta, privileged: bool, ) -> None: # Expiry is necessary but not sufficient. if now >= warrant.expires_at: raise RevocationViewStaleError( f"warrant {warrant.warrant_id} expired at {warrant.expires_at}" ) if warrant.signer_key_id in view.revoked_key_ids: raise RevocationViewStaleError( f"signer key {warrant.signer_key_id} is revoked" ) view_age = now - view.last_refresh if view_age > max_staleness: # Fail-closed for privileged operations; the stale view cannot # certify non-revocation within the negotiated budget. if privileged: raise RevocationViewStaleError( f"revocation view age {view_age} exceeds max_staleness " f"{max_staleness}; refusing privileged presentation of " f"warrant {warrant.warrant_id}" ) # For read-only, fall through only if a freshness proof covers the gap. if warrant.freshness_proof_at is None or ( now - warrant.freshness_proof_at > max_staleness ): raise RevocationViewStaleError( f"stale view and no freshness proof newer than " f"max_staleness for warrant {warrant.warrant_id}" ) # Acceptance: signature valid, not revoked, and revocation view is # within the shared staleness budget (or freshness-proved). return None ```