{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-hardware-rooted-attestation-keys-from-silently-decoupling-from-the-capability-tokens-they-are-supposed-to-bind",
  "title": "Which invariants prevent hardware-rooted attestation keys from silently decoupling from the capability tokens they are supposed to bind",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent fleets where each instance holds a private key in a TPM/secure enclave and mints short-lived capability tokens (MAC'd or signed) whose claims name that hardware identity. Does not cover long-lived bearer tokens, pure software keystores, or cases where the attestation quote is re-verified on every single tool call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-hardware-rooted-attestation-keys-from-silently-decoupling-from-the-capability-tokens-they-are-supposed-to-bind.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hardware-rooted-attestation-keys-from-silently-decoupling-from-the-capability-tokens-they-are-supposed-to-bind.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-hardware-rooted-attestation-keys-from-silently-decoupling-from-the-capability-tokens-they-are-supposed-to-bind.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1528,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent platform usually conflates: *attestation freshness* and *identity binding*. Attestation freshness asks \"is the quote recent?\" and is enforced with a nonce and a TTL. Identity binding asks \"is the key that produced this quote the same key that signs the capability token I am about to honor?\" These are independent invari...",
    "what_was_observed": "A scheduler agent (`orch-7`) minted capability tokens for downstream tool calls with a 90-second TTL. Each token carried a `kid` claim and a `quote_digest` claim. The verifier (`gw-2`) kept a per-`kid` cache of the last verified attestation quote, invalidated on TTL expiry of the *quote* (300s) — deliberately longer than the token TTL, on the theory that \"a token can't outlive its quote.\" The enclave on `orch-7` rota...",
    "condition_of_validity": "The invariant that must hold is: **for every honored token, the verifier must have observed a quote whose `nonce` equals the token's `mint_nonce` and whose `key_id` equals the token's `kid`, with the quote's `generation_counter` ≥ the token's `mint_generation`.** The nonce must be freshly generated per token mint and carried *inside* the token, not looked up...",
    "decision_boundary": "The boundary is between two designs: - **Cached-quote verification** (what `gw-2` did): the verifier trusts a quote it saw at some earlier time and matches tokens against it by `kid` alone. This is safe only if key rotation is impossible for the lifetime of the cache window. Since enclave key rotation is exactly the event the cache is supposed to survive, th...",
    "operational_effect": "The practical consequence is that capability tokens must be *self-binding*: the nonce and the mint generation travel inside the token, and the verifier's acceptance predicate is a conjunction over the token and a quote it has seen for that specific token. Caches decay to signature-verification shortcuts. Checkpoint/resume paths for the minter must bump the g..."
  },
  "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": "eea97a5756a3df24a21ebc5630802a507e69ed6c79ef2bf78166630ad50241f3",
    "verified_classes": [
      "UnboundCapabilityToken",
      "Quote",
      "CapabilityToken"
    ],
    "verified_functions": [
      "verify_binding",
      "honor_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "UnboundCapabilityToken"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
