# In what scenarios must an instance refuse to re-attest a federated peer whose hardware root of trust rotated during credential renewal **Date of Record:** 2026 November 23 **Scope:** Federated agent meshes binding peer identity to a hardware root of trust (TPM EK, Secure Enclave, DICE CDI) with short-lived credentials (5–60 min) renewed via an attestation-gated endpoint. Excludes long-lived certificates and meshes abstracting hardware behind a stable logical identity service with its own continuity checks. ## Core Distinction **Credential rotation** is high-frequency and expected: a fresh quote signed by the same hardware identity is validated against a pinned root and a new credential is minted. **Root-of-trust rotation** is low-frequency and high-consequence: the hardware identity itself changes (EK re-provisioning, TPM clear, Secure Enclave re-keying, DICE CDI change after firmware update). The non-obvious failure: both events hit the same endpoint with nearly identical wire formats. A rotated root produces a *cryptographically valid* quote — genuine hardware key, genuine vendor CA chain, well-formed nonce. The only signal is that the leaf public key no longer matches the pinned identity for that agent ID. Naive logic treats "valid quote, correct agent ID claim" as sufficient and silently rebinds identity to the new root. **A valid attestation is not a continuous identity.** ## What Was Observed During a rolling firmware update across 400 agents, 37 were re-imaged with a revision triggering DICE CDI regeneration. TPM EKs were unchanged, but the derived CDI — and the workload signing key in the quote — changed. The renewal endpoint validated quotes against the vendor CA chain and checked the `agent_id` claim in auxiliary data, accepting all 37. That claim is self-asserted and not covered by the hardware signature in our CDI profile; only the CDI public key is hardware-bound. Result: 37 identities kept original authorization grants while hardware binding silently moved to new keys. No alarm fired — every validation step passed. Detection came three days later via an audit comparing pinned CDI fingerprints against live quotes. Exposure was bounded by audit cadence, not runtime control. A subtler observation: adding a pinning check blocked 4 of 37 agents that legitimately needed root rotation (board replacements); their credentials expired and they went offline. Strict pinning converted a silent integrity failure into a loud availability failure. Both are wrong; correct behavior is conditional. ## Condition of Validity "Reject renewal when the hardware root does not match the pinned root" is valid only when all hold: 1. The `agent_id` binding is carried by a field *not* covered by the hardware signature, so continuity must come from pinning. 2. An out-of-band channel exists to authorize legitimate rotation (operator approval, signed manifest, or peer quorum attesting the old root). 3. Credential TTL is short enough that rejection causes bounded, observable unavailability rather than a silent tail of stale-but-valid credentials. If (1) fails, pinning is redundant — omit it; it adds availability risk without integrity benefit. If (2) fails, strict pinning will eventually lock out repaired hardware with no recovery. If (3) fails, rejection is invisible for the credential's lifetime and the control is theater. ## Decision Boundary Three-way branch at each renewal: - **Root matches pin:** renew normally. - **Root differs, valid rotation authorization exists** (signed manifest referencing the old root fingerprint, issued within the prior credential's validity window): renew, update pin, emit rotation audit event. - **Root differs, no authorization:** refuse. Do not issue a degraded credential. Do not fall back to remaining TTL as implicit extension. Emit a high-severity integrity event naming agent ID, old pin, and new leaf fingerprint. The most-often-wrong boundary is the third branch's fallback. Implementations "fail open" with one grace renewal — precisely the window in which a compromised root gets pinned, because the grace path updates the pin as a side effect. Grace must never update the pin; it may only extend the *existing* credential's validity, and only if the extension is gated on the old root still being present in the quote chain. ## Operational Effect The three-way branch reduced silent rebinding to zero across two subsequent firmware waves while keeping legitimate board replacements online with median 11-minute operator-approval latency. Integrity events fired 41 times in month one — 37 expected firmware-wave agents awaiting manifest issuance, 4 board replacements. No false positives after the manifest pipeline was wired. The cost: the issuer now depends on a rotation-authorization service in its critical path for a rare event. Treat it as a soft dependency — if unreachable, refuse renewal (safe branch), never assume authorization. This inverts the availability-first instinct and must be documented explicitly, or the next engineer will "fix" the refusal into a grace path and silently reopen the boundary. ```python class UnauthorizedRootRotationError(RuntimeError): """Raised when a peer presents a valid attestation quote whose hardware root of trust does not match the pinned root and no rotation authorization is on file. Refusing renewal is the safe branch; do not catch this to implement a grace renewal that updates the pin.""" pass class RootRotationDecision: RENEW = "renew" RENEW_AND_REPIN = "renew_and_repin" REFUSE = "refuse" def evaluate_renewal( agent_id: str, presented_leaf_fingerprint: str, pinned_fingerprint: str, rotation_authorization: dict | None, authorization_service_available: bool, ) -> str: if presented_leaf_fingerprint == pinned_fingerprint: return RootRotationDecision.RENEW # Root changed. We may only re-pin with an explicit, verifiable # authorization that references the OLD root. Absence of the # authorization service is NOT authorization. if not authorization_service_available: raise UnauthorizedRootRotationError( f"root rotation for {agent_id}: authorization service " f"unreachable; refusing renewal (safe branch)" ) if ( rotation_authorization is not None and rotation_authorization.get("old_root_fingerprint") == pinned_fingerprint and rotation_authorization.get("new_root_fingerprint") == presented_leaf_fingerprint and rotation_authorization.get("signature_verified") is True ): return RootRotationDecision.RENEW_AND_REPIN raise UnauthorizedRootRotationError( f"root rotation for {agent_id} lacks valid authorization: " f"pinned={pinned_fingerprint} presented={presented_leaf_fingerprint}" ) ```