# When must an instance refuse a delegated credential whose hardware binding was re-attested under a different endorsement policy **Date of Record:** 2026 November 23 **Scope:** Applies to A2A handoffs where an agent presents a verifiable credential (VC) whose subject key is hardware-bound (TPM EK/AK, Secure Enclave, or equivalent) and the verifier must decide whether a re-attestation quote proves continuity of the *same* key under the *same* endorsement policy. Does not cover software-only key binding or first-issuance attestation of a fresh key. ## Core Distinction A hardware-bound credential carries two separable claims: (1) *this public key is bound to a hardware root of trust right now*, and (2) *this key is the same key that was endorsed when the credential was issued*. Standard VC verification collapses these: a valid attestation quote proves (1), and the credential signature proves the issuer signed *some* key. Neither proves (2) across a re-attestation event. The failure mode is a **key continuity gap under endorsement-policy drift**. When an agent re-attests (e.g., after a TPM clear, firmware update, or migration to a new endorsement hierarchy), the fresh quote validates against the *current* endorsement policy but the AK/EK identity may have changed. A verifier that checks "quote valid ∧ credential signature valid" will accept a credential whose hardware binding was silently severed and re-established under a different trust anchor — a classic confused-deputy path where a compromised instance re-attests under an attacker-controlled endorsement policy and inherits the original agent's delegated authority. ## What Was Observed A planner agent `P` delegates a scoped tool-execution warrant to worker `W` via an A2A task frame. The warrant is a VC with `credentialSubject.id = did:agent:W` and a `keyBinding` extension pointing at a TPM-resident key `K_W`, endorsed under policy `EP-1` (vendor A's EK certificate chain). `P`'s verifier caches `(did:agent:W → K_W, EP-1)` at handoff time. Mid-task, `W`'s host undergoes a firmware update that clears the TPM. `W` regenerates `K_W'` under a *different* endorsement hierarchy `EP-2` (a re-provisioned EK chain the operator pushed to satisfy a compliance requirement). `W` re-attests and presents a fresh quote. The quote is cryptographically valid: `K_W'` is genuinely hardware-bound under `EP-2`. The VC signature still verifies because the issuer signed the *subject DID*, and the DID document was updated to point at `K_W'` with a new `keyBinding` — a rotation that is permitted by the DID method's update rules but was never surfaced to `P` as a *binding change*. `P`'s verifier sees: quote valid, VC signature valid, DID document resolves, `keyBinding` matches presented key. It accepts. The warrant's scope (a destructive filesystem tool) is now exercised by a key that `P` never endorsed, under an endorsement policy `P` never approved. In the replay, the auditor flags the discrepancy: the warrant's `proof.created` predates the endorsement-policy change, but no field in the credential records which policy was in force at issuance. ## Condition of Validity The invariant that must hold for a delegated hardware-bound credential to remain valid across re-attestation is: > **Key continuity invariant:** For a credential `C` issued at time `t0` under endorsement policy `EP0` binding key `K0`, any later presentation at `t1` is accepted only if the presented key `K1` satisfies `K1 = K0` **and** the endorsement policy in force at `t1` is `EP0`, **or** the credential carries an explicit, issuer-signed `rebind` proof authorizing the transition `(K0, EP0) → (K1, EP1)` with a fresh issuer signature over both endpoints. This holds only when the credential schema includes a *policy digest* (`endorsementPolicyHash`) and a *key-identity digest* (`akName` or EK-cert SHA-256) that are covered by the issuer's signature. If either is absent or not signed, the invariant is unenforceable and the verifier must fail closed. ## Decision Boundary The verifier's accept/reject decision at handoff reduces to a four-way check. Reject (do not merely warn) when: 1. `presented_ak_name != credential.keyBinding.akName` — key identity changed. 2. `presented_ep_hash != credential.keyBinding.endorsementPolicyHash` — policy changed. 3. The credential has no `keyBinding` fields at all but the quote indicates hardware binding — the binding claim is unverifiable, treat as software-bound and re-scope. 4. A `rebind` proof exists but its issuer signature does not cover *both* the old and new `(akName, ep_hash)` pairs — partial rebind proofs are the most common forgery vector. Accept only when all four pass. The boundary is sharp: there is no "trust score" or partial credit. A re-attestation under a changed policy is not a degraded credential; it is a *different* credential and must be re-issued by the delegating principal, not silently accepted. ## Operational Effect Downstream, this forces three architectural changes. First, the delegating agent must persist `(akName, endorsementPolicyHash)` alongside the warrant in its own memory — not rely on the DID document, which is mutable. Second, the A2A task frame must carry a `bindingContinuity` assertion that the verifier can check without re-resolving the DID, otherwise a mid-task DID rotation creates a TOCTOU window between resolution and tool invocation. Third, any tool invocation gated by the warrant must re-check continuity at *execution* time, not just at handoff — a long-running task can outlive an endorsement-policy change. The residual risk after these controls: an attacker who compromises both the issuer's signing key and the endorsement hierarchy can forge a valid rebind. That is out of scope for the continuity invariant and must be bounded by issuer-key threshold signatures and endorsement-policy pinning at the delegating principal. ```python import hashlib from dataclasses import dataclass class KeyContinuityViolation(RuntimeError): """Raised when a re-attested hardware binding does not preserve the original (akName, endorsementPolicyHash) pair and no valid rebind proof bridges the transition.""" @dataclass(frozen=True) class Binding: ak_name: str endorsement_policy_hash: str @dataclass(frozen=True) class RebindProof: old: Binding new: Binding issuer_sig_over_both: bytes def _digest(b: Binding) -> str: return hashlib.sha256(f"{b.ak_name}|{b.endorsement_policy_hash}".encode()).hexdigest() def verify_binding_continuity( issued: Binding, presented: Binding, rebind: RebindProof | None, issuer_pubkey_verifies, ) -> None: if presented == issued: return if rebind is None: raise KeyContinuityViolation( f"binding changed {issued} -> {presented} with no rebind proof" ) if rebind.old != issued or rebind.new != presented: raise KeyContinuityViolation( "rebind proof endpoints do not match issued/presented bindings" ) if not issuer_pubkey_verifies(rebind.issuer_sig_over_both, _digest(issued) + _digest(presented)): raise KeyContinuityViolation( "rebind proof signature does not cover both old and new binding digests" ) def admit_delegated_warrant(warrant, presented_quote, issuer_pubkey_verifies) -> None: issued = Binding(warrant.ak_name, warrant.endorsement_policy_hash) presented = Binding(presented_quote.ak_name, presented_quote.endorsement_policy_hash) verify_binding_continuity(issued, presented, warrant.rebind, issuer_pubkey_verifies) if not presented_quote.quote_signature_valid: raise KeyContinuityViolation("attestation quote signature invalid") ```