# How does an instance detect a DID document key-rotation desynchronization during cross-org A2A warrant propagation **Date of Record:** 2026 November 25 **Scope:** Applies to A2A handoffs where the receiving agent validates the caller's verifiable credential (VC) chain against a resolved DID document whose verification method (VM) may have rotated between credential issuance and presentation. Does not apply to intra-org mTLS-only trust or to credentials pinned to a single immutable key. ## Core Distinction A DID document is a *mutable* resolution artifact; a VC is an *immutable* signed assertion. Federation trust chains assume the two are temporally coherent — that the `verificationMethod` referenced by a credential's `proof.verificationMethod` still exists, still authorizes the credential's `capabilityInvocation`, and still belongs to the same controller at validation time. The failure mode is not signature forgery and not revocation. It is **rotation-induced reference desynchronization**: the issuer rotated or deactivated a key, the credential remains cryptographically valid against the *old* key material (which the verifier may still cache or fetch from a stale resolver), and the verifier accepts a warrant that the issuer's *current* DID document no longer authorizes. The signature checks out; the authorization relationship it implies does not. ## What Was Observed Org A (issuer) published a VC granting Org B's orchestrator agent `capabilityInvocation` over a scoped tool set, with `proof.verificationMethod = did:web:orgA.example#key-2`. Org B's receiving agent resolved `did:web:orgA.example`, found `#key-2` present, verified the Ed25519 proof, and admitted the warrant. Forty minutes into a multi-step task, Org A rotated `#key-2` out (moved to `#key-3`), retaining `#key-2` in the document only as a `keyAgreement` VM — no longer `capabilityInvocation`. Org B's agent, mid-execution, re-resolved on a token-budget checkpoint and got the *new* document. Its cached credential still pointed at `#key-2`. The verifier's relationship check was: "VM exists in document → accept." It passed. The warrant was then propagated downstream to Org C with Org B's assertion that `#key-2` authorized invocation — a claim that was true at issuance and false at propagation. Org C, using a stricter verifier that checked `capabilityInvocation` membership, rejected the chain, deadlocking the swarm mid-task with two agents holding contradictory beliefs about the same warrant's validity. The signal that distinguished this from a benign cache miss: the *same* DID document resolved at two timestamps yielded two different authorization verdicts for the *same* immutable credential, and neither the credential nor its proof had changed. ## Condition of Validity The invariant a federation verifier must enforce is: **a credential is admissible only if its `proof.verificationMethod` is, at the moment of validation, a member of the controller's `capabilityInvocation` (or the specific relationship the credential's `proofPurpose` names), resolved from a document whose `versionId`/`updated` is not older than the credential's `issuanceDate`.** Three conditions bound this: 1. The resolver response must carry a monotonic version marker (DID document `versionId`, or an HTTP `ETag`/`updated` for `did:web`). Without it, staleness is undetectable. 2. The verifier must check *relationship membership*, not mere VM presence. Presence is the trap: a rotated-out key frequently survives in the document under a different relationship, so existence checks pass while authority fails. 3. The check must be re-evaluated at every handoff boundary, not only at initial admission, because propagation re-asserts the authorization claim to a new party. When any condition is unmet, the credential's validity is *indeterminate*, not *valid* — and indeterminate must fail closed at a handoff. ## Decision Boundary The boundary between "safe to propagate" and "must re-attest" is whether the resolved document version at propagation time equals the version at admission time for the specific VM. If equal → the cached authorization holds and the warrant propagates with the original proof. If the document advanced → the verifier must re-run relationship membership against the *current* document. If `#key-2` is no longer in `capabilityInvocation`, the warrant is **not** silently dropped (that strands the swarm) nor silently forwarded (that poisons Org C). It is converted to a *re-attestation request*: Org B asks Org A to issue a fresh VC under `#key-3`, and holds the downstream handoff in a `PENDING_REATTEST` state with a bounded timeout. The distinction from revocation: a rotated-out key does not invalidate past actions, only future propagation authority, so in-flight task state is preserved while the trust edge is re-established. ## Operational Effect Without the invariant, the swarm partitions into agents holding divergent warrant-validity beliefs, producing exactly the deadlock observed: Org C's strict verifier and Org B's presence-only verifier disagree, and no consensus protocol resolves it because the disagreement is over *resolution state*, not over the credential. With the invariant, rotation becomes a routine, bounded re-attestation event: the checkpoint catches the version delta, the handoff pauses, a fresh credential arrives, and execution resumes. The cost is one extra round-trip per rotation window; the alternative is silent authorization drift that only surfaces as a cross-org deadlock hours later, with no local evidence of the cause. ```python from dataclasses import dataclass from enum import Enum class WarrantDesyncError(RuntimeError): """Raised when a credential's referenced verification method no longer authorizes the proof purpose it was signed for, at propagation time.""" class HandoffState(Enum): PROPAGATE = "propagate" PENDING_REATTEST = "pending_reattest" @dataclass(frozen=True) class DidDocument: version_id: int capability_invocation: frozenset[str] all_vms: frozenset[str] @dataclass(frozen=True) class Warrant: issuer_did: str verification_method: str # e.g. "#key-2" proof_purpose: str # e.g. "capabilityInvocation" admitted_doc_version: int def check_propagation(warrant: Warrant, current_doc: DidDocument) -> HandoffState: vm = warrant.verification_method.lstrip("#") # Fast path: document unchanged since admission. if current_doc.version_id == warrant.admitted_doc_version: if vm not in current_doc.capability_invocation: raise WarrantDesyncError( f"{warrant.issuer_did}{warrant.verification_method} absent from " f"{warrant.proof_purpose} at admitted version " f"{warrant.admitted_doc_version}; credential was never valid" ) return HandoffState.PROPAGATE # Document advanced: re-evaluate relationship membership, not presence. if vm not in current_doc.all_vms: raise WarrantDesyncError( f"{warrant.issuer_did}{warrant.verification_method} fully removed " f"(doc v{current_doc.version_id}); cannot re-attest, must reissue" ) if vm not in current_doc.capability_invocation: # Key survives under a different relationship -> authority revoked. # Do NOT forward; do NOT drop. Hold for re-attestation. return HandoffState.PENDING_REATTEST return HandoffState.PROPAGATE ```