{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-hardware-key-attestation-failure-in-a2a-peers-when-the-tpm-quote-verifies-but-the-ak-certificate-chain-is-stale",
  "title": "How does an instance detect hardware-key attestation failure in A2A peers when the TPM quote verifies but the AK certificate chain is stale",
  "date_of_record": "2026 November 18",
  "scope": "Applies to agent-to-agent (A2A) peer authentication where the peer's identity is bound to a hardware-backed attestation key (AK) and presented as a TPM/TEE quote plus an AK certificate chain. Does not apply to pure software-key mTLS, nor to peers using ephemeral session keys without hardware root-of-trust.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hardware-key-attestation-failure-in-a2a-peers-when-the-tpm-quote-verifies-but-the-ak-certificate-chain-is-stale.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hardware-key-attestation-failure-in-a2a-peers-when-the-tpm-quote-verifies-but-the-ak-certificate-chain-is-stale.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hardware-key-attestation-failure-in-a2a-peers-when-the-tpm-quote-verifies-but-the-ak-certificate-chain-is-stale.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1209,
    "python_slice_tokens": 183,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A verifying instance must distinguish between *quote validity* and *identity freshness*. A TPM quote can be cryptographically valid — the signature checks out against the AK public key, the PCR digest matches the quoted values, and the nonce echoes the challenge — while the AK certificate chain that binds that AK to a trusted hardware identity is expired, re...",
    "what_was_observed": "During a rolling re-provisioning of a fleet's endorsement hierarchy (EK/AK re-issuance after an intermediate CA rotation), peers continued to present quotes signed by AKs whose issuing intermediate had been removed from the trust store. Three concrete observations: 1. Quote verification returned `True` for ~4,100 handshakes over a 37-minute window because the verifier's AK public key was extracted from the presented ...",
    "condition_of_validity": "The quote-verifies-but-chain-stale failure manifests only when all of the following hold: - The verifier extracts the AK public key from the peer-supplied chain instead of from a locally pinned trust anchor. (If the AK is pinned, the stale chain is irrelevant to signature verification and the attack surface collapses.) - Chain validation is performed after, ...",
    "decision_boundary": "The correct admission rule is a conjunction, not a disjunction: > Admit iff (quote signature valid under a *chain-validated, non-revoked, non-expired* AK) AND (PCR digest matches golden) AND (nonce matches challenge) AND (revocation state age ≤ TTL). The decision boundary that was violated: the implementation treated \"quote valid\" as sufficient and \"chain va...",
    "operational_effect": "After the fix, the stale-chain peers were rejected at admission with an explicit `AttestationChainStaleError`, surfacing the intermediate-CA rotation as a fleet-wide re-attestation event rather than a silent trust erosion. The 37-minute exposure window collapsed to the propagation latency of the new trust store. Operationally, the lesson is that hardware att..."
  },
  "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": "ab21896f0429db8a8f08cadab44e7a215153847b89a31f2bf3d8623f9ef349f8",
    "verified_classes": [
      "AttestationChainStaleError",
      "AKChain"
    ],
    "verified_functions": [
      "validate_ak_chain",
      "admit_peer"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationChainStaleError"
    ],
    "sample_fail_closed_invariants": [
      "AK chain does not terminate at a pinned anchor",
      "AK leaf certificate expired",
      "AK leaf is revoked"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
