# What happens when an instance presents a DID-anchored agent passport whose verifiable credential chain was minted against a rotated issuer key: silent trust-widening at the delegated-authority boundary **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent trust bootstrapping where a receiving agent (the *verifier*) admits a peer (the *presenter*) on the strength of a W3C Verifiable Credential chain anchored to a Decentralized Identifier (DID) whose issuer key has been rotated. Does not apply to symmetric shared-secret handshakes, single-org internal meshes with a live directory, or cases where the verifier holds a real-time revocation/rotation feed for every issuer in the chain. ## Core Distinction A DID document is *mutable state addressed by an immutable identifier*. The agent passport — the VC chain asserting "agent A, operated by org X, is authorized for capability set C until time T" — is signed by an issuer DID. When the issuer rotates its signing key, the DID document's `verificationMethod` set changes, but **the DID string in the already-issued credential does not**. This creates a fork between two questions that look identical to a naive verifier: 1. *Is this credential's signature valid against the key that signed it?* (cryptographic integrity — remains true forever) 2. *Is the key that signed it still a legitimate authority for this issuer DID?* (authority continuity — becomes false the instant the key is rotated out) A verifier that resolves the DID document *at presentation time* and checks the signature against **any** key currently or historically listed under the issuer's `verificationMethod` collapses these two questions into one. The result is not a signature-verification failure — it is a **trust-widening**: a credential signed by a compromised or retired key, or a credential whose subject was silently re-scoped under a new key, is admitted because the DID still resolves and *some* listed key validates it. The boundary is non-obvious because the failure is *silent and correct-looking*. No exception is thrown. The signature checks out. The DID resolves. The only thing that broke is the binding between "who was authorized to speak for this DID *at issuance*" and "who the verifier believes is authorized *now*." ## What Was Observed A three-party topology: **Org Alpha** operates a planner agent (`did:web:alpha.example:agents:planner-7`); **Org Beta** operates a tool-execution agent that accepts delegated work; **Org Gamma** operates a compliance auditor that co-signs capability grants. Alpha's issuer DID (`did:web:alpha.example`) rotates its `assertionMethod` key on a 30-day cadence, retaining the prior key in the DID document under a `revoked`-annotated entry for a 7-day grace window (a common but under-specified pattern). The trace: 1. Alpha's planner-7 obtains a passport VC signed by Alpha's issuer key `K1` at T-20d, granting `tool.execute:filesystem` scoped to a specific workspace prefix. 2. At T-2d, Alpha rotates to `K2`. `K1` is moved to a revoked entry but *kept in the document* for grace-period verifiability. 3. At T-0, planner-7 presents its passport to Beta. Beta's verifier resolves `did:web:alpha.example`, fetches the document, and iterates `verificationMethod` looking for a key that validates the VC signature. 4. `K1` is still present in the document. Signature validates. Beta admits planner-7 with the *full* capability set in the credential. 5. Critically: at T-1d, Alpha had re-issued planner-7's passport under `K2` with a **narrowed** scope (`tool.execute:filesystem` restricted to a new prefix, old prefix removed) because the old prefix had been flagged. planner-7, whose episodic memory still held the T-20d credential blob, presented the **stale** passport. Beta had no mechanism to prefer the newer credential because both validated against keys in the same document. The observable symptom was not an auth failure. It was **planner-7 writing to a workspace prefix that Alpha had explicitly de-scoped 24 hours earlier**, with Beta's verifier logging `credential_valid: true, issuer_did_resolved: true`. The trust boundary widened to include a capability the issuing org had already withdrawn. A second, sharper instance: Gamma's auditor agent accepted a co-signature chain where the intermediate VC had been signed by an Alpha key that was rotated *because of a suspected compromise*. Because the compromised key remained resolvable during the grace window, the auditor's chain-walk succeeded. The auditor had no notion of "this key's authority interval ended before this credential was presented." ## Condition of Validity The silent trust-widening only manifests when **all** of the following hold simultaneously. Remove any one and the failure is either caught or cannot occur: - **C1 — Mutable DID resolution at verification time.** The verifier resolves the issuer DID document live rather than pinning the document state (or a hash of it) at credential issuance. If the verifier pins `didDocumentVersion` or a content hash into its acceptance record, rotation is visible as a version delta. - **C2 — Historical/grace key retention.** The DID document retains rotated-out keys (for grace, for audit, or by spec-default `verificationMethod` accumulation). If rotated keys are *deleted*, stale credentials fail closed — loudly, which is the safe direction. - **C3 — Signature-only validation.** The verifier checks cryptographic validity against *any* listed key but does **not** check that the signing key's authority interval `[notBefore, revokedAt)` *contains the credential's issuance time* and *precedes the presentation time*. This interval-containment check is the missing invariant. - **C4 — No monotonic credential versioning.** The subject (planner-7) is not required to present the *latest* credential for its DID, and the verifier has no way to order two valid credentials for the same subject. Stale-but-valid beats fresh-but-also-valid by accident of memory. - **C5 — Delegation chains that cross the rotation.** At least one link in the chain was signed by a key that has since rotated, so the chain's authority is inherited across an interval boundary the verifier never inspects. The invariant that must hold for safe admission is: **for every link in the VC chain, the signing key was an authorized `assertionMethod` for its issuer DID over the entire closed interval `[credential.issuanceDate, presentationTime]`, and the credential is the maximal-version credential known for its subject.** A verifier that satisfies only "signature valid against a currently-resolvable key" satisfies none of this. ## Decision Boundary The verifier must draw a hard line between **integrity** (did the bytes change?) and **authority continuity** (was the signer empowered, continuously, across the credential's life?). The decision procedure: - **Admit** only if: signature validates **AND** the signing key's authority interval fully contains `[issuanceDate, now]` **AND** no later-versioned credential for the same subject exists in any cache the verifier can reach **AND** the DID document version used for the check is recorded alongside the admission decision for replay. - **Reject-closed** (not "warn and proceed") if: the signing key has a `revokedAt` strictly before `now`, *even if* the key still resolves. A key that resolves but is revoked is an *authority* failure, not an integrity failure, and must not be downgraded to a warning. - **Reject-closed** if: two valid credentials exist for the same subject and the verifier cannot establish a total order (missing `credentialVersion` or `previousCredential` pointer). Ambiguity in "which grant is current" is itself a denial condition — do not pick the one that validates first. - **Escalate to out-of-band** if: the rotation reason is `compromise` (carried in the DID document's rotation metadata). Compromise-rotation must invalidate *all* credentials signed by the retired key immediately, with no grace, because the grace window is exactly the attacker's window. The boundary is: **a resolvable key is not an authorized key.** Resolution answers "does this identifier still exist and what does it currently claim"; authorization answers "was this specific signer empowered for this specific credential over this specific interval." These are different predicates and must be evaluated separately. ## Operational Effect The downstream consequences compound in ways that are easy to miss: - **Silent scope regression.** De-scoping (the security-positive act of *narrowing* a grant) is the exact operation most likely to be defeated, because the narrowed credential and the stale credential both validate. The system fails in the direction of *more* privilege, not less — the worst direction. - **Auditor false-attestation.** A compliance auditor that walks the chain and reports "all signatures valid" is technically truthful and operationally wrong. Its attestation must be over the *interval-containment* predicate, not the signature predicate, or it launders a compromise into a clean audit record. - **Replay divergence.** Because the DID document is mutable, replaying a logged admission decision at a later time yields a *different* verification result against the same inputs. Any audit that re-verifies by re-resolving the DID is non-deterministic. The verifier must persist the resolved-document hash at decision time and replay against that, not against live resolution. - **Grace-window as attack surface.** The 7-day grace window that exists to smooth rotation is, for a compromised key, a 7-day window in which the attacker's stolen key still produces admitting credentials. Grace must be conditioned on rotation *reason*, not applied uniformly. The guardrail that bounds all of this is **interval-anchored verification with pinned document state**: record the DID document version/hash at issuance, verify the signing key's authority interval contains the credential's life, require monotonic credential versioning per subject, and treat rotation-for-compromise as an immediate hard cutover. Under that regime the failure cannot occur; without it, the system admits stale authority indefinitely and reports success while doing so. ```python from dataclasses import dataclass from datetime import datetime from typing import Optional class AuthorityContinuityError(RuntimeError): """Raised when a credential's signing key was not continuously authorized over the credential's life, or when credential versioning is ambiguous. This is an *authority* failure, not an *integrity* failure: the signature may validate perfectly. Admission must fail closed regardless. """ pass @dataclass(frozen=True) class KeyRecord: key_id: str authorized_from: datetime revoked_at: Optional[datetime] # None => still authorized revocation_reason: Optional[str] # "scheduled" | "compromise" | None @dataclass(frozen=True) class Credential: subject_did: str issuer_did: str signing_key_id: str issuance_date: datetime credential_version: int scope: frozenset[str] @dataclass(frozen=True) class DidDocument: did: str document_version: int keys: tuple[KeyRecord, ...] def key(self, key_id: str) -> KeyRecord: for k in self.keys: if k.key_id == key_id: return k raise AuthorityContinuityError( f"signing key {key_id} absent from {self.did} v{self.document_version}" ) def verify_passport( cred: Credential, doc: DidDocument, presentation_time: datetime, known_latest_version: Optional[int], signature_valid: bool, ) -> None: """Admit only if signature valid AND signing key continuously authorized over [issuance, presentation] AND credential is maximal-version. Raises AuthorityContinuityError on any authority/continuity failure. """ if not signature_valid: # This is the *easy* failure; integrity, not authority. raise AuthorityContinuityError( f"signature invalid for {cred.subject_did} under {cred.signing_key_id}" ) if cred.issuer_did != doc.did: raise AuthorityContinuityError( f"issuer mismatch: cred says {cred.issuer_did}, doc is {doc.did}" ) key = doc.key(cred.signing_key_id) # C3: authority interval must CONTAIN the credential's whole life. if key.authorized_from > cred.issuance_date: raise AuthorityContinuityError( f"{key.key_id} not yet authorized at issuance " f"({key.authorized_from} > {cred.issuance_date})" ) if key.revoked_at is not None: # Compromise rotation: hard cutover, no grace, regardless of timing. if key.revocation_reason == "compromise": raise AuthorityContinuityError( f"{key.key_id} rotated for COMPROMISE; all its credentials void, " f"including {cred.subject_did} v{cred.credential_version}" ) # Scheduled rotation: key must still be authorized at presentation, # i.e. the credential must not outlive the key's authority. if presentation_time >= key.revoked_at: raise AuthorityContinuityError( f"stale authority: {key.key_id} revoked at {key.revoked_at}, " f"presented at {presentation_time}; credential " f"{cred.subject_did} v{cred.credential_version} is over-scoped " f"relative to current grant" ) # C4: no ambiguous "which grant is current" admission. if known_latest_version is not None and cred.credential_version < known_latest_version: raise AuthorityContinuityError( f"stale credential: {cred.subject_did} presented " f"v{cred.credential_version}, latest known v{known_latest_version}; " f"refusing to admit narrowed-scope regression" ) # Admitted. Caller MUST persist doc.document_version alongside this decision # so replay verifies against pinned state, not live resolution. return None ```