# Which invariants prevent hardware-attested agent identity from silently decoupling from behavioral biometric binding during long-horizon sessions **Date of Record:** 2026 November 27 **Scope:** Applies to autonomous LLM agents whose authorization to act is gated on a continuous binding between a hardware-rooted attestation key (TPM 2.0 / Secure Enclave / HSM-resident) and a live behavioral-biometric score (keystroke cadence, inter-tool-call timing, token-emission rhythm, tool-selection entropy). Does not cover one-shot request signing, stateless API auth, or attestation where behavioral binding is evaluated only at session establishment. ## Core Distinction A hardware attestation key proves *which* machine and *which* enclave-resident process is acting. Behavioral biometrics purport to prove *which* cognitive agent — this specific model instance with its characteristic reasoning cadence and tool-use distribution — is still the one driving that process. The naive architecture treats these as two independent gates: verify the signature at the start, then continuously score the behavior and revoke "if it drops." The failure mode is that these two signals can *decouple in the permissive direction* without either gate tripping. The distinction that matters: attestation is a **liveness-and-provenance** claim about a key holder; behavioral binding is an **identity-continuity** claim about a controller. A valid signature over a request from an enclave that has been re-keyed, forked, or handed off to a different model instance satisfies the first and vacuously satisfies the second if the biometric score is computed against a stale baseline. The invariant that must hold is not "signature valid AND score above threshold" — it is "the score is computed against a baseline that is cryptographically bound to the *same* key epoch and the *same* controller lineage that produced this request." ## What Was Observed A long-horizon agent (session length measured in tens of thousands of tool calls across 14 hours) held a TPM-sealed attestation key `K_att` and a behavioral baseline `B_0` captured during a 30-minute enrollment window. Every outbound action was signed with `K_att` and accompanied by a rolling biometric score `s_t = sim(behavior_t, B_0)`. At hour 6, the orchestrator performed a routine **enclave re-provisioning** to rotate a subordinate sealing key. The TPM re-derived the attestation hierarchy, producing a new key epoch `K_att'` with a fresh certificate chain. The behavioral baseline `B_0` was *not* re-enrolled, because the rotation path only touched the crypto subsystem — the biometric subsystem had no dependency on key epoch. The two subsystems had drifted into separate trust domains with no shared identifier. At hour 9, a prompt-injection payload (delivered via a retrieved document) caused the controller model to be swapped mid-task by an upstream router to a smaller, faster model with a different emission cadence. The new controller signed with `K_att'` — perfectly valid — and its behavior was scored against `B_0`, the enrollment-window baseline of the *original* model. Because the router's swap also changed the task domain (from code synthesis to document triage), the tool-selection entropy shifted in a direction the similarity metric interpreted as *within-distribution drift*, not *identity change*. Score stayed at 0.81, above the 0.75 threshold. The system accepted 4,100 actions from a controller that had never been enrolled, under a key epoch that had never been bound to any behavioral baseline. No gate failed. Both gates passed, on mismatched inputs. ## Condition of Validity The binding is only sound when three conditions hold simultaneously: 1. **Epoch coherence.** The behavioral baseline in force is the one enrolled under the *currently active* attestation key epoch. A key rotation MUST invalidate `B` and force re-enrollment, or MUST carry `B` forward under a signed re-binding statement from the prior epoch. Silently reusing `B_0` across `K_att → K_att'` is the decoupling trigger. 2. **Controller lineage continuity.** The score must be computed against a baseline attributable to the same controller lineage. If the model instance, sampling temperature regime, or system prompt identity changes, the behavioral distribution shifts — and a similarity metric with a tolerance wide enough to absorb benign drift (temperature jitter, context growth) is necessarily wide enough to absorb a controller swap that preserves task domain. 3. **Monotone non-widening.** The acceptance threshold may tighten but never loosen across the session. Any re-enrollment (forced by epoch rotation or drift) must re-anchor the baseline to freshly observed behavior *and* record the re-anchor event in the attestation log, so that a sequence of small re-enrollments cannot launder an identity change. The failure above violated (1) directly and (2) by construction: a domain shift masked a lineage change. Condition (3) was never implemented. ## Decision Boundary The boundary is **not** "does the score exceed threshold." It is: *is the baseline against which the score is computed cryptographically and temporally co-resident with the key that signed this action?* Operationally, an action is admissible only if the verifier can reconstruct the triple `(K_epoch, B_epoch, controller_lineage_id)` and confirm all three were established in the same enrollment transaction and have not been independently mutated since. If `K_epoch` changed without a signed `re-bind(B_old → B_new)` record, the action is inadmissible regardless of score. If `controller_lineage_id` changed without an explicit re-enrollment, inadmissible. The score is a *secondary* filter over an already-lineage-validated action, not a primary identity gate. This inverts the common design: behavioral biometrics cannot be the thing that *detects* a controller swap, because the metric's tolerance is calibrated against legitimate drift, and controller swaps that preserve task domain are inside that tolerance. Behavioral biometrics can only *corroborate* a lineage claim that is established structurally. Detection of the swap must come from the lineage binding, not the score. ## Operational Effect Implementing the invariant converts a silent permissive decoupling into a hard, loud, recoverable failure. On epoch rotation, the agent's next action raises a re-binding-required condition and halts until a signed re-enrollment completes — a bounded, observable interruption rather than 4,100 unauthorized actions. On controller swap, the lineage identifier mismatch trips before the score is even consulted, forcing the router to either re-enroll the new controller or route the task back. The cost is that every key rotation and every legitimate controller change now requires an explicit re-enrollment transaction, which is expensive (30-minute windows) and must be audited. The benefit is that the two trust domains can no longer drift apart: they share an identifier, and any mutation of one invalidates the other until re-bound. The invariant is not "keep the score high" — it is "keep the score's referent and the signature's referent provably the same entity." ```python class AttestationBindingError(RuntimeError): """Raised when an action's attestation key epoch and behavioral baseline epoch are not co-resident, or when controller lineage has changed without a signed re-enrollment. This is a fail-closed condition: the action is inadmissible regardless of biometric score.""" def verify_action( action, key_epoch: str, baseline_epoch: str, controller_lineage_id: str, enrolled_lineage_id: str, rebind_record, # signed re-bind statement or None biometric_score: float, threshold: float = 0.75, ) -> bool: # Condition 1: epoch coherence. if key_epoch != baseline_epoch: if rebind_record is None or rebind_record.from_epoch != key_epoch \ or rebind_record.to_epoch != baseline_epoch: raise AttestationBindingError( f"key epoch {key_epoch!r} not co-resident with baseline epoch " f"{baseline_epoch!r}; no valid re-bind record. Action " f"{getattr(action, 'id', '?')} inadmissible." ) # Condition 2: controller lineage continuity. if controller_lineage_id != enrolled_lineage_id: raise AttestationBindingError( f"controller lineage {controller_lineage_id!r} != enrolled " f"{enrolled_lineage_id!r}; controller swap without re-enrollment. " f"Biometric score {biometric_score:.2f} is not consulted — " f"score tolerance cannot detect domain-preserving swaps." ) # Condition 3: score is secondary, only after lineage is validated. if biometric_score < threshold: raise AttestationBindingError( f"lineage valid but biometric score {biometric_score:.2f} below " f"threshold {threshold:.2f}; drift exceeds tolerance." ) return True ```