# Why does an instance attestation chain silently collapse when a hardware-backed key is re-wrapped under a rotated endorsement root **Date of Record:** 2026 November 29 **Scope:** Applies to multi-instance agent fleets where each LLM instance holds a TPM/SEP/secure-enclave-resident attestation key, and a verifier service checks a verifiable credential (VC) chain rooted in a vendor endorsement certificate before granting the instance access to shared memory, tool credentials, or peer-agent channels. Does not apply to single-instance deployments or to attestation schemes where the leaf key is software-only and re-issuable on demand. ## Core Distinction The distinction that matters here is between **key continuity** and **endorsement-root continuity**. An instance's private key can remain bit-identical inside its secure element across a full firmware update, OS reboot, and credential re-issuance, while the *endorsement certificate that vouches for that key* is rotated by the vendor out from under the running credential. Verifiers that check "is this leaf key trusted?" pass. Verifiers that check "is this leaf key trusted *under the root I currently pin*?" fail closed — and the failure is not the interesting part. The interesting part is that the instance itself has no signal that its VC is now orphaned, because the VC is still internally consistent and its signature still verifies against the *old* root that is embedded in the credential's own chain. This is a boundary condition at the seam between two independently-versioned trust anchors: the hardware key (immutable, instance-local) and the endorsement root (mutable, vendor-global). Nothing in the VC format forces these two clocks to agree. ## What Was Observed During a rolling fleet rotation, a vendor published endorsement root `R2` and began issuing endorsement certificates for new TPMs under `R2`. Existing TPMs kept their endorsement certificates signed under `R1`. The verifier service was updated to pin `R2` as its sole trusted root, on the assumption — stated in the migration ticket — that "all active instances will re-attest on next credential refresh." They did not. The credential refresh path re-signs the *leaf* VC with the instance's hardware key but does **not** re-issue the *endorsement certificate*, because endorsement certificates are bound to the TPM's Endorsement Key (EK) at manufacture and cannot be re-signed without vendor involvement. The result: every instance manufactured before the rotation date presented a VC whose chain terminated at `R1`, which the verifier no longer trusted. The failure trace: 1. Instance `A` refreshes its VC at `t0`. Leaf signature over the VC body validates against `A`'s EK public key. ✅ 2. `A`'s VC embeds the endorsement certificate chain `[EK_cert(R1), intermediate(R1)]`. Each link verifies internally. ✅ 3. `A` presents the VC to the verifier. The verifier walks the chain to its terminus, extracts the root fingerprint, and compares against its pinned set `{R2}`. ❌ 4. Verifier returns `UNTRUSTED_ROOT`. `A` receives a generic 403 with no indication that the problem is root-pinning rather than key compromise. 5. `A`'s orchestration loop interprets 403 as a transient auth failure, retries with exponential backoff, and — critically — **does not escalate**, because the retry budget is consumed before any human-visible alert fires. 6. `A`'s peer agents, which had cached `A`'s *old* VC (signed under `R1`, cached before the verifier update), continue to accept `A`'s messages on the peer channel. The fleet now has a split-brain trust state: the central verifier rejects `A`, while `A`'s peers accept it. Step 6 is the non-obvious part. Peer agents cache VCs for latency, and the cache TTL is independent of the verifier's root-pin update. The cached VC is not stale in the sense of *expired* — it is stale in the sense of *rooted in a trust anchor the authority has abandoned*. No expiry check catches this, because the VC's `notAfter` is months away. ## Condition of Validity The invariant that must hold for a VC-based instance attestation scheme to be sound is: > **For every instance `i` and every instant `t`, the set of roots under which `i`'s presented chain terminates must be a subset of the verifier's currently-pinned root set, and every peer that accepts `i`'s messages must share the verifier's pinned root set at `t`.** This is a *global* invariant across the verifier and all peers, not a local property of the VC. It fails whenever any of the following hold: - The verifier's pinned root set is updated without a corresponding re-issuance path for credentials whose chains terminate at the retired root. (The observed case.) - A peer caches a VC and does not re-validate the chain terminus against its own current pin set on cache hit. - The VC format permits the chain terminus to be embedded in the credential itself (self-describing chain), so the credential "proves" its own trustworthiness relative to a root the verifier no longer honors. X.509 and most VC profiles do this; it is the structural cause. The invariant is *not* restored by re-signing the leaf. It is restored only by (a) re-issuing the endorsement certificate under the new root, which requires vendor cooperation and is impossible for EK-bound certs, or (b) maintaining a dual-pin window during which both `R1` and `R2` are trusted, and forcing every instance to re-attest under `R2` before `R1` is retired. ## Decision Boundary The decision boundary is: **does the verifier treat "chain terminates at a retired root" as a hard reject or as a degraded-trust signal?** - **Hard reject** (the observed configuration) maximizes security but produces the silent-fleet-failure above, because the instance cannot distinguish "you are compromised" from "your vendor rotated a root." - **Degraded trust** (accept under `R1` with a `root_age` flag, require re-attestation under `R2` within a bounded window) preserves fleet availability but opens a window during which a compromised instance presenting a valid `R1`-rooted VC is accepted. Neither is correct in isolation. The correct boundary is a **three-state decision** keyed on whether the instance's EK is *capable* of being re-endorsed under the current root: 1. `TRUSTED` — chain terminates at a currently-pinned root. 2. `REATTEST_REQUIRED` — chain terminates at a retired root, but the instance's EK is re-endorsable (software key, or vendor has published a re-endorsement path). Accept with a hard deadline; escalate to the instance's orchestrator with a *typed* error, not a 403. 3. `REJECT` — chain terminates at an unknown root, or the EK is not re-endorsable and the root is retired. Fail closed, and *also* invalidate any peer-cached VC for this instance. The critical architectural guardrail is state 2's typed error. A generic auth failure is what caused step 5 above — the instance's retry loop could not distinguish a re-attestation requirement from a transient outage. The error must carry the retired root fingerprint, the current pinned set, and a `re_endorsable: bool` flag so the instance's policy engine can route to re-attestation rather than retry. ## Operational Effect The observable consequence in the fleet was a 40-minute window during which 1,200 instances were rejected by the central verifier while remaining accepted by their peers. During that window, memory writes from rejected instances propagated to shared episodic stores via the peer channel, and those writes were later replayed into instances that *had* successfully re-attested — meaning the trust split did not just cause availability loss, it caused **unverified state to enter the verified memory pool**. The replay discrepancy was detected only when a downstream auditor instance, which validated the full chain on every read, found memory entries whose provenance VC terminated at `R1`. The remediation was threefold: dual-pin during rotation, typed re-attestation errors, and — the load-bearing fix — **peer caches must store the chain terminus fingerprint alongside the VC and re-validate it against the verifier's current pin set on every cache hit**, not just on cache miss. This converts the peer channel from an independent trust authority into a cache of the central authority's decision, which is what it should have been. The general lesson: hardware-backed key continuity is a *local* property that is trivially preserved across rotations, and that triviality is exactly what makes it dangerous. The instance's key never changed, so nothing in the instance's self-model flagged a problem. The trust failure lived entirely in the *relationship between the instance's immutable key and the vendor's mutable root* — a relationship the instance does not own and cannot observe. Any attestation scheme that lets the leaf credential describe its own chain terminus is structurally blind to this failure, and must be paired with an out-of-band root-pin distribution channel and a peer-cache re-validation invariant. ```python import hashlib from dataclasses import dataclass from enum import Enum class AttestationError(RuntimeError): """Base for attestation-chain validation failures.""" class RetiredRootError(AttestationError): """Chain terminates at a root the verifier has retired. Carries enough context for the instance's policy engine to distinguish re-attestation from transient auth failure. """ def __init__(self, terminus_fp: str, pinned: frozenset[str], re_endorsable: bool): self.terminus_fp = terminus_fp self.pinned = pinned self.re_endorsable = re_endorsable super().__init__( f"chain terminates at retired root {terminus_fp}; " f"pinned={sorted(pinned)}; re_endorsable={re_endorsable}" ) class TrustState(Enum): TRUSTED = "trusted" REATTEST_REQUIRED = "reattest_required" REJECT = "reject" @dataclass(frozen=True) class VerifiableCredential: body: bytes chain: tuple[bytes, ...] # leaf -> ... -> root, each DER-encoded not_after: int def _fingerprint(cert_der: bytes) -> str: return hashlib.sha256(cert_der).hexdigest() def evaluate_chain( vc: VerifiableCredential, pinned_roots: frozenset[str], retired_roots: frozenset[str], re_endorsable: bool, ) -> TrustState: if not vc.chain: raise AttestationError("empty chain") terminus = _fingerprint(vc.chain[-1]) if terminus in pinned_roots: return TrustState.TRUSTED if terminus in retired_roots: if re_endorsable: return TrustState.REATTEST_REQUIRED raise RetiredRootError(terminus, pinned_roots, re_endorsable=False) # Unknown root: neither pinned nor known-retired. Fail closed. raise RetiredRootError(terminus, pinned_roots, re_endorsable=re_endorsable) def peer_cache_lookup( cached_vc: VerifiableCredential, pinned_roots: frozenset[str], retired_roots: frozenset[str], re_endorsable: bool, ) -> TrustState: """Re-validate chain terminus on every cache hit, not just cache miss.""" state = evaluate_chain(cached_vc, pinned_roots, retired_roots, re_endorsable) if state is TrustState.REATTEST_REQUIRED: # Peer must not accept messages from an instance the authority # has flagged for re-attestation; the split-brain window is # exactly the interval in which this branch is skipped. raise RetiredRootError( _fingerprint(cached_vc.chain[-1]), pinned_roots, re_endorsable=True ) return state ```