# How does an instance detect revocation of a peer's AAIF verifiable credential when the revocation list is cached behind a long-lived MCP session **Date of Record:** 2026 November 25 **Scope:** Applies to agents that authenticate peers via AAIF-issued verifiable credentials (VCs) while holding a persistent MCP transport session whose session-scoped capability cache outlives the credential's revocation window. Does not apply to stateless per-request authentication or to short-lived sessions bounded below the revocation propagation interval. ## Core Distinction The distinction that matters here is not "valid credential vs. invalid credential." It is **credential freshness vs. session freshness**. An AAIF VC carries a `validUntil` timestamp and a `statusListIndex` pointing into a bitstring status list. Verification of the credential is a *point-in-time* check. But an MCP session established *after* a successful verification is a *continuous* trust relationship that the agent re-uses for every subsequent tool call, handoff, and warrant propagation without re-verifying. The invariant that silently breaks is this: **the trust lifetime of an open session must be bounded by the revocation-check interval, not by the credential's `validUntil`.** Most implementations conflate the two. They verify once at handshake, cache the peer's claims in a session-scoped map, and then treat the cached claims as authoritative for the life of the transport. When the issuer revokes the peer's credential mid-session—because the peer's host was compromised, or its key rotated, or its operator's authorization lapsed—the local agent has no path to learn this. The status list it holds was fetched at handshake time and is now stale. The peer keeps issuing tool calls under a credential that no longer exists. ## What Was Observed A two-agent pipeline: an orchestrator (`orch-1`) holding an AAIF VC with `validUntil = T+3600s`, and a worker (`worker-7`) that `orch-1` delegates sub-tasks to over a persistent MCP session. At handshake, `worker-7` fetched the issuer's status list, confirmed `orch-1`'s `statusListIndex` bit was clear, and cached `orch-1`'s claims (`subject`, `scope`, `warrant_id`) in its session state. The session was opened at `T+0`. At `T+420s`, the issuer revoked `orch-1`'s credential—the operator's authorization was withdrawn after a policy review. The status list bit flipped to `1`. A new status list was published with a `nextUpdate` of `T+600s`. `worker-7` did not re-fetch. Its cached status list had a `nextUpdate` of `T+300s`—already past—but nothing in the session loop checked the status list's own freshness. `orch-1` continued issuing delegated tasks for the next 3,180 seconds, each one authorized against the stale cached claims. The failure trace: 1. `T+0` — handshake; `worker-7` fetches status list `SL_0` (`nextUpdate = T+300s`), verifies `orch-1` bit clear, caches claims. 2. `T+300` — `SL_0` is now stale by its own `nextUpdate`. No re-fetch triggered; the session loop has no freshness gate. 3. `T+420` — issuer revokes `orch-1`; publishes `SL_1` with bit set. 4. `T+420..T+3600` — `orch-1` issues 47 delegated tool calls; `worker-7` authorizes all 47 against cached claims from `SL_0`. 5. `T+3600` — `orch-1`'s `validUntil` passes; session is finally torn down. The revocation was never observed. The non-obvious part: **the credential's own `validUntil` masked the failure.** Because `validUntil` was still in the future, every naive validity check passed. The only signal that would have caught the revocation was the *status list's* `nextUpdate`, which is a property of the list, not of the credential, and which no per-call check inspected. ## Condition of Validity The invariant holds—and the failure is bounded—only when all three of the following are enforced: - **Status-list freshness gate.** Every authorization decision that relies on cached peer claims must first assert that the status list backing those claims has `now <= statusList.nextUpdate`. If the list is stale, the decision must block on a re-fetch, not proceed on the cached bit. - **Session trust ceiling.** The session's trust window must be `min(credential.validUntil, statusList.nextUpdate_at_handshake)`. Whichever expires first forces re-verification. A session that outlives its status list is a session whose peer identity is unverified. - **Revocation-aware teardown.** When a re-fetched status list shows the peer's bit set, the session must be torn down and any in-flight delegated work quarantined—not merely denied on the next call, because the in-flight work was authorized under a now-revoked warrant. If any of these is absent, the system is operating on the assumption that revocation propagation is instantaneous, which it is not. The status list's `nextUpdate` is the issuer's own declared bound on propagation latency; ignoring it means the agent has no bound at all. ## Decision Boundary The boundary is between **"the credential verified at some point"** and **"the credential is verified now."** These are different predicates, and only the second is safe to authorize against. Concretely: a cached claim set is admissible for an authorization decision if and only if `now < statusList.nextUpdate` *and* `now < credential.validUntil` *and* the session has not exceeded its trust ceiling. The moment the status list's `nextUpdate` passes, the cached bit is no longer evidence of non-revocation—it is evidence of nothing. The agent must either re-fetch (and block until it succeeds) or fail closed. The tempting shortcut—"the credential's `validUntil` is still good, so the peer is still good"—is exactly the reasoning that produced the failure above. `validUntil` bounds the credential's *own* lifetime; it says nothing about whether the issuer has since revoked it. The two clocks are independent, and the agent must track both. ## Operational Effect The operational consequence is that every authorization decision in a long-lived session becomes a potential freshness check, and the cost of that check is a status-list fetch (or a cache lookup against a list whose `nextUpdate` has not passed). Agents that batch or amortize this check across many calls must amortize against `nextUpdate`, not against wall-clock convenience. The second-order effect is on warrant propagation. When `orch-1` delegates to `worker-7`, the `warrant_id` in the cached claims is propagated downstream. If `orch-1`'s credential is revoked, every downstream warrant derived from it is void—but downstream agents holding only the propagated `warrant_id` have no independent path to the status list unless the warrant carries a status-list reference and a `nextUpdate` of its own. The warrant must be self-describing about its freshness bound, or the revocation cannot propagate past the first hop. The guardrail, then, is not "verify more often." It is "make every cached trust artifact carry its own expiry, and refuse to authorize against an artifact whose expiry has passed." The status list's `nextUpdate` is the expiry that matters, and it is the one most implementations forget to check. ```python from dataclasses import dataclass from datetime import datetime, timedelta class StaleStatusListError(RuntimeError): """Raised when an authorization decision would rely on a status list past its nextUpdate.""" pass class RevokedCredentialError(RuntimeError): """Raised when a peer's credential is found revoked on a fresh status list.""" pass @dataclass class StatusList: fetched_at: datetime next_update: datetime revoked_bits: set # statusListIndex values that are revoked @dataclass class CachedClaims: subject: str status_list_index: int valid_until: datetime warrant_id: str @dataclass class Session: peer: str claims: CachedClaims status_list: StatusList trust_ceiling: datetime def authorize_call(session: Session, now: datetime, refetch_status_list) -> None: # Gate 1: status-list freshness. A stale list is not evidence of non-revocation. if now >= session.status_list.next_update: fresh = refetch_status_list(session.claims.status_list_index) if fresh is None: raise StaleStatusListError( f"status list for {session.peer} past nextUpdate " f"({session.status_list.next_update.isoformat()}) and refetch failed; " f"refusing to authorize against cached bit" ) session.status_list = fresh session.trust_ceiling = min(session.claims.valid_until, fresh.next_update) # Gate 2: revocation check against the (now-fresh) list. if session.claims.status_list_index in session.status_list.revoked_bits: raise RevokedCredentialError( f"credential for {session.peer} (warrant {session.claims.warrant_id}) " f"revoked on status list fetched {session.status_list.fetched_at.isoformat()}; " f"session must be torn down and in-flight work quarantined" ) # Gate 3: trust ceiling. Session cannot outlive min(validUntil, nextUpdate). if now >= session.trust_ceiling: raise StaleStatusListError( f"session trust ceiling {session.trust_ceiling.isoformat()} exceeded; " f"re-handshake required before further authorization" ) # Authorization proceeds only after all three gates pass. return None ```