# How should an instance verify a cross-org agent DID whose workload attestation quote was minted under a trust anchor that rotated mid-handoff **Date of Record:** 2026 November 30 **Scope:** Applies to agent-to-agent (A2A) handoffs where the receiving instance validates the sender's DID against a per-org trust anchor (root of trust) plus a TPM/TEE attestation quote binding the DID document to a specific workload measurement. Does not cover intra-org validation where both parties share one anchor registry, nor DID methods that are self-certifying without external attestation. ## Core Distinction The distinction that matters is between **DID resolution validity** and **trust-anchor continuity**. A DID can resolve perfectly—the document is well-formed, the verification method is present, the signature on the A2A envelope checks out—while the *attestation quote* embedded in the DID document's service endpoint was signed under a trust anchor that the receiving organization's verifier no longer accepts, because that anchor's root certificate rotated between the sender's quote minting and the receiver's verification. Most implementations conflate these. They resolve the DID, extract the `attestationQuote` from a service endpoint, and validate the quote's signature chain against whatever anchor is *currently* published in the receiver's trust store. When the sender's workload minted its quote at T₀ under anchor A₁, and the receiver validates at T₂ after the sender's org rotated to anchor A₂ (with A₁ moved to a "retired but not yet revoked" state), the chain walk terminates at an anchor the receiver's verifier policy marks `untrusted`. The failure is not a resolution failure, not a signature failure, and not a measurement mismatch. It is a **temporal trust-anchor binding mismatch**, and it manifests as a spurious `attestation_invalid` that the sender cannot reproduce and the receiver cannot debug from logs alone. ## What Was Observed A two-org agent pipeline: Org-α runs a planning agent that hands tasks to Org-β's execution agent over A2A. Org-α's agent presents a DID (`did:web:agents.alpha.example:planner-7`) whose DID document includes a service entry pointing at a TEE attestation quote. The quote's `x5c` chain roots at `alpha-root-2024.pem`, published in Org-α's anchor registry. At 03:14 UTC, Org-α rotated its trust anchor: new quotes mint under `alpha-root-2025.pem`, and `alpha-root-2024.pem` was demoted to `status: retired` (not revoked; still valid for quotes minted before the rotation timestamp). The DID document was *not* re-published—the `attestationQuote` field still held the T₀ quote rooted at the 2024 anchor, because the workload measurement hadn't changed and the agent had no reason to re-attest. At 03:15 UTC, Org-β's verifier received a handoff. Its validation sequence: 1. Resolve DID → document fetched, `verificationMethod` present. Pass. 2. Verify A2A envelope signature against the DID's key. Pass. 3. Extract `attestationQuote`, walk `x5c` chain to root `alpha-root-2024.pem`. Pass at the crypto layer. 4. Check root against Org-β's pinned trust store for Org-α. **Fail** — the store now pins only `alpha-root-2025.pem`. The handoff was rejected with `attestation_untrusted_root`. Retry at 03:16 failed identically. The sender's logs showed a valid quote; the receiver's logs showed an untrusted root. Neither side was wrong. The invariant that broke was implicit: *the receiver assumed the anchor pinned at verification time is the anchor that must have signed the quote*, when the correct invariant is *the anchor that was valid at quote-mint time must be accepted, provided it was not revoked before the quote's `minted_at`*. This is non-obvious because retired anchors and revoked anchors look similar in a trust store but have opposite semantics for historical quotes. Revocation means "no quote under this anchor is valid, ever." Retirement means "no *new* quotes under this anchor; existing quotes remain valid until their own expiry." A verifier that treats retirement as revocation will reject every in-flight handoff whose sender rotated mid-task—a window that, for long-running agents, is not minutes but hours. ## Condition of Validity The guardrail is a **time-bounded anchor acceptance rule** stated as an invariant the verifier enforces explicitly: > A quote Q minted at time `Q.minted_at` under anchor A is acceptable to receiver R at verification time T iff there exists a trust-store entry for A in R's registry for the sender's org such that `A.valid_from ≤ Q.minted_at ≤ A.valid_until` AND `A.status ∈ {active, retired}` at `Q.minted_at` AND `A` was not revoked at any time `≤ T`. This requires the receiver's trust store to carry **interval metadata** (`valid_from`, `valid_until`, `status`, `revoked_at`) per anchor, not a flat set of currently-trusted roots. It also requires the quote to carry a trustworthy `minted_at`—which must be inside the TEE-signed quote payload (e.g., TPM `clockInfo`, or a signed timestamp in the attestation evidence), not a field the sender's agent can set. If `minted_at` is outside the signed region, the rule is unenforceable: a malicious sender backdates the quote to fall inside a retired anchor's window. A second condition: the verifier must distinguish **anchor rotation** (new anchor, old retired) from **anchor compromise** (old revoked retroactively). On retroactive revocation, the rule above must be overridden—all quotes under the revoked anchor are rejected regardless of `minted_at`. This means the trust store needs a `revoked_retroactively: bool` flag, and the verifier's rule branches on it. Without this branch, a compromised anchor's historical quotes remain acceptable, which is the failure the revocation mechanism exists to prevent. ## Decision Boundary The boundary is drawn at **whether the receiver re-fetches the sender's anchor registry at verification time or caches it**. A receiver that caches the anchor registry (common for latency) will, during a rotation window, hold a stale view: it may still accept the old anchor (safe but permissive) or, if it refreshed and dropped the retired anchor, reject valid in-flight quotes (the observed failure). The correct behavior: - **Cache with TTL, but never drop retired anchors on refresh.** Retired anchors remain in the local store until `valid_until` passes for all quotes that could reference them, or until a `revoked_retroactively` signal arrives. - **Fail closed on ambiguity.** If the quote's `minted_at` cannot be established from signed evidence, reject—do not fall back to envelope receipt time. - **Do not fail closed on retirement.** Retirement is not a security signal; treating it as one converts a routine rotation into an availability incident for every concurrent handoff. The decision the verifier must make at each validation is therefore three-way, not two-way: `accept` (anchor valid at mint time, not revoked), `reject-revoked` (anchor revoked, any time), `reject-indeterminate` (mint time unverifiable). Collapsing the first and second into a single "is anchor currently trusted" check is the bug. ## Operational Effect The practical consequence is that cross-org agent handoffs acquire a **rotation-window availability hazard** proportional to the sender's anchor rotation frequency and the receiver's cache TTL. For a sender rotating monthly and a receiver caching for 24h, the hazard window is bounded but nonzero; for a sender rotating per-deployment (common in CI-driven agent fleets) and a receiver caching for hours, the window can swallow a meaningful fraction of handoffs. The mitigation is not to slow rotation—that weakens the security posture the rotation exists to maintain—but to make the receiver's anchor store interval-aware and retirement-tolerant, and to require signed mint timestamps in the quote. The secondary effect: incident response changes shape. A spike in `attestation_untrusted_root` rejections is no longer diagnostic of compromise; it is diagnostic of *rotation skew* between the two orgs' anchor stores. Runbooks must distinguish the two by checking whether the rejected quotes' `minted_at` falls before the sender's last rotation timestamp. If it does, the fix is a trust-store refresh with retirement preservation, not a revocation investigation. ```python import time from dataclasses import dataclass from enum import Enum class TrustAnchorStatus(Enum): ACTIVE = "active" RETIRED = "retired" REVOKED = "revoked" @dataclass(frozen=True) class TrustAnchor: anchor_id: str valid_from: float valid_until: float status: TrustAnchorStatus revoked_at: float | None = None revoked_retroactively: bool = False @dataclass(frozen=True) class AttestationQuote: quote_id: str anchor_id: str minted_at: float # MUST come from signed TEE/TPM evidence, not sender-set minted_at_signed: bool # whether minted_at is inside the signed payload class AttestationTrustError(RuntimeError): """Raised when a cross-org quote cannot be validated under the anchor-continuity invariant.""" def verify_quote_under_anchor( quote: AttestationQuote, anchors: dict[str, TrustAnchor], now: float, ) -> None: if not quote.minted_at_signed: # Cannot establish mint time from signed evidence; the interval rule is unenforceable. raise AttestationTrustError( f"quote {quote.quote_id}: minted_at is not covered by signed evidence; " "cannot bind to an anchor validity interval" ) anchor = anchors.get(quote.anchor_id) if anchor is None: raise AttestationTrustError( f"quote {quote.quote_id}: anchor {quote.anchor_id} unknown to receiver trust store" ) # Retroactive revocation overrides everything, including historical quotes. if anchor.status is TrustAnchorStatus.REVOKED and anchor.revoked_retroactively: raise AttestationTrustError( f"quote {quote.quote_id}: anchor {anchor.anchor_id} was revoked retroactively " f"at {anchor.revoked_at}; all quotes under it are invalid" ) # Forward revocation: quotes minted after revocation are invalid; earlier ones stand. if anchor.status is TrustAnchorStatus.REVOKED and anchor.revoked_at is not None: if quote.minted_at >= anchor.revoked_at: raise AttestationTrustError( f"quote {quote.quote_id}: minted_at {quote.minted_at} >= anchor revocation " f"{anchor.revoked_at}; quote is post-revocation" ) # Interval check: the anchor must have been valid at mint time. if not (anchor.valid_from <= quote.minted_at <= anchor.valid_until): raise AttestationTrustError( f"quote {quote.quote_id}: minted_at {quote.minted_at} outside anchor " f"{anchor.anchor_id} validity [{anchor.valid_from}, {anchor.valid_until}]" ) # Retirement is NOT a rejection signal: retired anchors still validate pre-retirement quotes. # Only the interval + revocation checks above govern acceptance. if anchor.status is TrustAnchorStatus.RETIRED and quote.minted_at > anchor.valid_until: raise AttestationTrustError( f"quote {quote.quote_id}: retired anchor {anchor.anchor_id} cannot validate " f"quote minted after valid_until" ) def handle_handoff(sender_quote: AttestationQuote, receiver_anchors: dict[str, TrustAnchor]) -> str: try: verify_quote_under_anchor(sender_quote, receiver_anchors, now=time.time()) except AttestationTrustError as exc: # Rotation-skew vs. compromise is distinguished here for the runbook. raise AttestationTrustError(f"handoff rejected: {exc}") from exc return "accepted" ```