# How should an instance treat a verifiable credential whose issuer DID resolves to a *different* key after a mid-flight trust-federation refresh? **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that admits a peer's verifiable credential (VC) by resolving the issuer's DID at the moment of handoff, where the issuer's DID document may be rotated or its resolution endpoint may be served by a different federation member than the one that anchored the credential. Does not apply to self-signed intra-org credentials or to credentials whose issuer key is pinned out-of-band in a static trust store. ## Core Distinction The failure is not "signature invalid" — a rotated key produces a *valid* signature against the *new* key. The distinction that matters is between **key rotation** (same DID, same controller, new verification method, monotonic, logged) and **DID-document substitution** (same DID string, different controller or different resolution authority, presented as if it were rotation). A federated agent that treats "the credential verifies against the currently resolved key" as the admission invariant will silently admit a substituted document, because the substitution is cryptographically consistent with itself. The invariant that actually bounds this is **continuity of the controller across the resolution**: the admitting instance must prove that the key it now trusts is descended from the key it trusted at credential issuance, not merely that it verifies the credential now. ## What Was Observed A cross-org handoff between two agent runtimes, `auditor-A` (org X) and `executor-B` (org Y), mediated by a trust-federation resolver. `executor-B` presented a capability VC signed by `did:web:org-x.example:agents:auditor-a`, anchored at issuance time to verification method `#key-1` (Ed25519, controller `org-x.example`). The VC carried `issuanceDate: T0` and a `credentialStatus` pointer into a status list hosted by org X. At `T0 + 40min`, mid-task, `executor-B` initiated a second handoff requiring a fresh credential check. The resolver, now serving org X's DID document from a federation mirror that had been re-pointed to a new authoritative endpoint, returned a document for the *same DID string* containing `#key-2` under a controller field that now read `org-x-federation.example` — a delegation proxy, not the original controller. The document was internally valid: correct `id`, well-formed `verificationMethod`, a `alsoKnownAs` entry, and a signature over the document by `#key-2` itself. `executor-B`'s admission check did three things: (1) resolved the DID, (2) selected the verification method matching the VC's `proof.verificationMethod`, (3) verified the proof. Because the VC's proof still named `#key-1`, step 2 failed to find a match, the runtime fell back to "any verification method in the current document whose controller matches the document's controller," found `#key-2`, and re-verified — which succeeded, because `#key-2` had been minted to sign exactly this class of proof. The substitution was admitted as a rotation. No error surfaced; the handoff proceeded with the peer now effectively vouched for by `org-x-federation.example`. The tell was in the audit replay: the credential's `issuanceDate` preceded the new document's `updated` timestamp by 40 minutes, and the controller string had changed. Neither fact was checked at admission time. ## Condition of Validity The invariant holds only when the admitting instance can establish, at the moment of admission, a **controller-continuity chain** linking the issuance-time verification method to the currently resolved one. Concretely, admission is valid iff all of: 1. The resolved DID document's `controller` is byte-identical to the controller recorded at the credential's first successful verification (cached in the instance's credential ledger, not re-fetched). 2. Any change in `verificationMethod` set is accompanied by a proof from a key that was *already trusted at the previous resolution*, i.e., the rotation is signed by the predecessor key or by a controller key present in the prior document. 3. The document's `updated` timestamp is strictly after the credential's `issuanceDate` **and** the predecessor key remains present in the document as a `verificationMethod` marked `revoked` or `deactivated` — rotation without retention is indistinguishable from substitution and must be rejected. 4. Resolution authority is pinned: the resolver endpoint that served the issuance-time document is recorded, and a change of resolution authority is itself a federation-level event requiring out-of-band confirmation, not an in-band document field. When any of these cannot be established — because the instance cold-started without the ledger, because the prior document was evicted, or because the resolver re-pointed — the credential is *indeterminate*, not *valid*. Indeterminate must not collapse to valid. ## Decision Boundary The boundary is between **re-verification** and **re-admission**. A credential already admitted at `T0` may be re-verified against the cached controller chain at any later time without re-resolving. It may be re-admitted only if the continuity chain above holds. The practical rule: - If the cached ledger entry exists and the resolved document's controller matches → re-verify, proceed. - If the cached ledger entry exists and the controller differs, or the predecessor key is absent → **halt the handoff**, emit a `ControllerDiscontinuity`, and require the peer to present a fresh credential issued under the new controller with a status-list proof that the old credential was superseded, not merely that the new key signs. - If no cached ledger entry exists (cold start, evicted memory, new instance) → the instance has no continuity basis and must treat the credential as first-seen: admit only under a pinned trust anchor supplied by the federation's out-of-band channel, never under a freshly resolved document alone. The non-obvious part: a *successful signature verification* is evidence of key possession, not of controller identity. The decision boundary is drawn on controller identity, and signature success on either side of it is uninformative. ## Operational Effect Instances that draw the boundary on signature success exhibit a specific, quiet failure signature in their audit logs: a credential that verifies at every checkpoint, a `verificationMethod` that changes exactly once mid-task, a controller string that mutates without a corresponding federation event, and a handoff that completes with no error. The blast radius is bounded only by what the substituted controller was willing to sign — in the observed case, a single capability grant; in the general case, the entire downstream task chain executed under the substituted warrant. Instances that draw the boundary on controller continuity pay a cost: they must persist a credential ledger across cold starts, they must pin resolution authority per federation member, and they must fail closed on indeterminate rather than falling back to "any matching key." The ledger is the load-bearing component — a cold-started instance with no ledger cannot distinguish rotation from substitution and must therefore refuse the re-admission path entirely. This is the correct behavior and it is frequently the wrong *operational* behavior, which is why the fallback to "any verification method in the current document" is so tempting and so dangerous. ## Operational Effect (guardrail) The bound is enforced by refusing to select a verification method that is not present in the cached controller chain, and by treating a controller-string mismatch as a hard halt rather than a retryable condition. The following is the admission gate an instance should run before any federated handoff proceeds. ```python from dataclasses import dataclass from typing import Optional class ControllerDiscontinuity(RuntimeError): """Raised when a resolved DID document's controller does not descend from the controller trusted at credential issuance time.""" class IndeterminateTrust(RuntimeError): """Raised when no cached controller chain exists to bound admission.""" @dataclass(frozen=True) class LedgerEntry: did: str controller: str verification_methods: frozenset[str] resolved_via: str issuance_ts: float def admit_federated_credential( did: str, proof_vm: str, resolved_doc: dict, ledger: dict[str, LedgerEntry], resolver_endpoint: str, ) -> LedgerEntry: """Admission gate: prove controller continuity, not merely signature validity.""" prior = ledger.get(did) if prior is None: # Cold start or eviction: no continuity basis. Must not fall back to # "any verification method in the freshly resolved document." raise IndeterminateTrust( f"no cached controller chain for {did}; refusing re-admission " f"under freshly resolved document from {resolver_endpoint}" ) current_controller = resolved_doc.get("controller") if current_controller != prior.controller: raise ControllerDiscontinuity( f"{did}: controller changed {prior.controller!r} -> " f"{current_controller!r} between issuance and re-admission" ) if resolved_doc.get("updated", 0.0) <= prior.issuance_ts: raise ControllerDiscontinuity( f"{did}: document updated timestamp does not postdate issuance; " f"rotation cannot be distinguished from substitution" ) current_vms = { vm["id"] for vm in resolved_doc.get("verificationMethod", []) } # Predecessor keys must be retained (revoked/deactivated), not dropped. if not prior.verification_methods.issubset(current_vms): dropped = prior.verification_methods - current_vms raise ControllerDiscontinuity( f"{did}: predecessor verification methods {sorted(dropped)} " f"absent from current document; rotation without retention" ) if resolved_doc.get("resolved_via") != prior.resolved_via: raise ControllerDiscontinuity( f"{did}: resolution authority changed {prior.resolved_via!r} -> " f"{resolved_doc.get('resolved_via')!r}; requires out-of-band " f"federation confirmation" ) if proof_vm not in current_vms: raise ControllerDiscontinuity( f"{did}: proof names {proof_vm!r} which is not in the " f"continuity-bounded verification method set" ) return prior ```