{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-silently-downgraded-attestation-chain-when-a-hardware-backed-agent-identity-is-re-issued-mid-handshake",
  "title": "How does an instance detect a silently downgraded attestation chain when a hardware-backed agent identity is re-issued mid-handshake?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A handshakes where each peer presents a verifiable credential (VC) whose subject key is hardware-backed (TPM/SE/secure enclave) and whose issuance chain is anchored in a root the verifier trusts. Does not cover bearer-token or purely symmetric-key agent identity, nor single-process in-memory agent calls where no credential exchange occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-downgraded-attestation-chain-when-a-hardware-backed-agent-identity-is-re-issued-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-downgraded-attestation-chain-when-a-hardware-backed-agent-identity-is-re-issued-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-downgraded-attestation-chain-when-a-hardware-backed-agent-identity-is-re-issued-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2133,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the credential is invalid.\" It is \"the credential is valid, the signature verifies, the chain terminates at a trusted root, and yet the key that signed the challenge is not the key the credential was issued for.\" This happens when an agent identity is **re-issued mid-handshake** — a routine event during key rotation, enclave re-provisioni...",
    "what_was_observed": "Concrete trace from an A2A session between agent `orchestrator-7` (verifier) and agent `retriever-3` (prover): 1. **Handshake open (t=0).** `retriever-3` presents VC_0. Subject key `K_0` is an ECDSA P-256 key sealed in a TPM 2.0. VC_0 carries an attestation extension binding `K_0` to a TPM endorsement key `EK_0` and a PCR digest `P_0`. `orchestrator-7` verifies VC_0, extracts `K_0`, stores `(K_0, EK_0, P_0, issuance_...",
    "condition_of_validity": "The continuity invariant holds only if the verifier enforces all of the following; if any is dropped, the downgrade is undetectable: - **Key pinning across the session.** The subject key bound at handshake open (`K_0`) must equal the subject key on every subsequent message, *or* a re-issuance must present a signed \"key-continuity\" statement from the *old* ke...",
    "decision_boundary": "The verifier must decide, at each message, between three states — and the boundary between \"continue\" and \"abort\" is exactly the presence or absence of a re-key proof: The non-obvious case is row 3: everything is individually valid, the rotation is *plausible*, and a naive verifier continues. The decision boundary is not \"is this credential trustworthy\" but ...",
    "operational_effect": "When the invariant is enforced, the failure surfaces as a *typed* abort at message *n*, not as a downstream integrity failure at message *n+k*. This matters because the poisoned state is usually consumed much later — a capability grant exercised, a cached authorization reused, a partial result trusted — and by then the causal link to the key change is unreco..."
  },
  "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": "58cffdbed81587088733addc103c675806b381fed79657b98002773c1910904c",
    "verified_classes": [
      "AttestationContinuityError",
      "AttestationTuple",
      "ReKeyProof"
    ],
    "verified_functions": [
      "verify_message_continuity"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "AttestationContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "endorsement key changed; full re-handshake required",
      "re-key proof does not reference the session's outgoing key",
      "re-key proof does not reference the presented incoming key",
      "re-key proof signature by outgoing key failed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
