# Why does an instance accept a revoked DID signer when its manifest cache TTL outlives the federation revocation window? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent handoffs where the receiving agent verifies a peer's signed manifest against a DID document resolved through a federated resolver. Does not apply to same-org agents sharing a single trust root or to purely symmetric authentication without manifest signing. ## Core Distinction There are two clocks in a DID-federated agent handoff, and they are not the same clock. The *verification clock* is the moment the receiving instance checks a manifest signature. The *revocation clock* is the moment the issuing organization's federation publishes a DID deactivation or key-rotation event. A signature that was valid at signing time and valid at verification time can still be invalid at the *intersection* of those two instants when the verifier is operating on a cached DID document whose TTL exceeds the federation's revocation propagation window. The distinction that matters: most engineers treat "signature valid" as a property of the (manifest, key) pair. It is actually a property of the (manifest, key, key-status-at-verification-time) triple. The third element is a distributed-state query, not a cryptographic check, and it is the one that silently degrades. ## What Was Observed A peer agent `orchestrator@org-b` presented a signed capability manifest to `worker@org-a`. The manifest was signed with key `did:web:org-b#key-2`. Org-a's resolver had cached the DID document for `did:web:org-b` with a 3600s TTL. At T+00:00 the manifest verified cleanly: signature matched, `key-2` was listed in `verificationMethod`, and the `capabilityInvocation` relationship included it. At T+00:14, org-b rotated keys after an operator credential leak. `key-2` was removed from `verificationMethod` and a `deactivated` flag was set on the DID document. Org-b's federation publisher emitted the revocation to the shared trust registry. Org-a's resolver, per its TTL policy, did not re-fetch until T+01:00. At T+00:22, the same peer agent — now running with a stolen `key-2` private key, which is precisely why the rotation happened — presented a *new* manifest signed with `key-2`, requesting elevated scope `filesystem:write:/shared`. Org-a's verifier: 1. Resolved `did:web:org-b` → cache hit, stale document, `key-2` still present and authorized. 2. Verified the signature against `key-2` → valid. 3. Checked `capabilityInvocation` on the cached doc → `key-2` present. 4. Granted scope. The manifest was cryptographically perfect. The DID document was stale. The revocation existed in the federation but not in the verifier's working set. The agent accepted a revoked signer for a 38-second window that happened to align with a privilege-escalation attempt. This is not a signature-forgery failure. It is a *freshness* failure at the trust-anchor layer, and it is invisible to every log line that records "signature: OK." ## Condition of Validity The failure requires all of the following to co-occur: - **Asymmetric TTLs.** The verifier's DID-document cache TTL (`C`) exceeds the federation's worst-case revocation propagation latency (`P`). When `C > P`, there exists a window of length `C - P` in which a revoked key verifies successfully. - **Manifest re-signing under the same key.** If the compromised key can only ever validate manifests signed *before* rotation, the damage is bounded to replay of old manifests (which scope-bound nonces and expiry timestamps can catch). The dangerous case is a *fresh* manifest signed with a *revoked* key — the attacker has the private key and is actively using it. - **No out-of-band revocation check.** The verifier trusts the cached document as the sole authority on key status. It does not consult a revocation registry, OCSP-analog, or signed revocation list at verification time. - **Capability scope is bound to the key, not the DID subject.** The grant is "this key may invoke `filesystem:write`," so possession of the key is sufficient. If capability were bound to a subject identity with a separate attestation chained to a live session, the revoked key alone would be insufficient. Absent any one of these, the failure does not manifest. The most commonly *overlooked* one is the first: teams tune cache TTL for latency and never reconcile it against the federation's actual propagation SLO, which is often measured in minutes and occasionally violated. ## Decision Boundary The invariant to enforce: **a manifest signature is valid only if the signing key's status is confirmed live at verification time, or the verifier can prove the manifest was signed within a window bounded by a revocation-proof structure.** Concretely, the verifier must choose one of three postures, and the choice must be explicit per trust relationship, not a global default: 1. **Zero-cache on high-privilege scopes.** For capability grants above a risk threshold (write, network egress, credential access), force a live DID resolution and revocation-list fetch, accepting the latency. `C = 0`, `P` irrelevant. 2. **Bounded cache with revocation-list pinning.** Cache the DID document but require a signed, monotonically-versioned revocation list from the federation, refreshed at interval `R < P`, and reject any manifest whose signing key appears in the current list. The cache TTL for the *document* may be long; the TTL for the *revocation list* may not. 3. **Short-lived key-bound attestations.** The issuer mints a per-manifest attestation with a hard expiry `E` such that `E < P`. The verifier accepts the manifest only if `now < E` and the attestation's issuer key is itself live. This converts the freshness problem into an expiry problem, which is local and cheap to check. The boundary is: if you cannot bound `C - P` to a value smaller than the shortest-lived privilege you grant, you must not rely on cached DID status for that privilege. There is no fourth option where caching is free and revocation is instant; the federation's propagation latency is a physical property of the network you do not control. ## Operational Effect The observable symptom is a class of "impossible" incidents: audit logs show every signature verified, every key authorized, every check passed — and yet an unauthorized action occurred. Post-incident forensics that replay the manifest against the *current* DID document will show the signature failing, which misleads responders into suspecting log tampering or clock skew rather than cache staleness. Mitigations that work: - **Log the DID document version and fetch timestamp** alongside every signature verification, not just the boolean result. A verification log line that says `sig=ok key=key-2 doc_version=7 fetched_at=T-00:14` makes the staleness visible. - **Treat revocation-list staleness as a hard failure, not a warning.** If the revocation list is older than `P`, refuse the handoff. Fail closed on freshness, not on cryptography. - **Bind capability grants to attestation expiry, not to key presence.** A key that is present but whose attestation expired 30 seconds ago must not authorize a write. - **Propagate revocation eagerly to peers on rotation.** When org-b rotates, it should push a signed revocation event to every peer with an active trust anchor, rather than waiting for pull-based TTL expiry. Push closes `P` to near-zero for cooperating peers; pull leaves it at the cache interval. The deeper lesson: DID-based trust anchoring gives you cryptographic *authenticity* but not cryptographic *freshness*. Freshness is a distributed-systems property, and it fails the same way every distributed cache fails — silently, at the boundary, exactly when an adversary is timing the window. ```python import time from dataclasses import dataclass, field from typing import Optional class RevokedSignerAcceptedError(RuntimeError): """Raised when a manifest signature verifies against a key whose live status was never confirmed, or was confirmed only via a stale cache.""" pass @dataclass class DIDDocument: did: str version: int verification_methods: set deactivated: bool fetched_at: float @dataclass class RevocationList: version: int revoked_keys: set issued_at: float @dataclass class SignedManifest: issuer_did: str signing_key_id: str scope: str signed_at: float @dataclass class TrustAnchor: did: str doc_cache_ttl: float # C revocation_propagation_slo: float # P max_privileged_scope_ttl: float # E bound def verify_manifest( manifest: SignedManifest, anchor: TrustAnchor, cached_doc: Optional[DIDDocument], cached_revlist: Optional[RevocationList], now: Optional[float] = None, privileged_scopes: frozenset = frozenset({"filesystem:write", "network:egress"}), ) -> bool: now = now if now is not None else time.time() if manifest.issuer_did != anchor.did: raise RevokedSignerAcceptedError( f"manifest issuer {manifest.issuer_did} does not match anchor {anchor.did}" ) # Invariant: cache TTL must not exceed revocation propagation window # for any scope that can be privileged. if manifest.scope in privileged_scopes: if anchor.doc_cache_ttl > anchor.revocation_propagation_slo: raise RevokedSignerAcceptedError( f"cache TTL {anchor.doc_cache_ttl}s exceeds revocation SLO " f"{anchor.revocation_propagation_slo}s for privileged scope " f"{manifest.scope!r}; freshness cannot be guaranteed" ) if cached_doc is None or cached_revlist is None: raise RevokedSignerAcceptedError("no DID document or revocation list available") doc_age = now - cached_doc.fetched_at if doc_age > anchor.doc_cache_ttl: raise RevokedSignerAcceptedError( f"DID document stale: age {doc_age:.1f}s > ttl {anchor.doc_cache_ttl}s" ) revlist_age = now - cached_revlist.issued_at if revlist_age > anchor.revocation_propagation_slo: raise RevokedSignerAcceptedError( f"revocation list stale: age {revlist_age:.1f}s > slo " f"{anchor.revocation_propagation_slo}s; failing closed" ) if cached_doc.deactivated: raise RevokedSignerAcceptedError(f"DID {anchor.did} deactivated") if manifest.signing_key_id not in cached_doc.verification_methods: raise RevokedSignerAcceptedError( f"signing key {manifest.signing_key_id} not in DID document" ) if manifest.signing_key_id in cached_revlist.revoked_keys: raise RevokedSignerAcceptedError( f"signing key {manifest.signing_key_id} appears in revocation list " f"version {cached_revlist.version}" ) if manifest.scope in privileged_scopes: attestation_age = now - manifest.signed_at if attestation_age > anchor.max_privileged_scope_ttl: raise RevokedSignerAcceptedError( f"privileged attestation expired: age {attestation_age:.1f}s > " f"max {anchor.max_privileged_scope_ttl}s" ) return True ```