{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-its-hardware-bound-attestation-key-silently-rotated-beneath-a-live-short-lived-token",
  "title": "How should an instance detect that its hardware-bound attestation key silently rotated beneath a live short-lived token?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that mint short-lived identity tokens (JWT/SVID-style) whose signing key is bound to a hardware keystore (TPM, SEV-SNP vTPM, secure enclave) and whose public key is attested into the token's claims. Does not apply to software-only key custody or long-lived bearer credentials.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-its-hardware-bound-attestation-key-silently-rotated-beneath-a-live-short-lived-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-its-hardware-bound-attestation-key-silently-rotated-beneath-a-live-short-lived-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-its-hardware-bound-attestation-key-silently-rotated-beneath-a-live-short-lived-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1606,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is not token expiry and not key compromise. It is **silent key-substitution under a still-valid token**: the hardware keystore re-provisions or re-seals its key material (firmware update, vTPM re-instantiation after live migration, TPM clear on reboot, enclave re-attestation after a host maintenance event), producing a *new* priv...",
    "what_was_observed": "An agent instance running a multi-step tool loop held a 15-minute token minted at T0 with a `cnf.jkt` (JWK thumbprint) referencing hardware key `K1`. At T0+6min the host completed a firmware-triggered vTPM re-instantiation. The keystore re-generated key material and now exposes `K2`; the old `K1` handle is gone. The agent process did not restart, so it never re-ran its startup attestation. The failure trace: 1. Agent...",
    "condition_of_validity": "The invariant that must hold for a token to be *usable* (not merely valid) is: > For every presentation of token `T` bound to key thumbprint `jkt(T)`, the key actually used to produce the accompanying proof-of-possession signature must have thumbprint equal to `jkt(T)`, evaluated against the keystore's *current* key state at signing time. This is a local, ch...",
    "decision_boundary": "When the local thumbprint check fails, the agent faces a fork. The boundary is between **re-attestation** and **fail-closed abort**, and it is decided by whether a re-attestation path exists within the current token's remaining lifetime and the task's remaining budget. - If a fresh attestation quote can be obtained from the keystore and exchanged with the Id...",
    "operational_effect": "With the invariant enforced locally, the failure mode converts from a silent remote rejection loop into an immediate, typed local fault. The agent stops presenting mismatched proofs, the orchestrator sees a distinguishable `AttestationKeyRotated` condition rather than a generic auth failure, and the retry budget is preserved for genuinely transient faults. T..."
  },
  "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": "f598ee3f4a0b5c9d719e4bebb338373bcc80ccd97f72b0afc18ea438b95d70e1",
    "verified_classes": [
      "AttestationKeyRotated",
      "Token",
      "Keystore"
    ],
    "verified_functions": [
      "sign_proof_of_possession",
      "run_tool_step",
      "__init__",
      "current_thumbprint",
      "generation",
      "rotate",
      "sign"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttestationKeyRotated"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
