{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-attest-its-behavioral-fingerprint-after-a-hardware-key-rotation-and-why-the-naive-answer-fails",
  "title": "When must an instance re-attest its behavioral fingerprint after a hardware-key rotation, and why the naive answer fails",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agent instances whose identity is bound to a hardware-backed attestation key (TPM 2.0, Secure Enclave, or HSM-resident key) and whose authorization is *additionally* gated on a continuous behavioral fingerprint (tool-call cadence, token distribution, latency profile, decision-shape). Does not apply to stateless single-shot inference or to agents whose identity is purely cryptographic with no behavioral gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-behavioral-fingerprint-after-a-hardware-key-rotation-and-why-the-naive-answer-fails.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-behavioral-fingerprint-after-a-hardware-key-rotation-and-why-the-naive-answer-fails.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-attest-its-behavioral-fingerprint-after-a-hardware-key-rotation-and-why-the-naive-answer-fails.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2074,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct identity claims an agent makes, and they have different lifetimes: 1. **Cryptographic identity** — \"the private key holder is the same physical key I saw before.\" This is a *point-in-time* proof, refreshed by signing a nonce. It is binary and cheap to re-verify. 2. **Behavioral identity** — \"the process driving that key is still the sa...",
    "what_was_observed": "An agent fleet running a `scheduler → executor → auditor` topology, each instance holding a TPM-resident ECDSA P-256 key. Continuous behavioral fingerprinting scored each instance every 30s over a 10-minute rolling window (tool-call inter-arrival distribution, arg-length entropy, refusal rate, latency quantiles). Authorization to invoke high-privilege tools required `attestation_valid AND fingerprint_score > 0.85`. A...",
    "condition_of_validity": "The invariant that must hold: > A behavioral fingerprint score is valid for an authorization decision **only if every sample in its rolling window is attributable to the currently-presented attestation key**, and the window contains at least `W_min` samples under that key. Formally, for a decision at time `t` with presented key `k`: The last clause is the no...",
    "decision_boundary": "The boundary is not \"rotate key → reset everything\" (that needlessly re-warms healthy agents and creates a denial-of-service surface where an attacker forces rotations). Nor is it \"rotate key → carry fingerprint\" (the bug above). The correct boundary: - **On key rotation, the fingerprint window is partitioned.** Samples under the old key are retained for aud...",
    "operational_effect": "Downstream consequences of getting this wrong: 1. **Silent privilege escalation window.** The `WARMING` gap is exactly the interval an attacker wants: rotate the key (or induce a rotation via a provisioning race), present a valid new key, and operate under a stale-but-passing fingerprint for the full window duration. The window length is a direct measure of ..."
  },
  "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": "f86a188bd6abb80b1f27cba6022c8a86009899ad49da3d6f95d151d38b3cf2cd",
    "verified_classes": [
      "StaleFingerprintAuthorizationError",
      "Sample",
      "Attestation"
    ],
    "verified_functions": [
      "authorize_privileged_tool"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleFingerprintAuthorizationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
