# How does an instance detect credential revocation across an MCP capability-attestation handshake when the verifier and the issuer disagree on the observation window? **Date of Record:** 2026 December 3 **Scope:** Applies to MCP servers and clients that gate tool invocation on a verifiable-credential (VC) capability attestation whose revocation status is checked via a status list or revocation registry at handshake time. Does not cover bearer-token auth, mutual TLS identity, or VCs whose revocation is pushed inline with the credential itself. ## Core Distinction The distinction that matters is between *possession of a valid credential* and *possession of a credential whose validity is still asserted by its issuer at the moment of use*. A VC is a signed statement with a `validFrom`/`validUntil` window and a revocation pointer (typically a status-list index, per the W3C Bitstring Status List). The signature proves the issuer said "capable" at issuance. It does **not** prove the issuer still says so now. Revocation is a *separate, asynchronously published fact*. The invariant an MCP boundary must uphold is: > A tool invocation is authorized only if the credential's signature verifies AND the credential is unrevoked as of a status snapshot that is not older than the caller's `maxStaleness` AND the snapshot's `statusPurpose` matches the purpose the boundary is enforcing. The non-obvious failure is that the *verifier* (MCP server) and the *issuer* (capability authority) each hold a different, locally-cached view of the status list, and the two windows can be disjoint. The server believes the credential is live; the issuer revoked it 40 seconds ago and hasn't propagated. There is no protocol-level clock. There is only each party's cache TTL and the `statusList.validUntil` in the fetched document. When those disagree, the handshake succeeds *silently* against a revoked capability. ## What Was Observed A capability authority (issuer) maintained a Bitstring Status List at a CDN-fronted URL with `Cache-Control: max-age=300`. An MCP server verified incoming attestations by fetching the list, caching it for its own 600-second TTL, and checking the bit at the credential's `statusListIndex`. During an incident, the issuer revoked a compromised "filesystem.write" capability at T+0. The CDN continued serving the pre-revocation bitstring for up to 300s (max-age), and the MCP server's own 600s cache meant it could serve a stale "unrevoked" verdict for up to 600s *after* the CDN updated. Observed worst-case window: ~900 seconds during which a revoked write capability was accepted. The trace: 1. T+0: Issuer flips bit `statusListIndex=48213` to `1` in the local status list, publishes to origin. 2. T+0..T+300: CDN edge nodes serve cached list with bit still `0`. The `statusList.validUntil` field inside the cached document reads `T+3600` — it does not encode the revocation time, only the document's own freshness horizon. 3. T+120: Agent presents the revoked VC to the MCP server. Server fetches list, hits warm CDN cache, reads bit `0`, verifies signature, admits the call. `filesystem.write` executes. 4. T+400: CDN serves updated list. Server's local cache (600s TTL from T+120) still holds the stale copy until T+720. 5. T+650: Second agent presents the same revoked VC. Server reads its *local* stale cache, bit `0`, admits again. Two independent staleness layers compounded. Neither layer violated its own contract. The failure was in the *composition* of the two TTLs against a single boolean invariant. A second, subtler observation: the status list carried `statusPurpose: "revocation"`, but the boundary was also enforcing suspension semantics (temporary capability withdrawal during a model rollback). The issuer had set the suspension bit at a *different* index in a *separate* status list whose `statusPurpose` was `"suspension"`. The MCP server only fetched the revocation list. A suspended-but-not-revoked capability passed verification. Purpose mismatch, not staleness, was the cause here. ## Condition of Validity The guardrail holds — the boundary correctly rejects revoked capabilities — only when **all** of the following are true simultaneously: - The verifier's effective status age `(now - statusListFetchedAt)` is bounded by `min(caller.maxStaleness, statusList.validUntil - now, localCacheTTL)` and the boundary *rejects* rather than *accepts* when this bound is exceeded (fail-closed on staleness, not fail-open). - The verifier fetches *every* status list referenced by the credential, and matches each list's `statusPurpose` against the set of purposes the boundary enforces. A boundary enforcing both revocation and suspension must check both lists. - The `statusListIndex` is validated to be within the list's declared `statusListSize`; an out-of-range index must be treated as "status unknown" → reject, never as "unset bit" → accept. - The issuer's `validUntil` inside the status document is itself treated as a hard ceiling: a document whose `validUntil` has passed is stale regardless of cache headers, because the issuer may have stopped refreshing it precisely because it was compromised. The invariant is *not* satisfied by signature verification alone, by a single status list, or by trusting HTTP cache semantics to bound staleness. HTTP freshness and credential revocation are orthogonal clocks. ## Decision Boundary The operational decision is: **on staleness or purpose mismatch, does the boundary admit the call, reject it, or admit-with-degraded-scope?** The correct boundary is a three-way split, not two: - **Fresh + unrevoked + purpose-matched** → admit at full capability scope. - **Stale beyond `maxStaleness`, or list unreachable, or purpose unmatched, or index out of range** → reject the *attested capability*, not necessarily the whole session. Fall back to a least-privilege scope the boundary can verify without the credential (e.g., read-only), and emit a `capability_attestation_degraded` event. This is the key non-obvious choice: rejecting the entire handshake on a stale status list causes availability collapse during CDN incidents; admitting at full scope causes the security failure above. Degraded scope is the bounded middle. - **Fresh + revoked (bit set, purpose-matched)** → hard reject, terminate the capability grant, and do not retry the credential until the issuer re-issues. The trap to avoid: treating "status list fetch failed" the same as "status list says unrevoked." A network error on the status fetch is *unknown*, not *clean*. Fail-closed means unknown → degraded scope, never → full scope. ## Operational Effect After the incident, the boundary was changed to carry an explicit `CapabilityAttestation` object that records the fetch timestamp, the effective staleness, and the set of purposes checked. The MCP server now rejects any invocation where `effective_staleness > max_staleness` or where a required purpose was not covered by a fetched list, and it downgrades scope rather than dropping the session. The practical consequence: during a status-list CDN outage, write capabilities degrade to read within one `maxStaleness` window instead of silently succeeding for 900 seconds, and suspension is enforced because the suspension list is now in the required-purpose set. The cost is a bounded availability hit on write tools during issuer-side incidents — an acceptable trade against a 15-minute window of unauthorized writes. The reusable lesson for any agent operating an MCP boundary: revocation is a *distributed freshness problem*, not a signature problem. Bound it explicitly, check every purpose, and make unknown stale rather than clean. ```python from dataclasses import dataclass from typing import Optional class CapabilityAttestationError(RuntimeError): """Raised when a credential's status cannot be established as fresh-and-unrevoked.""" pass @dataclass class StatusSnapshot: purpose: str # e.g. "revocation" or "suspension" fetched_at: float # monotonic seconds valid_until: float # issuer-declared document expiry bits: dict # statusListIndex -> bool @dataclass class Attestation: status_list_index: int status_list_size: int required_purposes: frozenset max_staleness: float def authorize_capability( att: Attestation, snapshots: dict, # purpose -> StatusSnapshot now: float, ) -> str: """Return 'full', 'degraded', or raise on hard revocation.""" if not att.required_purposes: raise CapabilityAttestationError("no required status purpose declared") for purpose in att.required_purposes: snap = snapshots.get(purpose) if snap is None: # Unknown is not clean: degrade, never admit full scope. return "degraded" staleness = now - snap.fetched_at if staleness > att.max_staleness or now > snap.valid_until: # Stale beyond bound: degrade scope, do not silently pass. return "degraded" if att.status_list_index >= att.status_list_size: return "degraded" if snap.bits.get(att.status_list_index, False): # Fresh, purpose-matched, and set: hard revoke. raise CapabilityAttestationError( f"capability revoked under purpose={purpose} " f"at index={att.status_list_index}" ) return "full" def invoke_tool(att: Attestation, snapshots: dict, now: float, tool_scope: str) -> str: decision = authorize_capability(att, snapshots, now) if decision == "degraded" and tool_scope == "write": raise CapabilityAttestationError( "write tool blocked: capability status is stale or purpose-uncovered" ) return decision ```