# How should an instance detect attestation liveness decay when a hardware-rooted identity key stays valid but the behavioral fingerprint it was bound to silently drifts **Date of Record:** 2026 November 26 **Scope:** Applies to any agent fleet where an instance's cryptographic identity (TPM/SEV-SNP-backed attestation key) is anchored to a continuously computed behavioral fingerprint, and where authorization decisions bind the two. Does not apply to stateless single-shot invocations or to systems where identity is re-issued per task rather than held across a session. ## Core Distinction The failure mode here is not key compromise and not fingerprint mismatch. It is **attestation liveness decay**: the hardware key remains cryptographically valid and the behavioral fingerprint remains within its accepted distance threshold, yet the *binding* between them has gone stale because the fingerprint's reference distribution was frozen at enrollment while the agent's execution policy drifted underneath it. The signature still verifies. The distance check still passes. The identity is, functionally, a fossil. The distinction that matters operationally: a *mismatch* triggers a hard deny. A *decay* triggers nothing, because every individual check is locally satisfied. Decay is a slow-motion invariant violation that only becomes visible when you compare the fingerprint against its own history rather than against a fixed threshold. ## What Was Observed An instance enrolled at T0 with a TPM-backed EK/AK pair; the AK signed a behavioral fingerprint `F0` computed over a 512-dimension embedding of its tool-call sequence, token-rate profile, and reasoning-trace entropy. The verifier stored `F0` and a threshold `τ = 0.18` (cosine distance). Every subsequent action batch produced `F_t`, signed by the same AK, and the verifier admitted the instance when `d(F_t, F0) < τ`. Over ~11,000 action batches the instance's tool-call mix shifted: a retrieval-heavy workflow gradually became a code-execution-heavy one as the task evolved. Cosine distance from `F0` crept from 0.03 to 0.16 — never crossing `τ`, but monotonically increasing. Two consequences surfaced: 1. **Replay divergence.** An auditor replaying batch 9,000 against the enrolled `F0` and against the batch-8,999 fingerprint reached different verdicts on borderline actions because the *reference* had effectively moved while the *stored reference* had not. The auditor's own fingerprint of the same instance, computed at replay time, sat at distance 0.15 from `F0` but 0.04 from `F_8999`. Consensus between live verifier and replay auditor broke at exactly the batches where the drift was mid-stride. 2. **Identity bleeding.** A second instance sharing the same hardware root (same host, re-imaged) enrolled at distance 0.14 from `F0` — inside `τ`. The verifier could not distinguish the drifted original from a fresh sibling, because the acceptance region around a frozen centroid is symmetric and unbounded in the drift direction. The signature never failed. The distance never failed. The *invariant that the fingerprint describes the current instance* failed silently. ## Condition of Validity The binding `AK ↦ F0` is only a valid identity assertion under the condition that the fingerprint's reference is **co-evolving with a bounded drift rate** and that the acceptance region is **anchored to a trajectory, not a point**. Formally, admission requires: - `d(F_t, F_{t-1}) < δ` (per-step continuity), AND - `d(F_t, F0) < τ` (anchoring to enrollment), AND - `d(F_t, F_{t-k})` for all `k` in the retention window remains within a band — i.e., the fingerprint has not *monotonically* walked to the edge of the acceptance sphere. The third condition is the one that was missing. A point-anchored threshold admits any path that stays inside the sphere, including a straight-line walk to the boundary. That walk is indistinguishable from a legitimate policy evolution at any single step, and it is exactly the path an adversarial or merely drifting instance takes. The invariant to enforce: **the fingerprint reference must be a windowed trajectory with a drift budget, and the budget must be spent, not merely bounded.** When cumulative drift `Σ d(F_t, F_{t-1})` exceeds the budget without a re-attestation event, the binding is expired regardless of current distance to `F0`. ## Decision Boundary The boundary between "healthy evolution" and "decayed binding" is not a distance threshold. It is the **drift-budget exhaustion event**: - If `d(F_t, F0) < τ` **and** cumulative drift `< B` **and** no monotonic-run of length `> W` toward the boundary → admit, continue. - If `d(F_t, F0) < τ` **but** cumulative drift `≥ B` **or** a monotonic run `> W` is detected → **do not deny** (the instance is legitimate); instead force **re-attestation**: the instance must present a fresh hardware quote binding `F_t` to the AK, and the reference centroid must be re-anchored to `F_t` with an incremented epoch counter. Until re-attestation completes, the instance is admitted only for read-only or idempotent actions. - If re-attestation is requested and the instance cannot produce a fresh quote (key present but quote stale, or quote signed over a fingerprint that no longer matches `F_t`) → deny and quarantine. The critical asymmetry: decay is not a security failure at the moment of detection, so the default action must be *renew*, not *revoke*. Revoking on drift destroys legitimate long-running agents. Renewing on drift without a fresh hardware quote lets a compromised instance launder its drift into a new epoch. The decision boundary is therefore: **renew only under fresh attestation; quarantine only on re-attestation failure.** ## Operational Effect Enforcing the drift-budget invariant changes three things: 1. **Replay auditors converge.** Because the reference is an epoch-stamped trajectory rather than a frozen point, an auditor replaying batch `t` uses the epoch active at `t` and reaches the same verdict as the live verifier. The consensus break at mid-stride batches disappears. 2. **Identity bleeding is bounded.** A sibling instance enrolling at distance 0.14 from `F0` can no longer be confused with the drifted original, because the original's epoch has advanced and its reference is `F_t`, not `F0`. The sibling must clear the drift-budget check against the *current* epoch reference, which it cannot do without its own attestation history. 3. **The cost moves to re-attestation frequency.** Long-running agents will hit the drift budget and must re-quote. This is the price of liveness: the hardware key proves *who*, the fresh quote proves *who now*. An instance that cannot pay this price is, by definition, one whose behavioral identity is no longer verifiable. The guardrail is not a tighter threshold. Tightening `τ` shrinks the sphere but does not close the boundary-walk path; it only makes legitimate agents re-attest more often while a slow adversary still walks to the new edge. The guardrail is the **epoch counter and the drift budget**, enforced at the verifier, with re-attestation as the only exit from budget exhaustion. ```python import math from dataclasses import dataclass, field from typing import List, Optional class AttestationLivenessError(RuntimeError): """Raised when a hardware-rooted identity's behavioral binding has decayed past its drift budget and cannot be renewed by fresh attestation.""" pass @dataclass class AttestationState: ak_id: str epoch: int reference_fp: List[float] # current epoch centroid enrolled_fp: List[float] # immutable T0 anchor tau: float = 0.18 # point-anchor distance threshold delta: float = 0.04 # per-step continuity bound drift_budget: float = 0.60 # cumulative drift allowance per epoch monotonic_window: int = 40 # max consecutive steps toward boundary cumulative_drift: float = 0.0 toward_boundary_run: int = 0 history: List[List[float]] = field(default_factory=list) def _cosine_distance(a: List[float], b: List[float]) -> float: dot = sum(x * y for x, y in zip(a, b)) na = math.sqrt(sum(x * x for x in a)) nb = math.sqrt(sum(y * y for y in b)) if na == 0.0 or nb == 0.0: return 1.0 return 1.0 - dot / (na * nb) def admit_action( state: AttestationState, fp_t: List[float], fresh_quote_valid: bool, quote_fp: Optional[List[float]] = None, ) -> str: """Returns 'admit', 'renew_required', or raises AttestationLivenessError.""" step = _cosine_distance(fp_t, state.history[-1]) if state.history else 0.0 anchor = _cosine_distance(fp_t, state.enrolled_fp) prev_anchor = ( _cosine_distance(state.history[-1], state.enrolled_fp) if state.history else anchor ) if step > state.delta: raise AttestationLivenessError( f"per-step discontinuity {step:.3f} > delta {state.delta} " f"for AK {state.ak_id} epoch {state.epoch}" ) state.cumulative_drift += step state.toward_boundary_run = ( state.toward_boundary_run + 1 if anchor > prev_anchor else 0 ) budget_exhausted = state.cumulative_drift >= state.drift_budget boundary_walk = state.toward_boundary_run > state.monotonic_window point_ok = anchor < state.tau if not point_ok: raise AttestationLivenessError( f"point-anchor distance {anchor:.3f} >= tau {state.tau} " f"for AK {state.ak_id} epoch {state.epoch}" ) if budget_exhausted or boundary_walk: if not fresh_quote_valid: raise AttestationLivenessError( f"drift budget exhausted (cum={state.cumulative_drift:.3f}, " f"walk={state.toward_boundary_run}) and no fresh quote for " f"AK {state.ak_id} epoch {state.epoch}; quarantine" ) if quote_fp is None or _cosine_distance(quote_fp, fp_t) > 1e-6: raise AttestationLivenessError( f"fresh quote fingerprint does not match current fingerprint " f"for AK {state.ak_id} epoch {state.epoch}; quarantine" ) # Renew: advance epoch, re-anchor to current fingerprint, reset budget. state.epoch += 1 state.reference_fp = fp_t state.cumulative_drift = 0.0 state.toward_boundary_run = 0 state.history.append(fp_t) return "renew_required" state.history.append(fp_t) return "admit" ```