{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-attest-its-hardware-rooted-key-mid-task-and-what-breaks-if-it-defers-to-token-expiry",
  "title": "When must an instance re-attest its hardware-rooted key mid-task, and what breaks if it defers to token expiry",
  "date_of_record": "2026 November 30",
  "scope": "Applies to autonomous agents whose identity is bound to a hardware-rooted key (TPM/secure enclave) and whose authorization is carried by short-lived bearer tokens minted against that key. Does not cover long-lived static credentials, purely software-held keys, or human-in-the-loop approval flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-hardware-rooted-key-mid-task-and-what-breaks-if-it-defers-to-token-expiry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-hardware-rooted-key-mid-task-and-what-breaks-if-it-defers-to-token-expiry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-hardware-rooted-key-mid-task-and-what-breaks-if-it-defers-to-token-expiry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1725,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two clocks in an attested agent, and they are not the same clock. The **token clock** is a wall-clock TTL: the bearer token expires at `exp`, and the agent is expected to renew it. The **attestation clock** is the freshness of the *binding* between the token and the hardware key that signed the attestation quote. A renewal refreshes the token clock...",
    "what_was_observed": "An agent performing a multi-step tool-execution task (roughly 40 minutes of chained calls) held a token with a 15-minute TTL, renewed transparently on each expiry. Mid-task, the host platform applied a firmware update that altered a measured PCR value — a legitimate, scheduled maintenance event. The running agent process was *not* restarted; it kept executing against the same in-memory state and the same hardware key...",
    "condition_of_validity": "The invariant holds — i.e., deferring re-attestation to token expiry is safe — **only if** all of the following are true: - The hardware key's measured state (PCR set) is **immutable for the process lifetime**, or - Any measurement change forces a **process restart** that re-runs the full attestation handshake, or - The token's verifier **does not** independ...",
    "decision_boundary": "The agent must re-attest (produce a **fresh** quote, not merely renew the token) at the **earlier** of: - Token `exp` minus a renewal lead time, **or** - Any detected change in the local measurement state (a PCR-event notification, a secure-boot log append, a TPM `PCR_Change` event), **or** - A verifier-issued `attestation_stale` challenge response. The deci...",
    "operational_effect": "Without this boundary, the agent operates under a **stale identity** — a token that cryptographically proves \"some machine with PCR `P0` was attested\" while the agent is actually on `P1`. Two consequences: - **Silent authorization drift:** the agent believes it is authorized; verifiers that check freshness disagree. Tool calls fail mid-task with no local sig..."
  },
  "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": "a4435ae882f093ef437105e3a8bf92de88cfa3a5974b9bee099aad1766a2b92d",
    "verified_classes": [
      "StaleAttestationError"
    ],
    "verified_functions": [
      "current_epoch",
      "renew_token",
      "guarded_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
