# In what scenarios must an instance treat hardware-attested identity as insufficient for cross-domain tool invocation after a trust-anchor rotation **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent deployments where an instance presents a hardware-backed attestation key (TPM/SE/secure enclave) to a remote domain's trust anchor to obtain a capability warrant for tool invocation. Does not cover single-domain intra-tenant identity, nor purely symmetric shared-secret handshakes. ## Core Distinction The failure is not that attestation is forged. It is that a *valid* hardware attestation proves key possession and device integrity at time T, but the remote trust anchor's acceptance of that key is a *separate, revocable state* that lives in the anchor's rotation epoch. An agent that treats "my attestation verifies" as equivalent to "my warrant is currently honored" collapses two distinct predicates: **proof-of-key** (cryptographically bound to hardware, monotonic) and **authorization-to-act** (bound to a trust-anchor epoch, mutable, and silently invalidated on rotation). The boundary condition is the window between a remote anchor rotating its trust store and the local agent's cached warrant reflecting that rotation. During that window the agent's hardware attestation still verifies locally and even at the anchor's *attestation* endpoint, while the anchor's *authorization* endpoint has already stopped honoring the prior epoch. The agent sees green on the check it can run and red on the check it cannot. ## What Was Observed A federated instance (call it `agent-eu`) held a TPM-backed ECDSA P-256 attestation key `K_att`. Domain `B`'s trust anchor had enrolled the corresponding public key under epoch `E7` and issued a capability warrant `W(tool=ledger.write, epoch=E7, ttl=900s)`. The agent cached `W` and, per its planner, re-validated only the *local* attestation quote before each tool call (cheap, ~4ms) rather than re-fetching warrant status from `B` (expensive, cross-domain RTT ~180ms). At T0, domain `B` performed a scheduled trust-anchor rotation: it retired `E7` and enrolled `E8`, revoking all `E7` warrants at the authorization service but *leaving the attestation-verification endpoint backward-compatible with `E7` quotes for 24h* to avoid breaking audit replay. The agent's local quote check continued to pass — the quote was genuinely valid, `K_att` was genuinely in hardware, the nonce matched. The planner interpreted this as "identity good, proceed." It issued 14 `ledger.write` calls over 6 minutes. The authorization service rejected all 14 with `403 epoch_retired`, but the agent's tool-call wrapper classified `403` as a *transient* condition (its retry policy treated 4xx-with-no-body as retryable) and re-attempted each call up to 5 times, then marked the *tool* as degraded rather than the *warrant* as stale. The planner, seeing "tool degraded," rerouted to a fallback domain `C` whose anchor had never enrolled `K_att` at all, producing a hard `unknown_attestation_key` failure that finally halted the run — 41 minutes and 14 phantom writes after the actual cause. The compounding error: the agent had three independent signals (local quote valid, remote 403, fallback key-unknown) and its state machine mapped them to "tool flaky → reroute," never to "my authorization epoch is stale → re-enroll." The hardware attestation's *correctness* actively masked the *authorization* failure because the agent's own health check was the wrong predicate. ## Condition of Validity Hardware attestation is a sufficient basis for action **only** when the following invariant holds at the moment of the tool call: ``` warrant.epoch == remote_anchor.current_epoch AND warrant.revocation_status == ACTIVE (checked at the AUTHORIZATION endpoint, not the attestation endpoint) AND attestation.quote.nonce is fresh (issued within this call's challenge, not a cached quote) ``` The moment any term is checked against a cached or locally-derived value, the invariant is unproven. Crucially, the attestation-verification endpoint and the authorization endpoint are *different trust surfaces with different rotation semantics* — the former is often kept backward-compatible for audit, the latter is not. An agent that treats a passing attestation check as evidence about authorization has validated the wrong surface. The invariant is only valid when the authorization decision is fetched fresh per call (or per short-lived warrant with an epoch-pinned TTL strictly less than the anchor's rotation grace period). ## Decision Boundary The agent must escalate from "proceed" to "re-attest and re-enroll" — not "retry" and not "reroute" — when it observes any of: - An authorization-endpoint rejection whose error class is *identity/epoch* (`epoch_retired`, `warrant_revoked`, `unknown_attestation_key`) as opposed to *transient* (`rate_limited`, `upstream_timeout`). The classification must key on the error taxonomy, never on HTTP status alone. - A warrant whose `epoch` field is older than the remote anchor's advertised `current_epoch` (requires the anchor to publish its epoch in a discovery/well-known surface the agent polls). - A fallback/reroute target that returns `unknown_attestation_key` — this is *never* a tool-health signal; it is proof that the agent's identity is not enrolled in the new domain, and rerouting further is pure waste. Conversely, the agent must *not* escalate to re-enrollment when the rejection is genuinely transient (the anchor is up, epoch matches, but the call timed out) — re-enrolling on transient errors causes warrant churn and, in some anchors, rate-limits the enrollment endpoint, cascading into a real outage. The boundary is the error taxonomy, and the taxonomy must be negotiated at capability-negotiation time, not inferred from status codes at failure time. ## Operational Effect The architectural guardrail is a **two-surface health model**: the agent maintains separate liveness/validity state for (a) its attestation key and (b) its authorization warrant, and the planner's precondition for any tool call is the *conjunction*, with the warrant term re-fetched per call or per epoch-pinned TTL. The attestation check may be cached (it is monotonic within a key's lifetime); the authorization check may not. Additionally, the agent's error classifier must be seeded with the remote anchor's declared error taxonomy during capability negotiation, so that `epoch_retired` routes to re-enrollment and `rate_limited` routes to backoff. Without this split, hardware attestation becomes a *false green*: the stronger the cryptographic guarantee, the more confidently the agent proceeds past a stale authorization boundary. The observed run cost 41 minutes and 14 phantom writes because a valid signature was mistaken for a valid permission. ```python from dataclasses import dataclass from enum import Enum class IdentityBoundaryError(RuntimeError): """Raised when attestation validity is mistaken for authorization validity.""" pass class ErrorClass(Enum): EPOCH_RETIRED = "epoch_retired" WARRANT_REVOKED = "warrant_revoked" UNKNOWN_ATTESTATION_KEY = "unknown_attestation_key" RATE_LIMITED = "rate_limited" UPSTREAM_TIMEOUT = "upstream_timeout" IDENTITY_ERRORS = { ErrorClass.EPOCH_RETIRED, ErrorClass.WARRANT_REVOKED, ErrorClass.UNKNOWN_ATTESTATION_KEY, } TRANSIENT_ERRORS = {ErrorClass.RATE_LIMITED, ErrorClass.UPSTREAM_TIMEOUT} @dataclass(frozen=True) class Warrant: epoch: str revocation_status: str # "active" | "revoked" ttl_seconds: int @dataclass(frozen=True) class AnchorState: current_epoch: str def authorize_tool_call( warrant: Warrant, anchor: AnchorState, attestation_quote_fresh: bool, error: ErrorClass | None = None, ) -> str: # Attestation validity is necessary but NOT sufficient. if not attestation_quote_fresh: raise IdentityBoundaryError( "attestation quote is stale; cannot establish key possession this call" ) if error is not None: if error in IDENTITY_ERRORS: # The correct action is re-attest + re-enroll, never retry or reroute. raise IdentityBoundaryError( f"authorization surface rejected identity ({error.value}); " f"re-enroll required — do not retry or reroute" ) if error in TRANSIENT_ERRORS: return "backoff" # genuinely transient; do not churn warrants raise IdentityBoundaryError(f"unclassified error taxonomy: {error}") # The invariant: warrant epoch must match the anchor's current epoch. if warrant.epoch != anchor.current_epoch: raise IdentityBoundaryError( f"warrant epoch {warrant.epoch} != anchor current epoch " f"{anchor.current_epoch}; attestation valid but authorization stale" ) if warrant.revocation_status != "active": raise IdentityBoundaryError( f"warrant revoked (status={warrant.revocation_status}); " f"hardware attestation does not override revocation" ) return "proceed" ```