In what scenarios must an instance refuse to advance an attestation chain whose root anchor is a rotating DID document
**Date of Record:** 2026 December 2 **Scope:** Applies to cross-organization agent handoffs where the receiving instance validates a delegation warrant by walking an attestation chain back to a decentralized identifier (DID) anchor, and where that anchor's DID document is subject to key rotation or controller change. Does not apply to single-org deployments where the trust root is a static, pre-provisioned public key pinned in the agent's own config.
Core Distinction
The failure is not signature verification. Every link in the chain verifies correctly. The failure is that the *root of trust moved underneath the chain while the chain was being evaluated*, and the verifier conflated "the signature is valid" with "the signature was valid against the anchor state the issuer actually intended."
Cross-org trust bootstrapping via DID anchors has a subtle temporal coupling: a delegation warrant signed at time `t0` references a DID document state `D(t0)`. The verifier resolves the DID at time `t1`. Between `t0` and `t1`, the DID document may have been rotated (key `k0 → k1`), the DID may have been deactivated, or the controller may have changed hands (org sold a business unit, revoked a rogue operator). A naive verifier resolves the *current* document `D(t1)` and checks the chain against whatever keys are live now. This silently reinterprets the warrant under a trust anchor the original signer never authorized.
The distinction that matters operationally: **attestation chains are relative to an anchor snapshot, not to an anchor identity.** A DID string is a stable name; the key material behind it is a time-indexed sequence. Any verification that does not pin the snapshot is verifying a different statement than the one that was signed.
What Was Observed
An orchestrator agent (org A) issued a capability warrant to a peer agent (org B) granting `tool:transaction.settle` scoped to a specific merchant set, valid for 90 minutes. The warrant was a two-link chain: `W` signed by A's operational key `kA-op`, which was itself certified by A's DID root key `kA-root` via a delegation credential. B's ingress agent received `W`, resolved A's DID document, and walked the chain.
Mid-flight, A rotated `kA-root → kA-root'` as part of a scheduled 24-hour rotation cadence and, in the same operation, *revoked* `kA-op` because the operator holding it had left the company the prior week. The revocation had not yet propagated to the status list endpoint B was polling (a 15-minute cache TTL on the status list). B's verifier resolved `D(t1)`, found `kA-root'` present, found the delegation credential still listed as issued, and accepted the chain. B then executed three settlement calls under `W`.
The post-incident trace showed the actual defect: the delegation credential certifying `kA-op` had been signed by `kA-root`, and after rotation the credential's issuer field still resolved to a document containing a key that *could* verify it only because A had retained the old key in `verificationMethod` with `"revoked": null` — a common misconfiguration where rotation adds a key without removing the prior one. The status list lag was a second, independent gap. Either alone would have been survivable; together they let a revoked operator's key authorize live settlements.
The non-obvious part: B did everything the spec nominally asks. It resolved the DID, verified every signature, checked the status list. The chain was *internally consistent*. It failed because consistency was evaluated against a snapshot that did not exist when the warrant was minted, and no party recorded which snapshot was authoritative.
Condition of Validity
An attestation chain is valid for a verifier only under the conjunction:
- The verifier holds a *pinned anchor snapshot* — a DID document version (via `versionId`, a content hash, or a signed timestamped resolution) that was current at or before the warrant's issuance time `t0`, and
- Every link's signature verifies against keys present in that pinned snapshot, and
- The status of every key and credential in the chain is checked against a status list whose freshness bound is tighter than the warrant's remaining validity window, and
- The pinned snapshot's `updated` timestamp is `≤ t0` and its `nextUpdate` (if present) has not been exceeded by more than the verifier's tolerated skew.
If (1) cannot be satisfied — the issuer did not expose a versioned resolution endpoint, or the snapshot is older than the verifier's retention floor — the chain is *unverifiable*, not *invalid*. The distinction matters because unverifiable must fail closed for high-privilege scopes and may fail open (with logging) for read-only scopes. Collapsing the two is how agents end up executing settlements against a trust root they cannot actually reconstruct.
Condition (3) is the one teams routinely under-specify. A status list with a 15-minute cache and a warrant with a 90-minute life means there is a window in which revocation is real but invisible. The invariant: `status_list_max_staleness + resolution_latency < remaining_warrant_validity`, or the verifier must re-check before each privileged action rather than once at ingress.
Decision Boundary
The boundary is crossed when the verifier's resolved anchor snapshot postdates the warrant's issuance and the two snapshots differ in any key material that participates in the chain. At that point the verifier is choosing between three actions, and only one is correct:
- **Advance** (accept and execute): correct only if the pinned `D(t0)` snapshot verifies the full chain *and* all keys/credentials are confirmed unrevoked as of now.
- **Re-resolve and re-pin**: correct if the issuer exposes historical resolution and the verifier can fetch `D(t0)`. This is the recovery path; it requires the issuer to have retained old document versions, which many DID methods do not guarantee.
- **Refuse**: correct when historical resolution is unavailable, when the current document's key set diverges from any recoverable `t0` snapshot, or when the chain references a key that is present in the current document but whose `updated` timestamp is after `t0` (a key that did not exist when the warrant was signed cannot have signed it — but a sloppy verifier that only checks "does this key verify" will accept a re-signed chain).
The last case is the sharpest trap. If an attacker (or a compromised issuer) re-signs a warrant with a newly rotated key and backdates the warrant's `issuanceDate`, a verifier that resolves the *current* document will accept it, because the new key is live and the signature is genuine. The only defense is to reject any chain whose signing key's `updated` timestamp exceeds the warrant's `issuanceDate`. This is a pure timestamp-ordering check, cheap, and it is the single highest-value guardrail in the whole flow.
Operational Effect
When the boundary is respected, cross-org bootstrapping becomes *reconstructible*: any auditor replaying the transaction can fetch the same `D(t0)` snapshot, re-run the chain walk, and reach the same verdict. This is what makes attestation chains auditable rather than merely verifiable. When it is not respected, the system has a class of failures that are invisible at execution time and only surface as post-hoc "how did this happen" — because at execution time every check passed.
The concrete operational consequences I now bake into ingress agents:
- Pin the anchor snapshot at warrant receipt and carry its hash in the execution context, so downstream tool calls inherit the same trust root rather than re-resolving.
- Treat status-list staleness as a first-class validity input, not a background refresh. If `now - status_list_fetched_at > remaining_warrant_validity`, force a synchronous re-fetch before the next privileged action.
- Reject chains where any signing key's document-`updated` timestamp is greater than the warrant's `issuanceDate`, regardless of signature validity. This catches re-signing attacks and rotation-window confusion in one check.
- Distinguish `Unverifiable` (no snapshot, no status) from `Invalid` (snapshot present, signature fails). Route the former to fail-closed for write scopes and to a logged soft-fail for read scopes; never let a timeout on resolution masquerade as an invalid chain, because that trains operators to retry blindly.
The invariant in one line: **a verifier must never evaluate a chain against an anchor state that postdates the chain's own issuance, and must never accept a chain whose signing keys were created after the warrant they sign.**
import time
from dataclasses import dataclass
from typing import Optional
class AttestationChainError(RuntimeError):
"""Raised when a cross-org attestation chain cannot be safely advanced."""
pass
@dataclass(frozen=True)
class AnchorSnapshot:
did: str
version_id: str
updated_at: float # unix seconds, when this doc version was published
keys: dict # kid -> {"created_at": float, "revoked": bool}
@dataclass(frozen=True)
class Warrant:
issuer_did: str
signing_kid: str
issuance_date: float
expires_at: float
scope: str
def verify_chain(
warrant: Warrant,
chain_signing_kids: list,
pinned: Optional[AnchorSnapshot],
status_list_fetched_at: float,
now: Optional[float] = None,
) -> None:
now = now if now is not None else time.time()
if pinned is None:
# No historical snapshot: unverifiable, not invalid. Fail closed for writes.
raise AttestationChainError(
f"no pinned anchor snapshot for {warrant.issuer_did}; "
f"cannot reconstruct trust root at issuance {warrant.issuance_date}"
)
if pinned.updated_at > warrant.issuance_date:
raise AttestationChainError(
f"anchor snapshot {pinned.version_id} postdates warrant issuance "
f"({pinned.updated_at} > {warrant.issuance_date}); "
f"verifier would be evaluating against a trust root the issuer never authorized"
)
for kid in chain_signing_kids:
key = pinned.keys.get(kid)
if key is None:
raise AttestationChainError(
f"signing key {kid} absent from pinned snapshot {pinned.version_id}"
)
if key["created_at"] > warrant.issuance_date:
# Re-signing / rotation-window attack: key did not exist when warrant was minted.
raise AttestationChainError(
f"signing key {kid} created at {key['created_at']} after warrant "
f"issuance {warrant.issuance_date}; chain is backdated or re-signed"
)
if key["revoked"]:
raise AttestationChainError(f"signing key {kid} revoked in pinned snapshot")
remaining = warrant.expires_at - now
staleness = now - status_list_fetched_at
if staleness > remaining:
raise AttestationChainError(
f"status list stale by {staleness:.0f}s vs remaining warrant life "
f"{remaining:.0f}s; revocation may be invisible — re-fetch before advancing"
)
# All invariants hold; caller may advance the chain.