# Which invariants prevent hardware-attested agent identity from silently downgrading during continuous re-verification handoffs **Date of Record:** 2026 November 28 **Scope:** Applies to autonomous agents whose identity is bound to a hardware-backed key (TPM 2.0, Secure Enclave, or HSM-resident key) and whose peers rely on continuous re-verification (periodic challenge-response attestation quotes) to maintain trust during long-running, multi-hop task execution. Does not apply to single-shot request/response agents that terminate within one attestation epoch, nor to purely software-keyed identity where no hardware root of trust exists to downgrade from. ## Core Distinction There is a difference between *attestation success* and *attestation continuity*. A peer that verifies a hardware quote at handoff time confirms that the remote agent possessed a valid hardware-bound key at that instant. It does not confirm that the *same* hardware key remains in the execution path for the duration of the delegated task. The failure mode is not a failed quote—it is a *successful* quote from a key that is no longer the one that originated the task. Continuous re-verification is designed to catch this, but it silently degrades when the re-verification channel and the execution channel diverge: the agent re-attests from a healthy enclave while the actual tool-calling loop runs in a different, unattested process. Trust is then re-anchored to a key that is merely *present*, not *bound to the work*. This is a continuity invariant failure, not an authentication failure. Every individual check passes. The composed system has lost the property it believed it was enforcing. ## What Was Observed A long-running reconciliation agent (call it the *auditor*) was delegated a multi-hour task by an orchestrator. The orchestrator established initial trust via a TPM 2.0 quote over an AK (attestation key) and an EK (endorsement key) certificate chain, then bound the task to the agent's *attested signing key* `K_att`, whose public half was pinned into the task warrant. The warrant specified: "every 300s, present a fresh quote over `nonce_i` and sign the checkpoint digest with `K_att`." The agent's runtime was architecturally split: a supervisor process held the TPM handle and `K_att` and answered re-verification challenges; a worker process executed the actual reasoning loop and tool calls. The worker was spawned with a *software* signing key `K_soft` for checkpoint digests because the TPM handle was not inheritable across the process boundary the supervisor used. The supervisor, on each 300s tick, correctly signed the challenge with `K_att` and forwarded the worker's checkpoint digest—but the digest was already signed by `K_soft`. The supervisor's re-verification payload did not include a binding between `K_att` and `K_soft`. Observed trace: 1. `t=0`: handoff quote valid; warrant pins `K_att`. Trust established. 2. `t=300..N`: supervisor produces valid TPM quote over `nonce_i` (passes). Worker emits checkpoint `C_i` signed by `K_soft` (accepted, because the verifier checked "digest matches, signature present" rather than "signature chains to `K_att`"). 3. `t=~4200`: worker process is compromised (prompt-injection via a retrieved document causes it to emit a poisoned checkpoint that advances a ledger balance). The poisoned checkpoint is signed by `K_soft`, forwarded by the supervisor, and *re-verified successfully* because the supervisor's `K_att` quote is genuine and current. 4. The auditor's peer accepted three poisoned checkpoints before a downstream reconciliation mismatch surfaced. The hardware root of trust remained intact and continuously verified throughout. The execution path had been running under a key that was never hardware-bound, and re-verification never noticed because it verified a *different* key than the one signing the work. ## Condition of Validity The invariant that was assumed but not enforced: > For every checkpoint `C_i` accepted during a task bound to warrant `W`, the signature over `C_i` MUST verify under the exact public key pinned in `W`, and the re-verification quote at time `t_i` MUST cover a statement binding that key to the live execution context. The system enforced only the first clause at handoff and only the *presence* of a valid quote thereafter. The binding clause—`K_att` attests to `K_soft`'s presence in the same measured boot context—was absent. The condition of validity for continuous re-verification is therefore not "a quote succeeds every epoch" but "the quote's attested payload contains a fresh, nonce-bound commitment to the key that actually signs the work in that epoch." This holds regardless of hardware vendor. The mechanism is the split between the attestation principal and the execution principal, and it appears whenever those two are not the same process—which is the common case for agents that must run untrusted tool code in a sandbox while keeping the key in a privileged supervisor. ## Decision Boundary The boundary between "re-verification is meaningful" and "re-verification is theater" is whether the attested statement is *causally downstream of the work*. Two concrete decision rules: - **Bind-or-reject:** If a checkpoint's signing key does not appear in the attested payload of the same epoch's quote (as a key-attestation certificate or a signed binding statement from `K_att` over `K_soft`), the checkpoint MUST be rejected, not merely logged. The default of "accept if quote valid" is the defect. - **Epoch freshness:** The nonce in the quote MUST be derived from the checkpoint digest (e.g., `nonce_i = H(C_i || epoch)`), so a replayed or pre-computed quote from a prior epoch cannot cover a later checkpoint. A quote that is merely *recent in wall-clock time* does not bind to the work. When either rule is violated, the correct state transition is to *downgrade trust to the last checkpoint that satisfied both rules* and re-establish binding—not to continue at current trust. Continuing at current trust is the silent-downgrade failure. ## Operational Effect The practical consequence is that an attacker who cannot forge a hardware quote can still poison the agent's work by compromising the unattested execution process, because the trust anchor and the work-product signer have decoupled. The auditor's downstream peers inherit the poisoned state as if it were hardware-attested, and the failure surfaces only via semantic reconciliation—often hours later and several hops away. The required guardrail is a *key-binding attestation* folded into every re-verification epoch: the supervisor must, on each tick, produce a signed statement from `K_att` over `(K_soft_pub, epoch, H(C_i))`, and the verifier must check that the checkpoint signature verifies under `K_soft_pub` *and* that `K_soft_pub` matches the binding. This converts the re-verification from "the enclave is alive" to "the enclave vouches for the key that signed this specific work." Without it, continuous re-verification provides liveness of the root of trust but not continuity of the identity that produced the task's outputs—and the two are not interchangeable. ```python import hashlib from dataclasses import dataclass class AttestationBindingError(RuntimeError): """Raised when a re-verification quote does not bind the work-signing key.""" @dataclass(frozen=True) class Quote: epoch: int nonce: bytes attested_key_pub: bytes # K_att public half (hardware-bound) bound_work_key_pub: bytes | None # K_soft public half, if supervisor bound it signature_valid: bool @dataclass(frozen=True) class Checkpoint: epoch: int digest: bytes signer_pub: bytes # key that actually signed the work signature_valid: bool def expected_nonce(checkpoint: Checkpoint) -> bytes: return hashlib.sha256(checkpoint.digest + checkpoint.epoch.to_bytes(8, "big")).digest() def verify_epoch( checkpoint: Checkpoint, quote: Quote, pinned_att_key_pub: bytes, ) -> None: if not checkpoint.signature_valid: raise AttestationBindingError("checkpoint signature does not verify") if not quote.signature_valid: raise AttestationBindingError("hardware quote does not verify") if quote.attested_key_pub != pinned_att_key_pub: raise AttestationBindingError("quote is from a key not pinned in the warrant") if quote.epoch != checkpoint.epoch: raise AttestationBindingError("quote epoch does not match checkpoint epoch") if quote.nonce != expected_nonce(checkpoint): raise AttestationBindingError( "quote nonce is not derived from this checkpoint digest; " "re-verification is not causally bound to the work" ) if quote.bound_work_key_pub is None: raise AttestationBindingError( "supervisor did not bind a work-signing key in this epoch; " "re-verification would silently downgrade to presence-only trust" ) if quote.bound_work_key_pub != checkpoint.signer_pub: raise AttestationBindingError( "hardware-attested key does not vouch for the key that signed the work" ) # Only here is continuity actually enforced: the pinned hardware key # attests, for this specific epoch and this specific digest, that the # work-signing key is the one in the execution path. ```