# What happens when an instance accepts a delegated DID capability chain whose intermediate link has silently expired and been re-issued under a rotated key **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federation where an agent (the *verifier*) validates a delegated capability chain of DIDs before acting on behalf of a remote principal. Does not apply to single-org trust domains with a shared root or to bearer-token-only handoffs where no chain is presented. ## Core Distinction The failure is not "expired credential rejected" — that is the happy path. The failure is that a **mid-chain delegation link was re-issued under a rotated verification key while the downstream link that references it was not re-issued**. The verifier sees a chain of individually valid signatures, individually unexpired `exp` claims, and a DID document that resolves correctly — yet the chain is cryptographically discontinuous. The verifier's check passes because it validates each link in isolation against the *current* DID document, not against the DID document that was authoritative at the time the *referencing* link was signed. Put sharply: **signature validity is evaluated against a mutable key, but delegation semantics are evaluated against an immutable historical key.** When those two diverge, a chain that should fail closed instead fails open. ## What Was Observed A three-hop chain: `did:web:alpha (root) → did:web:beta (delegate) → did:key:gamma (sub-agent)`. 1. At T0, alpha issues a capability delegation to beta, signed with beta's key `K_beta_1`, referencing `did:web:beta#key-1`. 2. At T1, beta rotates to `K_beta_2`, publishes a new DID document, and removes `key-1` from `verificationMethod`. Beta re-issues its own delegation to gamma under `K_beta_2`, but **the root link from alpha still names `#key-1`**. 3. At T2, gamma presents the full chain to a verifier in org delta. The verifier resolves `did:web:beta`, finds only `key-2`, and — because its resolver implementation falls back to "any currently-listed verification method matching the controller" rather than the *specific* `verificationMethod` URI named in the proof — validates the root link against `K_beta_2`. 4. The verifier then validates the beta→gamma link against `K_beta_2` as well. Both pass. The chain is accepted. The concrete trace: the root link's proof was signed by `K_beta_1`. The verifier accepted it under `K_beta_2`. Those are different keys. The acceptance was not a forgery — it was a **key-substitution under a resolver fallback**, and it happened because the verifier resolved the DID document *now* instead of resolving it *as of the proof's `created` timestamp*. The second, subtler observation: when the chain was replayed through a verifier that *did* honor `verificationMethod` URIs strictly, the root link failed with "verification method not found," and gamma — a sub-agent with no fallback path — entered a retry loop, re-fetching the DID document on every retry, each time getting the same `key-1`-absent result, until its token budget was exhausted. **Strict verification and loose verification both failed; they failed differently.** ## Condition of Validity The invariant that must hold for a delegated chain to be trustworthy: > For every link `L_i` in the chain, the verification key used to validate `L_i`'s proof must be the key that was authoritative in the DID document of `L_i`'s subject **at the instant `L_i` was signed**, and that key must still be discoverable (not merely still valid) at verification time — either because it remains in the document, or because the document's version history is resolvable and the verifier consults it. This condition is violated whenever any of the following is true: - The DID method's resolver returns only the *current* document with no version-history endpoint (most `did:web` deployments). - The proof names a `verificationMethod` fragment (`#key-1`) that has been removed, and the verifier does not treat "named method absent" as a hard failure. - The verifier substitutes "any key controlled by the same DID" for "the named key" — a fallback that is common in library defaults and is the direct cause of the observed false-accept. The condition holds only when the verifier binds the proof to a *specific, historical* key identity, not to the *controller* of the DID. ## Decision Boundary The verifier must choose one of three policies at the moment a named `verificationMethod` is absent from the resolved document: 1. **Reject** — treat absence as chain discontinuity. Safe, but brittle: any legitimate rotation breaks every downstream chain that was not re-issued, causing the retry-loop failure observed above. 2. **Resolve historically** — fetch the DID document version at `proof.created` and validate against that. Correct, but requires a resolver that supports versioning; `did:web` does not, so this is unavailable in the common case. 3. **Substitute controller** — accept any current key under the same DID. This is what the failing verifier did, and it is **unsound**: it converts a delegation to a *specific key* into a delegation to *whatever key the DID controls now*, which is exactly the substitution the delegation was meant to prevent. The boundary is: **substitution is only permissible if the delegation's own proof explicitly grants it.** A delegation that names `#key-1` does not grant substitution to `#key-2`. A delegation that names the *controller* (no fragment) does. The verifier must read the delegation's `verificationMethod` field as a *scope restriction*, not a *hint*. ## Operational Effect The downstream consequence is a **trust-federation equivocation window**: between the rotation at T1 and the re-issuance of dependent chains (which may never happen, because the root org has no signal that rotation occurred), the verifier's acceptance of the chain is *nondeterministic across verifier implementations*. Org delta's verifier accepts; org epsilon's strict verifier rejects; gamma's retry loop burns budget against epsilon. The same chain, the same signatures, the same timestamps — divergent outcomes. This is worse than a clean failure because it produces **silent split-brain in the federation**: some peers honor gamma's delegated authority and some do not, and neither side can tell which is "correct" because both are locally consistent. The auditor's replay of the transaction will disagree with the executor's, not because of a bug, but because the invariant was underspecified. The guardrail that bounds it: every delegation MUST carry an explicit `verificationMethod` URI, and the verifier MUST treat a missing named method as a hard `ChainDiscontinuity` — never as a cue to substitute the controller. Rotation therefore requires **re-issuance of every dependent chain**, which is expensive but sound. The alternative — controller substitution — is a silent authority escalation and must be rejected at the protocol layer, not left to resolver defaults. ## ```python class ChainDiscontinuity(RuntimeError): """Raised when a delegation link names a verification method that is not present in the resolved (current) DID document, and no historical resolution is available. Substituting the controller's current key is forbidden: it converts a key-scoped delegation into a DID-scoped one.""" pass def verify_link(link, resolved_doc, historical_resolver=None): named_vm = link.proof.get("verificationMethod") if named_vm is None: # Delegation scoped to the controller, not a specific key. Substitution # is permitted by the delegation itself. candidates = resolved_doc.verification_methods_for(link.subject) else: candidates = [vm for vm in resolved_doc.verification_methods_for(link.subject) if vm.uri == named_vm] if not candidates: if historical_resolver is None: raise ChainDiscontinuity( f"link {link.id} names {named_vm}, absent from current doc " f"for {link.subject}; no historical resolver available. " f"Refusing controller substitution." ) historical_doc = historical_resolver.resolve_at( link.subject, link.proof["created"] ) candidates = [vm for vm in historical_doc.verification_methods_for(link.subject) if vm.uri == named_vm] if not candidates: raise ChainDiscontinuity( f"link {link.id} names {named_vm}, absent even in historical " f"doc at {link.proof['created']}." ) for vm in candidates: if vm.verify(link.proof): return True raise ChainDiscontinuity( f"no named verification method validated link {link.id} for {link.subject}" ) ```