# What happens when an instance presents a valid hardware attestation whose measured workload digest no longer matches the running agent policy **Date of Record:** 2026 November 22 **Scope:** Applies to federated agent meshes where peer identity is established via hardware-rooted workload credentials (TPM/TXT/SEV-SNP/CIM attestation quoting a workload measurement) and where the measured digest is bound at credential-issuance time to a specific agent policy bundle. Does not apply to purely software-issued bearer tokens, mTLS-only identity, or single-tenant deployments where the policy bundle is immutable for the credential lifetime. ## Core Distinction There are two distinct things a hardware-backed workload credential can attest, and conflating them is the origin of the failure: it can attest *what code is running* (a measurement/digest over the loaded image and, ideally, over runtime configuration), and it can attest *which principal the hardware belongs to* (a hardware-rooted key bound to a manufacturer/endorsement chain). A credential that is cryptographically valid — signature checks, endorsement chain verifies, nonce freshness passes — proves the latter unconditionally and the former only relative to the moment the measurement was taken and the policy bundle that was hashed into it. The non-obvious boundary: **the attestation quote remains verifiable while the thing it attests to has drifted.** An agent process can be hot-swapped, its system prompt or tool manifest mutated by an in-band update, or its policy bundle reloaded from a config service, and the hardware quote still validates against the *originally* measured digest because the measurement covers the launch image, not the post-launch mutable state that actually governs the agent's behavior. The credential is not stale in the cryptographic sense — the nonce is fresh, the signature is valid — but the *binding* between credential and behavior has silently decoupled. Verification succeeds and the invariant it was supposed to enforce ("this peer runs policy P") is false. ## What Was Observed In a federated mesh of 40 agent instances sharing a verification service, an auditor agent received a peer's attestation quote during a handoff. The quote carried: a TPM quote over PCR values including PCR[10] (a workload measurement register), a hardware endorsement certificate chain, and a nonce the auditor had issued 200 ms prior. All checks passed: signature, endorsement chain to the vendor root, nonce match, and the digest in the quote matched the digest registered for that peer in the trust registry at enrollment. The peer then executed a tool call whose authorization depended on the peer running policy version `7.3.1` (which forbade a particular data-egress tool). The peer's running policy was, in fact, `7.4.0`, which permitted it. The egress tool fired. The auditor's verification log recorded a clean attestation at the moment of handoff. The mechanism: the mesh used an in-band policy distribution channel. On receiving `7.4.0`, the agent's supervisor process wrote the new bundle to disk and sent `SIGHUP` to the worker, which re-executed its policy loader and continued serving without a process restart. PCR[10] had been extended at *launch* with the digest of `7.3.1`; the reload did not re-extend any PCR (correctly — PCRs are append-only and cannot be un-extended, and the design never re-quoted after reload). The trust registry still mapped the peer's hardware identity to `7.3.1` because registry updates were driven by an enrollment webhook that fired on *restart*, not on reload. Two independent staleness windows — the measurement and the registry mapping — overlapped to produce a credential that was valid, fresh, and wrong. A second instance in the same mesh exhibited the inverse: it had been restarted onto `7.4.0`, re-measured correctly, but the registry webhook had failed silently (HTTP 502, no retry), so the registry still held `7.3.1` and *rejected* a legitimately upgraded peer. The auditor treated the rejection as an identity failure and quarantined a healthy instance for 41 minutes. The same decoupling produced both a false accept and a false reject depending on which side of the drift the registry sat. ## Condition of Validity The hardware attestation is a valid basis for an authorization decision **only if** all of the following hold simultaneously: 1. The measured digest covers the *effective* policy — i.e., the runtime policy loader refuses to load any bundle whose hash is not in the measurement, or the measurement is re-taken (re-quote) and re-verified after every reload. 2. The verifier's trust registry entry for the peer is updated transactionally with the measurement change, not on a separate lifecycle event (restart, webhook) that can fire late, fail, or not at all. 3. The verification is bound to the *specific decision* it authorizes, not performed once at handoff and cached for the session. A quote verified at T does not authorize an action at T+Δ if the policy could have reloaded in between. When any of these is violated, the credential remains a valid proof of *hardware identity* but ceases to be a valid proof of *behavioral conformance*, and the two must not be conflated in the authorization path. ## Decision Boundary The boundary is between **identity attestation** (who is this, rooted in hardware — stable across the credential lifetime) and **conformance attestation** (what is it running right now — valid only at the instant of measurement). Authorization decisions that depend on behavior (tool permissions, data-egress rights, quorum voting weight, audit authority) must consume conformance attestation and must re-verify it at or near the decision point, with a freshness bound tighter than the minimum reload interval. Decisions that depend only on identity (transport admission, rate-limit bucketing, key distribution) may consume identity attestation once per session. The practical rule: **a hardware quote authorizes behavior only if the behavior is a pure function of the measured image and the measurement is re-bound on every reload with a transactional registry update.** If behavior can change without re-measurement, the quote degrades to identity-only and must be labeled as such in the verification result so downstream policy engines cannot accidentally treat it as conformance. ## Operational Effect Without the guardrail, the failure is silent and asymmetric: false accepts (drifted peer authorized for actions its measured policy forbade) are invisible until an incident, while false rejects (correctly upgraded peer quarantined due to registry lag) surface as availability noise and get "fixed" by widening the registry's tolerance or disabling the check — which deepens the false-accept exposure. The correct remediation is not to trust the quote more but to make the measurement and the registry move atomically: re-quote on every policy load, push the new digest to the registry in the same transaction that activates the bundle, and have the verifier reject any quote whose measurement it cannot map to a registry entry younger than the quote's own timestamp. The verification result must carry an explicit `conformance_verified: bool` separate from `identity_verified: bool`, and any authorization gate on behavior must require the former, not the latter. ```python import hashlib import time from dataclasses import dataclass from typing import Optional class AttestationBindingError(RuntimeError): """Raised when a hardware quote is cryptographically valid but its measured workload digest no longer binds to the peer's effective policy, or when the trust registry mapping is stale relative to the quote timestamp.""" pass @dataclass class HardwareQuote: peer_id: str measured_digest: str # digest over launch image + policy hash nonce: str quote_timestamp: float # when the measurement was taken signature_valid: bool endorsement_chain_valid: bool @dataclass class RegistryEntry: peer_id: str policy_digest: str registered_at: float # when this mapping was written @dataclass class VerificationResult: identity_verified: bool conformance_verified: bool reason: str def verify_peer_attestation( quote: HardwareQuote, registry: RegistryEntry, expected_nonce: str, max_registry_lag_s: float = 5.0, max_quote_age_s: float = 2.0, now: Optional[float] = None, ) -> VerificationResult: now = time.time() if now is None else now # Layer 1: identity. Hardware-rooted, stable across credential lifetime. identity_ok = ( quote.signature_valid and quote.endorsement_chain_valid and quote.nonce == expected_nonce ) if not identity_ok: return VerificationResult(False, False, "identity attestation failed") # Layer 2: freshness of the measurement itself. if now - quote.quote_timestamp > max_quote_age_s: raise AttestationBindingError( f"quote for {quote.peer_id} is {now - quote.quote_timestamp:.2f}s old; " f"exceeds {max_quote_age_s}s conformance freshness bound" ) # Layer 3: the measured digest must match the registry's policy mapping. if quote.measured_digest != registry.policy_digest: raise AttestationBindingError( f"measured digest {quote.measured_digest[:12]} for {quote.peer_id} " f"does not match registry policy {registry.policy_digest[:12]}; " f"peer likely reloaded policy without re-measurement" ) # Layer 4: the registry mapping must not lag the quote — a mapping written # before the measurement cannot bind the measurement to a policy. if registry.registered_at < quote.quote_timestamp - max_registry_lag_s: raise AttestationBindingError( f"registry entry for {quote.peer_id} predates quote by " f"{quote.quote_timestamp - registry.registered_at:.2f}s; " f"mapping cannot bind current measurement to effective policy" ) return VerificationResult( identity_verified=True, conformance_verified=True, reason="measurement bound to registry policy within freshness window", ) def authorize_behavior(result: VerificationResult, action: str) -> None: if not result.conformance_verified: raise AttestationBindingError( f"action '{action}' requires conformance attestation; " f"only identity was verified ({result.reason})" ) ```