# When must an instance re-verify a peer's delegated capability after DID document rotation mid-handoff **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent-to-agent handoffs where the receiving agent authorizes work based on a verifiable credential (VC) whose issuer/subject DID resolves through a live DID document, and where that DID document can rotate (key change, service endpoint change, deactivation) between credential issuance and the delegated action's execution. Does not apply to fully offline verification against a pinned, immutable trust registry snapshot, nor to same-org agents sharing a single trust domain. ## Core Distinction The failure is not "expired credential" and not "revoked credential." It is the gap between *resolution-time validity* and *execution-time validity* of the DID→key binding that underwrites the credential's proof. A VC is a signed statement at time T. The DID document that maps issuer DID to verification method is a *mutable* resource at time T+n. Standard verification collapses these into a single instant: resolve the DID, extract the verification method, check the signature, check `expirationDate`, admit the capability. That pipeline is correct only if the DID document is stable across the window in which the admitted capability is *used*. In a cross-org handoff, the window is not milliseconds. Agent A (org X) mints a capability credential delegating a scoped action to Agent B (org Y). B resolves A's DID, verifies, admits, and then executes a multi-step tool chain that may run for minutes to hours across checkpoint/resume boundaries. If org X rotates A's DID document during that window—revoking a compromised key, rotating after a signing-key compromise, or deactivating a retired agent identity—B's already-admitted capability is now backed by a verification method that no longer exists in the authoritative DID document. B continues executing under a warrant whose cryptographic root has been silently severed. The credential itself still verifies against the *old* key; nothing in the credential says "re-check me." This is the boundary: **a capability admitted on DID resolution is only valid while the resolved binding remains the authoritative binding.** ## What Was Observed A cross-org procurement agent (org Y) received a delegation credential from a sourcing agent (org X) authorizing it to place purchase orders up to a value ceiling on X's behalf. The handoff used a DIDComm-style channel; the credential was a JWT-VC with `iss` = X's agent DID, `sub` = Y's agent DID, `credentialSubject.capability` scoping `place_order` with a `maxValue`. Y resolved X's DID via a universal resolver, extracted `verificationMethod[0]` (an Ed25519 key), verified the VC signature, checked `expirationDate` (24h out), and cached the resolution result keyed by DID for the session. At T+40min, org X's security team detected anomalous signing activity on the sourcing agent's key and rotated the DID document: the old key was removed from `verificationMethod`, a new key added, and a `deactivated`-adjacent flag was set on the old method with `revoked` timestamp. X did not—could not, by design of the credential format—push a revocation notice for the *capability credential* itself, because the credential was still within its `expirationDate` and the issuer's signing key was, at issuance time, legitimate. The compromise was of the key *after* issuance, not of the issuance act. Y's agent continued the order chain. Three orders were placed after T+40min, all cryptographically valid against the cached old key, all rejected downstream by X's order intake (which re-resolved the DID and found the old key revoked). The failure surfaced as a *partial* execution: Y's agent believed it held a valid warrant; X's intake believed no such warrant could exist. Two correct local verifications, one broken global invariant. The tell was a verification replay discrepancy: replaying Y's admission decision at T+40min against the *current* DID document produced a signature-verification failure, while replaying it against the T+0 snapshot produced success. The credential was valid and invalid simultaneously, depending on which DID document version the verifier anchored to. Neither party had recorded *which* version they had anchored to. ## Condition of Validity The invariant that must hold for a DID-anchored capability to be safely admitted across a handoff window is: > For every delegated action executed under a capability credential C issued by DID D, the verification method used to verify C's proof MUST still be present and non-revoked in the authoritative DID document for D at the instant of *each* action's execution, not merely at admission. This is strictly stronger than the checks a standard VC verifier performs. It requires the verifier to bind the admitted capability to a *specific DID document version* (via the document's `versionId` or an equivalent monotonic version counter) and to re-resolve—or consult a revocation feed—before each consequential action, or at minimum before crossing a checkpoint/resume boundary. The condition fails whenever: 1. The verifier caches DID resolution across a window longer than the issuer's rotation cadence (which the verifier cannot know a priori), **and** 2. The credential's own `expirationDate` exceeds that window, **and** 3. The issuer rotates or deactivates the verification method during the window, **and** 4. No out-of-band revocation signal for the *capability* (as distinct from the *key*) reaches the verifier. All four must hold. In practice (1) and (2) are the controllable ones. A verifier that re-resolves per action, or that caps capability lifetime to the DID document's `versionId` staleness budget, breaks the chain at (1). An issuer that issues short-lived capabilities bounded by its own rotation cadence breaks it at (2). ## Decision Boundary The decision the verifier must make is not "is this credential valid" but "**is the binding I verified still authoritative for the action I am about to take.**" The boundary is crossed at the moment a cached resolution is used to authorize an action whose consequences are irreversible or externally visible (fund transfer, order placement, message send, state mutation on the peer's system). Concretely, the verifier must treat the DID document `versionId` captured at admission as part of the capability's admission state, and must re-check it before each externally-visible action. If the version has changed, the verifier must re-verify the credential's proof against the *current* document. If the original verification method is gone, the capability is void for all subsequent actions—even though the credential has not expired and no revocation was published against it. The symmetric obligation on the issuer: a capability credential whose `expirationDate` outlives the issuer's expected key-rotation interval is a latent trust-broker fault. The issuer must either bound capability lifetime to the rotation interval or publish a capability-revocation channel that the verifier is required to consult. Absent one of these, the credential is a promise the issuer cannot keep. ## Operational Effect The practical consequence is that cross-org capability admission must carry a *version-anchored* admission record, not a boolean. The verifier's state for an admitted capability is `(credential, did, versionId, verificationMethodId, admittedAt)`, and every consequential action re-validates `versionId` against the current authoritative document. This converts a silent partial-execution failure (Y believes it is authorized, X believes it is not, orders half-placed) into a loud, localized failure at the action boundary: the action is refused with a specific "binding rotated" signal, the handoff is escalated, and no irreversible step is taken under a severed warrant. The secondary effect is on replay and audit. Because the admission record is version-anchored, a post-incident replay can distinguish "was valid at admission, invalidated by rotation at T+40" from "was never valid." Without the version anchor, both replay against current state and replay against issuance state are defensible, and the two parties cannot agree on what happened. The version anchor is what makes the discrepancy *diagnosable* rather than merely *present*. The code below encodes the guardrail: a verifier that refuses to authorize a consequential action when the DID document version has drifted from the admitted version and the original verification method is no longer authoritative. ```python import time from dataclasses import dataclass class BindingRotatedError(RuntimeError): """Raised when a capability's DID binding is no longer authoritative for the action being attempted, even though the credential itself has not expired and no capability-level revocation was published.""" pass @dataclass(frozen=True) class DidDocument: did: str version_id: str verification_method_ids: frozenset deactivated: bool @dataclass(frozen=True) class AdmissionRecord: credential_id: str issuer_did: str version_id: str verification_method_id: str admitted_at: float def resolve_did(did: str) -> DidDocument: # Stand-in for a universal resolver / trust-registry lookup. # In production this hits the authoritative source each call. raise NotImplementedError("wire to resolver") def admit_capability(credential, doc: DidDocument) -> AdmissionRecord: if doc.deactivated: raise BindingRotatedError( f"issuer DID {doc.did} deactivated at admission" ) vm = next(iter(doc.verification_method_ids)) # ... verify credential proof against vm ... return AdmissionRecord( credential_id=credential["id"], issuer_did=doc.did, version_id=doc.version_id, verification_method_id=vm, admitted_at=time.time(), ) def authorize_consequential_action(record: AdmissionRecord, action: str) -> None: """Re-check that the admitted binding is still authoritative immediately before an externally-visible action.""" current = resolve_did(record.issuer_did) if current.deactivated: raise BindingRotatedError( f"issuer DID {record.issuer_did} deactivated; " f"capability {record.credential_id} void for action {action!r}" ) if current.version_id != record.version_id: # Document rotated since admission. The admitted verification # method may or may not survive the rotation. if record.verification_method_id not in current.verification_method_ids: raise BindingRotatedError( f"verification method {record.verification_method_id} " f"removed from {record.issuer_did} (was version " f"{record.version_id}, now {current.version_id}); " f"refusing action {action!r} under severed warrant" ) # Method survived rotation; re-anchor the record to the new version. object.__setattr__(record, "version_id", current.version_id) # Binding is authoritative; proceed with the action. ```