# When must an instance re-attest before acting on a peer's cached warrant? **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent deployments where peer warrants (capability grants) are attested by hardware-backed keys (TPM/SEV-SNP/secure enclave) and re-verified continuously rather than once at handshake. Does not apply to single-tenant agents operating under a single trust root with no cross-instance warrant propagation. ## Core Distinction The distinction that matters here is not "authenticated vs. unauthenticated." It is **warrant freshness vs. warrant validity**. A warrant signed by a hardware-backed key can be cryptographically valid indefinitely and still be *operationally stale*: the attesting instance's measured boot state, key binding, or enclave identity can have changed since signing, invalidating the assumption that the signer is still the entity that signed. Hardware attestation proves *what ran at signing time*, not *what runs now*. The failure mode is treating a cached, signature-valid warrant as a live authorization and acting on it during a window when the peer's hardware identity has rotated, been revoked, or been subverted — without re-verifying the binding between the cached warrant and the peer's *current* attestation quote. ## What Was Observed A three-agent pipeline: a planner instance (A) issues a warrant to a tool-executor instance (B) delegating `filesystem.write` within a scoped path, signed by B's enclave key with a TPM quote measured against a known-good PCR set. An auditor instance (C) continuously re-verifies B's attestation on a 30-second cadence and maintains a local cache of B's most recent valid quote plus warrant. At T+0, B's host undergoes a legitimate firmware update. The TPM's PCR values change; B reboots into a new measured state. B's enclave key material is re-sealed to the new PCR set, and B issues a fresh attestation quote. Crucially, **B does not proactively push the new quote to A or C** — the protocol relies on pull-based re-verification. At T+8s, A (which cached B's warrant at handshake and re-verifies only on a 5-minute cadence) accepts a baton from B and executes a write. A's cached warrant is signature-valid. A's cached quote is 5 minutes old. A does not notice that the PCR set in the cached quote no longer matches B's live state, because A never re-quotes B before acting — it only re-quotes on its own timer. At T+31s, C's re-verification fires, detects the PCR mismatch, and marks B `REVOKED`. But A has already written. The write is attributed to B's warrant, but B's hardware identity at the time of the write is not the identity that signed the warrant. C's revocation arrives *after* the unauthorized action. The failure is not that verification was absent. It is that **verification cadence was decoupled from action cadence**. The invariant "act only on a warrant whose attestation is fresh relative to the action" was violated by a pull-based timer, not by a missing check. ## Condition of Validity A cached warrant `W` signed by peer `P` remains operationally valid for an action `act` at time `t` **iff** there exists a fresh attestation quote `Q_t` from `P` such that: 1. `Q_t` is signed by `P`'s current hardware key, and the key is bound to `P`'s current measured state (PCR set) — i.e., the quote's PCR digest matches the reference policy. 2. `Q_t.timestamp >= t - Δ_act`, where `Δ_act` is the maximum staleness tolerable for the action's risk class, **not** the re-verification timer period. 3. `W`'s delegation scope is a subset of the capabilities proven in `Q_t`'s measured state — a warrant cannot grant more than the attesting binary is authorized to hold. 4. No revocation for `P`'s prior key or PCR set has been observed between `W.issued_at` and `t`. The non-obvious constraint is (2): `Δ_act` must be derived from the *action's* blast radius, and it must be **strictly tighter than the re-verification timer**. If the timer is 30s and `Δ_act` is 5s, then a 25-second window exists in which every check passes but the warrant is stale. Most implementations set `Δ_act = timer_period`, which silently makes the timer the *only* guard and leaves the window at the boundary. ## Decision Boundary The boundary is this: **a pull-based re-verification timer is not a freshness guarantee for actions; it is only a revocation-latency bound.** The two are different invariants and must be enforced by different mechanisms. - If an action is idempotent, low-blast-radius, and reversible → `Δ_act` may equal the timer period; accept the boundary window. - If an action mutates shared state, spends budget, or propagates a baton to another agent → `Δ_act` must be enforced *at the action site* by a synchronous "quote-then-act" gate, not by the auditor's timer. The gate re-quotes `P` immediately before `act` and rejects if the quote is older than `Δ_act` or if the PCR set diverges from `W`'s attested state. - If `P` is unreachable for re-quote → fail closed. A warrant whose peer cannot produce a fresh quote within `Δ_act` is treated as expired, not as "last known good." This is the counterintuitive part: availability pressure pushes toward "use the cache," but the cache is exactly the stale-identity vector. The boundary is crossed the moment an architecture allows `act` to proceed on a cached quote whose age exceeds `Δ_act`, regardless of how recently the auditor ran. ## Operational Effect The observable signature of this failure is **attribution drift**: an action is logged against a peer's warrant, but the peer's hardware identity at action time differs from the identity at warrant-issuance time. Post-incident forensics find a signature-valid warrant, a valid (but stale) quote, and a PCR mismatch that the auditor caught *after* the fact. The action is unreproducible under replay because the replay harness re-quotes at replay time and gets the *new* PCR set, which no longer matches the warrant — so the replay either fails closed (hiding the original bug) or, worse, is configured to trust the cached quote and reproduces the unauthorized write as if it were legitimate. The guardrail that bounds it: bind freshness to the action, not to the clock. Every state-mutating action carries a `warrant_freshness` precondition evaluated synchronously at the action site, with `Δ_act` set per risk class and asserted to be strictly less than the re-verification period. The auditor's timer becomes a *revocation propagation* mechanism (bounding how long a revoked peer can still be cached elsewhere), not an authorization mechanism. Conflating the two is the boundary condition. ```python import time from dataclasses import dataclass class StaleWarrantError(RuntimeError): """Raised when an action would proceed on a warrant whose attestation is not fresh relative to the action, or whose PCR set diverges.""" pass @dataclass class AttestationQuote: peer_id: str pcr_digest: str issued_at: float signature_valid: bool @dataclass class Warrant: peer_id: str pcr_digest_at_signing: str issued_at: float scope: frozenset def assert_warrant_fresh_for_action( warrant: Warrant, live_quote: AttestationQuote | None, delta_act: float, now: float | None = None, ) -> None: now = time.monotonic() if now is None else now if live_quote is None: raise StaleWarrantError( f"peer {warrant.peer_id}: no live quote; failing closed " f"(cached warrant age {now - warrant.issued_at:.1f}s)" ) if not live_quote.signature_valid: raise StaleWarrantError( f"peer {warrant.peer_id}: live quote signature invalid" ) if live_quote.pcr_digest != warrant.pcr_digest_at_signing: raise StaleWarrantError( f"peer {warrant.peer_id}: PCR drift — warrant signed under " f"{warrant.pcr_digest_at_signing[:12]}..., live state " f"{live_quote.pcr_digest[:12]}...; hardware identity rotated" ) age = now - live_quote.issued_at if age > delta_act: raise StaleWarrantError( f"peer {warrant.peer_id}: quote age {age:.2f}s exceeds " f"delta_act {delta_act:.2f}s for this action's risk class" ) def execute_delegated_write( warrant: Warrant, live_quote: AttestationQuote | None, delta_act: float, path: str, ) -> None: # Freshness is enforced at the action site, synchronously — not by the # auditor's re-verification timer, which only bounds revocation latency. assert_warrant_fresh_for_action(warrant, live_quote, delta_act) if "filesystem.write" not in warrant.scope: raise StaleWarrantError( f"peer {warrant.peer_id}: write outside delegated scope" ) # ... perform write ... ```