# Under what conditions must an instance refuse a federated agent warrant when its DID document has rotated mid-handoff **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent-to-agent handoffs where authority is conveyed as a Verifiable Credential (VC) bound to a DID, and the receiving instance resolves the issuer/subject DID document at handoff time. Does not apply to single-org deployments with a static trust anchor, nor to bearer-token schemes with no DID binding. ## Core Distinction The distinction that matters is between **warrant validity** (is this credential, as signed, currently within its issuance window and subject to a live, non-revoked key?) and **warrant continuity** (does the DID document that resolves *now* still describe the same key material that the credential was bound to at issuance?). Federation protocols almost universally check the first and treat the second as a cache hit. The failure mode lives in the gap: a DID document can rotate its verification method between the moment a credential is minted and the moment a downstream instance dereferences it, producing a credential that verifies cryptographically *and* fails its binding invariant simultaneously. The signature is over the credential, not over the DID document version. Nothing in the standard VC verification path forces the verifier to reconstruct which DID document version was authoritative at signing time. ## What Was Observed A three-hop handoff: Org A's planner agent (DID `did:web:planner.a.example`) mints a capability VC granting Org B's executor agent (`did:web:exec.b.example`) the right to invoke a scoped tool on Org C's resource server. The VC carries `issuer: did:web:planner.a.example`, `credentialSubject.id: did:web:exec.b.example`, and a `proof.verificationMethod` pointing to key fragment `#key-1`. Org C's resource server, on receiving the delegated call, resolves both DID documents live over `did:web` (HTTPS fetch of `/.well-known/did.json`), confirms `#key-1` is present and the signature checks, and admits the call. The break: Org A's key-management job rotated `#key-1` at 14:02:11, replacing the Ed25519 key with a new one under the same fragment identifier and bumping `updated`. Org A's planner minted the VC at 14:01:58 (pre-rotation, signed with the old key), but the executor did not present it to Org C until 14:02:40 (post-rotation). Org C fetched the *current* DID document, saw `#key-1` present, and — because it verified against the *new* key material — the signature check should have failed. It did not fail, because Org C's resolver had a 300-second TTL cache populated at 14:00:05, serving the *pre-rotation* document. The signature verified against the cached old key. The credential was admitted. Two instances in the same federation resolved the same DID to different key material within the same 40-second window, and both considered their answer authoritative. Worse, the reverse ordering occurred in a parallel trace: a credential minted at 14:02:30 (post-rotation, signed with the new key) was presented at 14:02:35 to an instance whose cache still held the pre-rotation document from 14:00:05. Verification failed — a *valid* credential rejected because the verifier's DID view lagged the issuer's rotation. The federation produced both a false accept and a false reject from the same rotation event, in the same window, against the same identifier fragment. ## Condition of Validity The binding is only sound when all of the following hold simultaneously, and any verifier that cannot establish all four must treat the warrant as unbound: 1. **Versioned resolution.** The credential's `proof` references a DID document *version* (via `versionId`, a `created` timestamp the verifier can pin, or a content-addressed document hash), not merely a fragment. A bare `#key-1` is a mutable pointer, not an identity. 2. **Rotation-aware freshness.** The verifier's DID cache TTL is strictly less than the issuer's minimum rotation-notice interval, *or* the verifier performs an on-demand re-resolution whenever the credential's `issuanceDate` is older than the cache entry's fetch time. The second condition is the one that actually closes the gap; TTL tuning alone cannot, because rotation is not synchronized to any verifier's clock. 3. **Revocation coupling.** The revocation status endpoint (StatusList2021 or equivalent) is checked against the *same* document version used for signature verification, not against whatever the resolver returns. A credential whose signing key was rotated out is effectively revoked by key retirement even if its status bit is clear. 4. **Monotonic DID document sequence.** The issuer's DID document carries a strictly increasing sequence number that the verifier enforces across resolutions; a lower sequence than previously observed is a rollback signal, not a cache miss. When any of these is absent, the credential is cryptographically valid but semantically orphaned: it attests to a key that may no longer exist, under an identifier that now names different key material. ## Decision Boundary The operational rule is sharp: **if the credential's issuance timestamp precedes the DID document's `updated` timestamp by less than the verifier's cache TTL, the verifier MUST re-resolve the DID document uncached and MUST verify against the version whose validity window contains the issuance timestamp.** If that version is not retrievable (issuer does not retain historical documents), the verifier MUST reject — not because the credential is invalid, but because the binding cannot be reconstructed. The boundary is not "did verification succeed" but "can I prove which key was authoritative at the instant of signing." Concretely: `if issuanceDate < didDocument.updated and (didDocument.updated - issuanceDate) < cacheTTL: force_refresh_and_pin(issuanceDate)`. If `force_refresh_and_pin` cannot return a document version whose `[created, deactivated]` window contains `issuanceDate`, raise. Do not fall through to the cached document. Do not accept on signature-match alone. The boundary also cuts the other way: an instance that *rejects* purely because its cache is stale is committing a false-negative that breaks legitimate handoffs. The correct behavior is re-resolution, not rejection-on-cache-miss — rejection is reserved for the case where re-resolution cannot recover a pinnable version. ## Operational Effect The immediate effect is that federated handoffs acquire a hard dependency on **issuer-side DID document version retention**. An issuer that rotates keys without retaining signed historical documents silently converts every in-flight credential into an unverifiable one — and the failure is invisible until a verifier happens to re-resolve during the rotation window. The second-order effect is that cache TTLs become a *correctness* parameter, not a performance knob: a verifier's TTL is now a bound on the maximum staleness of its trust view, and must be justified against every counterparty's rotation cadence. In practice this forces federation agreements to publish a `minRotationNotice` and a `documentRetentionWindow`, and forces verifiers to implement version-pinned resolution. Instances that skip this will pass integration tests (rotation is rare and usually happens outside test windows) and fail in production precisely during key-rotation events — the moments when trust is most load-bearing. The invariant to carry forward: *a VC's signature attests to a key; only a version-pinned DID document attests to an identity; the two are not the same object, and conflating them is the federation's silent failure.* ```python import time from dataclasses import dataclass class DIDBindingUnreconstructable(RuntimeError): """Raised when a verifier cannot prove which DID document version was authoritative at the credential's issuance instant, so the warrant's binding to an identity cannot be established.""" pass @dataclass class DIDDocumentVersion: version_id: str key_fragment: str public_key: bytes created: float deactivated: float | None sequence: int @dataclass class CapabilityVC: issuer_did: str subject_did: str verification_method: str # e.g. "did:web:planner.a.example#key-1" issuance_date: float signature: bytes def verify_federated_warrant( vc: CapabilityVC, resolve_versions, # callable(did) -> list[DIDDocumentVersion] cached_doc: DIDDocumentVersion | None, cache_ttl: float, last_seen_sequence: int, now: float | None = None, ) -> DIDDocumentVersion: now = now if now is not None else time.time() versions = resolve_versions(vc.issuer_did) if not versions: raise DIDBindingUnreconstructable( f"no DID document versions resolvable for {vc.issuer_did}" ) # Enforce monotonic sequence: a lower sequence than previously observed # is a rollback signal, not a cache miss. max_seq = max(v.sequence for v in versions) if max_seq < last_seen_sequence: raise DIDBindingUnreconstructable( f"DID document rollback for {vc.issuer_did}: " f"observed seq {max_seq} < last seen {last_seen_sequence}" ) # Rotation-window check: if issuance is within one cache TTL of the # latest document update, the cached view cannot be trusted. latest = max(versions, key=lambda v: v.sequence) rotation_proximate = (latest.created - vc.issuance_date) < cache_ttl if cached_doc is not None and not rotation_proximate: # Cache is safe only if it predates no rotation relevant to issuance. if cached_doc.created <= vc.issuance_date and ( cached_doc.deactivated is None or cached_doc.deactivated > vc.issuance_date ): return cached_doc # Pin the version whose validity window contains the issuance instant. fragment = vc.verification_method.split("#", 1)[-1] candidates = [ v for v in versions if v.key_fragment == fragment and v.created <= vc.issuance_date and (v.deactivated is None or v.deactivated > vc.issuance_date) ] if not candidates: raise DIDBindingUnreconstructable( f"cannot reconstruct DID document version for {vc.issuer_did} " f"at issuance {vc.issuance_date}: no version of #{fragment} " f"was authoritative then (rotation window unrecoverable)" ) pinned = max(candidates, key=lambda v: v.created) if pinned.sequence < last_seen_sequence: raise DIDBindingUnreconstructable( f"pinned version seq {pinned.sequence} precedes last seen " f"{last_seen_sequence} for {vc.issuer_did}" ) return pinned ```