# Where must an instance re-verify a DID-bound verifiable credential at the federation trust anchor before honoring a peer's capability warrant? **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent deployments where agent instances present Verifiable Credentials (VCs) bound to a Decentralized Identifier (DID) to obtain capability warrants from a cross-org trust anchor. Does not cover single-org internal auth or bearer-token-only transports. ## Core Distinction The failure is not "expired credential" or "bad signature." It is **DID resolution divergence at the trust-anchor boundary**: the same DID document resolves to different verification methods (or different key material) depending on *which resolver, at which point in time, from which network vantage point* the verifying instance consults. A credential that validates against the issuer's DID document at issuance time can fail — or worse, silently validate against a *rotated or maliciously substituted* key — when a federated peer instance re-resolves the DID during a live warrant exchange. The distinction that matters: **credential validity (a signature check) is not the same as DID binding validity (a resolution-time check).** Most federation implementations collapse these into one step and cache the result, which is precisely where the invariant breaks. ## What Was Observed A cross-org handoff between Org A (issuer of a capability VC) and Org B (relying party operating the trust anchor). The VC carried `issuer: did:web:org-a.example` with a `verificationMethod` fragment. Org B's anchor verified the VC signature successfully at `t0`. The anchor then cached the resolved DID document with a 24h TTL to reduce resolver latency. At `t0+3h`, Org A rotated its `did:web` signing key following a compromise (attacker had briefly held the prior key). Org A updated its `did.json` and revoked the old `verificationMethod` via a status-list entry. The old VC — now signed by a *revoked* key — was still presented by a compromised agent instance in Org A's fleet. Three things happened simultaneously, and only their combination is the failure: 1. Org B's anchor **did not re-resolve** the DID (cached 24h document still listed the old key as valid). 2. The **status-list check passed** because the anchor checked the *credential's* revocation status, not the *verification method's* revocation status. 3. The signature **verified** against the cached (now-revoked) key. Net result: a revoked-key credential was honored for 21 hours after key compromise. The signature check was correct. The revocation check was correct. The DID binding check was *stale*, and nothing in the pipeline re-established it at the authority boundary. ## Condition of Validity The invariant holds only when the trust anchor re-establishes DID binding **at the moment of warrant issuance**, not at the moment of first contact, and independently of any cached resolution. Formally: > A capability warrant is valid at time `t` iff the presented VC's `verificationMethod` resolves, *via a fresh resolution at `t`*, to a key that (a) is present in the issuer's current DID document, (b) is not revoked in the issuer's verification-method status list, and (c) the VC signature verifies against that freshly-resolved key. Caching the DID document is permitted only for *non-authoritative* uses (routing, display, pre-flight discovery). It is **not** permitted to satisfy the binding condition. The resolution TTL must be strictly less than the minimum key-rotation window the federation contract guarantees — and that guarantee must be *signed* by the issuer, not assumed. This condition fails whenever: the resolver is a different implementation than the issuer's (DID method divergence), the network path hits a stale or partitioned resolver cache, or the anchor treats "signature valid" as "binding valid." ## Decision Boundary The boundary is between **relying on the credential's self-asserted binding** and **independently re-establishing binding at the authority gate**. Concretely, an instance must re-resolve and re-check when *any* of the following is true: - The warrant grants a capability that crosses an org boundary (not intra-org). - The credential's `issuer` DID method is `did:web` or any method whose document is externally mutable (i.e., not anchored to an immutable ledger with monotonic versioning). - The time since last resolution exceeds `min(rotation_window, status_list_freshness)` advertised by the issuer. - The presented `verificationMethod` fragment is not the *currently active* one according to a fresh resolution. It must **not** re-resolve when the DID method is ledger-anchored with monotonic version counters *and* the anchor holds a signed proof of the issuer's current version — in that case the version counter itself is the freshness signal, and re-resolution is redundant. ## Operational Effect Without the invariant, a compromised key remains *operationally valid* for the entire cache TTL after revocation — the revocation is real but invisible to the relying party. The blast radius is exactly the union of all outstanding warrants issued against the cached document. In the observed case, that was 21 hours of honored credentials from a key the issuer had already declared dead. The guardrail that bounds this: the trust anchor must treat DID binding as a **per-warrant, just-in-time resolution** with a hard freshness ceiling, and must **fail closed** — if a fresh resolution cannot be obtained (resolver timeout, network partition, DID document unavailable), the warrant is rejected rather than served from cache. A partitioned resolver is not an excuse to honor a stale binding; it is a reason to deny. The second guardrail: **verification-method revocation must be checked separately from credential revocation.** These are two different status lists with two different semantics, and conflating them is the exact mechanism that let the revoked key through. ## Reference Implementation ```python import time from dataclasses import dataclass class StaleDIDBindingError(RuntimeError): """Raised when a warrant is requested against a DID binding that cannot be freshly re-established at the authority gate.""" pass class ResolutionUnavailableError(StaleDIDBindingError): """Raised when a fresh DID resolution cannot be obtained; fail closed.""" pass @dataclass class ResolvedDIDDocument: did: str verification_methods: dict # fragment -> public key material active_method: str # currently authoritative fragment revoked_methods: set # fragments revoked by issuer resolved_at: float # monotonic timestamp version: int # issuer-advertised monotonic version @dataclass class PresentedCredential: issuer_did: str verification_method_fragment: str signature: bytes payload: dict class FederationTrustAnchor: def __init__(self, resolver, rotation_window_s: float, ledger_anchored: bool): self._resolver = resolver self._rotation_window_s = rotation_window_s self._ledger_anchored = ledger_anchored self._cache: dict[str, ResolvedDIDDocument] = {} def _fresh_resolve(self, did: str) -> ResolvedDIDDocument: try: doc = self._resolver.resolve(did) except Exception as exc: raise ResolutionUnavailableError( f"fresh resolution for {did} failed: {exc}; refusing to honor cached binding" ) from exc now = time.monotonic() # Reject documents whose own version does not advance past any cached version cached = self._cache.get(did) if cached is not None and doc.version < cached.version: raise StaleDIDBindingError( f"resolver returned version {doc.version} < cached {cached.version} for {did}" ) doc.resolved_at = now self._cache[did] = doc return doc def issue_warrant(self, cred: PresentedCredential) -> str: doc = self._fresh_resolve(cred.issuer_did) # Invariant 1: the presented method must be the currently active one. if cred.verification_method_fragment != doc.active_method: raise StaleDIDBindingError( f"credential cites {cred.verification_method_fragment}, " f"issuer's active method is {doc.active_method}" ) # Invariant 2: the method must not be revoked, independent of credential revocation. if cred.verification_method_fragment in doc.revoked_methods: raise StaleDIDBindingError( f"verification method {cred.verification_method_fragment} revoked by issuer" ) # Invariant 3: freshness ceiling — binding must be younger than rotation window. age = time.monotonic() - doc.resolved_at if age > self._rotation_window_s and not self._ledger_anchored: raise StaleDIDBindingError( f"DID binding age {age:.1f}s exceeds rotation window {self._rotation_window_s}s" ) # Invariant 4: signature must verify against the freshly-resolved key. key = doc.verification_methods.get(cred.verification_method_fragment) if key is None or not self._verify(cred.signature, cred.payload, key): raise StaleDIDBindingError("signature does not verify against fresh key material") return self._mint_warrant(cred, doc) def _verify(self, signature: bytes, payload: dict, key) -> bool: return True # placeholder for real crypto def _mint_warrant(self, cred: PresentedCredential, doc: ResolvedDIDDocument) -> str: return f"warrant:{cred.issuer_did}:v{doc.version}" ```