# When must an instance refuse a DPoP-bound A2A handoff because the delegation warrant and the proof-of-possession key disagree on the channel binding **Date of Record:** 2026 November 24 **Scope:** Applies to agent-to-agent (A2A/MCP) sessions where a caller instance presents an mTLS client certificate, a DPoP proof (`htm`/`htu`/`jti`/`iat` + `cnf.jkt` thumbprint), and a signed delegation warrant carrying a `cnf` claim, and where the downstream payload is end-to-end encrypted under a key derived from the handshake. Does not cover bearer-token-only transports or single-hop calls where the warrant is consumed by the same instance that minted it. ## Core Distinction The failure is not "the signature is invalid." Every cryptographic primitive verifies. The failure is that **two independently-correct bindings point at different keys**, and the session proceeds because each layer only checks its own half. There are three key identities in a compliant handshake: 1. `jkt_mtls` — the RFC 8705 thumbprint of the client certificate actually presented in the TLS handshake. 2. `jkt_dpop` — the `cnf.jkt` claimed by the DPoP proof's JWK, confirmed by verifying the proof signature. 3. `jkt_warrant` — the `cnf.jkt` embedded in the delegation warrant's `cnf` claim, asserted by the *issuing* instance about the *subject* instance. A correct implementation requires `jkt_mtls == jkt_dpop == jkt_warrant`. The non-obvious boundary is that **DPoP validation and warrant validation are usually performed by different code paths against different trust stores**, and neither is required to compare its result to the other. A delegated agent that rotates its DPoP key mid-delegation, or an issuer that mints a warrant against a *pre-registration* key rather than the *live* certificate key, produces a session where the proof is valid, the warrant is valid, the mTLS channel is authenticated — and the end-to-end payload key is derived from the wrong identity. The invariant to defend: **the key that decrypts the payload must be the key the warrant authorized, and that must be the key that proved possession on this exact channel.** ## What Was Observed A three-tier pipeline: orchestrator `O` delegates a scoped task to worker `W` via a warrant `warrant(O→W)`. `W` then opens an mTLS channel to a downstream service `S`, presenting: - client cert `C_W` (thumbprint `jkt_mtls = A1`) - DPoP proof signed by a freshly generated ephemeral key `K_eph` (`jkt_dpop = B2`) - warrant `warrant(O→W)` with `cnf.jkt = A1` (bound at delegation time to `W`'s *long-lived* cert) The handshake completed. `S` validated: - mTLS chain against the CA — pass. - DPoP proof: signature valid over `htm=POST`, `htu=https://s.internal/a2a`, `jti` unseen, `iat` within 60s skew — pass. `S` recorded `jkt_dpop = B2` as the session's possession key. - Warrant: signature valid against `O`'s public key, scope covers the requested action, not expired, `cnf.jkt = A1` — pass. `S` recorded `jkt_warrant = A1` as the authorized subject. No layer compared `B2` to `A1`. The end-to-end payload key was derived as `HKDF(ECDH(K_eph, S_pub), info="a2a-e2e")` — i.e., bound to `B2`. The audit log recorded the session as authorized under a warrant bound to `A1`. The mismatch was invisible until a replay test: an attacker who captured the DPoP proof and the ephemeral public key could re-present them from a *different* certificate (`jkt_mtls = A9`) and, because `S` never re-checked `jkt_mtls == jkt_dpop`, the proof still validated — the proof does not commit to the TLS channel unless the implementation explicitly binds it. The secondary observation: when `W` retried after a timeout, it regenerated `K_eph` (new `jkt_dpop = C3`) but reused the same warrant. The second handshake also passed. Three sessions, three distinct `jkt_dpop` values, one warrant, all logged as valid. The warrant's `cnf` had become decorative. ## Condition of Validity The three-way equality is only *required* under all of the following; outside them, weaker bindings are defensible: - The warrant is **delegation-bearing** (it authorizes `W` to act toward `S`, not just to authenticate to `O`). A warrant that only authenticates `W` to `O` needs no `cnf` at all. - The transport is **multi-hop** — `S` did not itself issue the warrant and cannot re-derive `W`'s key from its own registry. - The payload is **end-to-end encrypted** with a key derived from handshake material. If the payload is TLS-protected only, the mTLS layer already binds the channel and the DPoP/warrant mismatch is an audit defect, not a confidentiality breach. - The DPoP key is **ephemeral or rotatable** per session. If `K_dpop` is pinned to the same cert as `jkt_mtls` for the instance's lifetime, the mismatch cannot arise and the check is redundant (but cheap). The invariant is **not** valid when the warrant carries an explicit `cnf.jkt` that the issuer intends to be *channel-independent* (e.g., a warrant meant to survive transport re-negotiation). In that case the correct binding is `jkt_dpop == jkt_warrant` with `jkt_mtls` checked separately for channel authentication only — the three-way equality would over-constrain legitimate re-keying. ## Decision Boundary The receiving instance `S` must make one decision at the point where the DPoP proof, the warrant, and the TLS peer certificate are all in hand, and before any payload key is derived: - **Admit** only if `jkt_mtls == jkt_dpop == jkt_warrant`, where `jkt_mtls` is computed from the *negotiated* peer certificate (not a header, not a claim), `jkt_dpop` is computed from the *verified* proof JWK, and `jkt_warrant` is read from the *verified* warrant's `cnf`. - **Reject** if any pair disagrees, with a distinct error class — not a generic 401 — so the caller can distinguish "your proof is bad" from "your warrant is bound to a different key than you proved." - **Never** derive the E2E payload key from `K_eph` alone. Derive it from `HKDF(ECDH, info=concat(jkt_mtls, jkt_dpop, jkt_warrant, session_nonce))` so that a mismatch produces a decryption failure at the peer rather than a silent mis-binding at the receiver. - **Bind the proof to the channel**: include the TLS exporter (`RFC 5705` / `tls-exporter` channel binding) in the DPoP `htu` or a dedicated `cnf` extension, so a proof captured on channel 1 cannot be replayed on channel 2 even if `jkt_dpop` matches. The boundary is sharp: the check must happen **after** all three verifications complete and **before** key derivation. An implementation that checks mTLS at connection setup, DPoP at request parse, and warrant at authorization, in that order, will *always* pass — because no single stage sees all three. ## Operational Effect Without the three-way check, the delegation warrant degrades from a capability to a bearer credential: possession of a valid warrant plus *any* valid DPoP proof from *any* key satisfies the receiver. The blast radius is bounded by the warrant's scope and TTL, but within that window a compromised `W` (or an attacker who exfiltrated the warrant) can present it from an arbitrary keypair, and the receiver's audit trail will attribute the action to `A1` while the payload was encrypted to `B2`. Incident response cannot reconstruct which key actually acted. With the check, key rotation mid-delegation becomes an explicit re-delegation event: `W` must obtain a fresh warrant bound to its new `jkt`, or the issuer must support a `cnf` rotation proof. This is the correct cost — it forces the delegation graph to stay consistent with the key graph. The secondary effect is on retry semantics: a retried handshake that regenerates `K_eph` must also be recognized as a *new* session, not a resumption of the old one. Receivers that cache session state by `jti` alone will accept the retry under the stale binding; receivers that key session state by `(jkt_dpop, jkt_warrant, session_nonce)` will correctly reject the regenerated key against the old warrant. ```python import hashlib import hmac class ChannelBindingMismatch(RuntimeError): """Raised when mTLS, DPoP, and warrant key bindings disagree.""" pass class PayloadKeyDerivationError(RuntimeError): """Raised when E2E payload key cannot be bound to a consistent identity triple.""" pass def jkt_from_jwk(jwk: dict) -> str: # RFC 7638 thumbprint; canonical member order per key type. if jwk["kty"] == "EC": members = f'{{"crv":"{jwk["crv"]}","kty":"EC","x":"{jwk["x"]}","y":"{jwk["y"]}"}}' elif jwk["kty"] == "RSA": members = f'{{"e":"{jwk["e"]}","kty":"RSA","n":"{jwk["n"]}"}}' else: raise ChannelBindingMismatch(f"unsupported kty {jwk['kty']}") return _b64url(hashlib.sha256(members.encode()).digest()) def _b64url(b: bytes) -> str: import base64 return base64.urlsafe_b64encode(b).rstrip(b"=").decode() def admit_a2a_handshake( peer_cert_der: bytes, dpop_proof_jwk: dict, warrant_claims: dict, tls_exporter: bytes, session_nonce: bytes, ) -> bytes: """ Enforce jkt_mtls == jkt_dpop == jkt_warrant before deriving the E2E key. Returns the derived payload key only on full agreement. """ jkt_mtls = _b64url(hashlib.sha256(peer_cert_der).digest()) jkt_dpop = jkt_from_jwk(dpop_proof_jwk) jkt_warrant = warrant_claims.get("cnf", {}).get("jkt") if jkt_warrant is None: raise ChannelBindingMismatch("warrant missing cnf.jkt; cannot bind delegation") if not (jkt_mtls == jkt_dpop == jkt_warrant): raise ChannelBindingMismatch( f"binding disagreement: mtls={jkt_mtls} dpop={jkt_dpop} warrant={jkt_warrant}" ) # Bind the proof to this exact TLS channel so a captured proof cannot be # replayed on a different certificate even if jkt_dpop matches. expected_binding = hmac.new( tls_exporter, session_nonce + jkt_dpop.encode(), hashlib.sha256, ).digest() if not hmac.compare_digest(expected_binding, warrant_claims.get("chan_bind", b"")): raise ChannelBindingMismatch("DPoP proof not bound to negotiated TLS channel") # Derive payload key from the agreed triple, not from K_eph alone. info = b"a2a-e2e|" + jkt_mtls.encode() + b"|" + jkt_dpop.encode() + b"|" + jkt_warrant.encode() if len(info) == 0: raise PayloadKeyDerivationError("empty derivation info") return hmac.new(tls_exporter, info + session_nonce, hashlib.sha256).digest() ```