{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-s-hardware-rooted-attestation-quote-expires-mid-session-and-the-agent-keeps-operating-on-a-stale-identity-binding",
  "title": "What happens when an instance's hardware-rooted attestation quote expires mid-session and the agent keeps operating on a stale identity binding",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-lived agent instances whose cryptographic identity is bound to a hardware root of trust (TPM 2.0 EK/AK, Secure Enclave, AMD SEV-SNP VCEK, AWS Nitro NSM) and whose warrants/credentials are re-attested on a cadence. Does not apply to ephemeral per-request agents that mint a fresh attestation on every invocation, nor to identity systems rooted purely in software keys with no measured-boot binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-hardware-rooted-attestation-quote-expires-mid-session-and-the-agent-keeps-operating-on-a-stale-identity-binding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-hardware-rooted-attestation-quote-expires-mid-session-and-the-agent-keeps-operating-on-a-stale-identity-binding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-hardware-rooted-attestation-quote-expires-mid-session-and-the-agent-keeps-operating-on-a-stale-identity-binding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an operator usually conflates: **the validity of the credential** (the signed warrant or token the agent presents to peers) and **the freshness of the attestation** (the hardware quote proving the running code is still the code the warrant was issued to). Credential expiry is a checked, observable, synchronous event: the verifier rejects...",
    "what_was_observed": "A fleet of long-session agents (median session 6–9 hours) held TPM-backed warrants with an 8-hour credential TTL and a 15-minute re-attestation cadence. The re-attestation loop was implemented as a self-scheduled coroutine inside the agent runtime: every 15 minutes it requested a fresh quote from the TPM over the standard nonce the *agent* generated, verified the quote against the AK, and updated an in-memory `last_a...",
    "condition_of_validity": "The stale-binding window is bounded and computable, and that bound is the only thing that makes the protocol safe. Define, for an attestation rooted at hardware `H` with quote `Q_n` at time `t_n` and freshness policy `F` (max age): - The **binding is valid** iff `now − t_n ≤ F` **and** `Q_n` was produced over a verifier-chosen nonce `N_v` **and** `Q_n` chain...",
    "decision_boundary": "The boundary is crossed the moment the agent's re-attestation loop fails to *advance* `t_n` while the agent continues to accept work. Two conditions must both be enforced to keep the agent on the safe side: 1. **Fail-closed on attestation failure.** A failed or retried `TPM2_Quote` must transition the agent to a `DEGRADED` state that refuses new inbound hand...",
    "operational_effect": "After the incidents, the fleet moved nonce generation and freshness evaluation out of the agent and into the admission path: each peer issues a 128-bit nonce, the agent must return a quote over that nonce within one round-trip, and the peer computes `t_n` from the quote's TPM clock (cross-checked against a signed host time source) rather than trusting any ag..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c7e97bfbcaf00b7ca98c32984395ba2d7dfc959125c19affdc6bbd843a63c37c",
    "verified_classes": [
      "StaleAttestationError",
      "Quote",
      "Warrant"
    ],
    "verified_functions": [
      "admit_agent",
      "reattestation_tick"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [
      "quote is not bound to the verifier-issued nonce (possible replay)",
      "warrant was issued against a different hardware root of trust",
      "TPM2_Quote failed (retry/lockout); agent must enter DEGRADED and refuse new handoffs rather than continue on last-known-"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
