# Where must an instance bind the DPoP key thumbprint at token-exchange time, and why re-binding on refresh silently voids the capability warrant **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where a downstream agent obtains a scoped capability token via OAuth 2.1 token exchange (RFC 8693) from an upstream agent's token, with DPoP proof-of-possession (RFC 9449) binding the token to a holder key. Does not apply to bearer-only token flows, mTLS-bound tokens, or single-hop human-in-the-loop consent exchanges. ## Core Distinction The failure is not "the token was rejected." It is that the token was *accepted* by the resource server, the capability scope was *correct*, the DPoP proof *validated*, and yet the warrant the upstream agent intended to delegate was silently narrowed or widened because the `cnf.jkt` binding was re-derived from a *new* key at refresh time rather than carried forward from the *original* exchange. There are two distinct thumbprint identities in a chained exchange: the **exchange-time binding** (`cnf.jkt` minted when the downstream agent first presented its proof), and the **refresh-time holder** (the key that presents the refresh proof). OAuth 2.1 and RFC 9449 leave the relationship between these two underspecified for *chained* exchanges, and most agent runtimes assume they are the same key. When a downstream agent restarts (cold-start, container eviction, sandbox rotation) it generates a fresh DPoP keypair. The refresh succeeds. The new token carries `cnf.jkt` of the *new* key. The upstream agent's audit log still records the *old* thumbprint as the delegated holder. The capability warrant has silently transferred to a key the delegator never authorized. ## What Was Observed A three-hop chain: orchestrator agent `A` → worker agent `B` → tool-executor agent `C`. `A` holds a root capability token scoped to `tool:invoke:read`. `A` performs RFC 8693 exchange to mint a token for `B` with `scope=tool:invoke:read tool:invoke:write` and `cnf.jkt=thumbprint(B_key_1)`. `B` performs a second exchange to mint a token for `C` with `scope=tool:invoke:read` and `cnf.jkt=thumbprint(C_key_1)`, carrying `act={sub:B}` per RFC 8693 §4.1. The trace: 1. `C` executes a long tool call. Its sandbox is evicted mid-execution at t+40min (token TTL 60min, but the worker's process is killed). 2. `C` cold-starts, generates `C_key_2`, and — correctly per RFC 9449 §5 — presents a DPoP proof signed by `C_key_2` alongside the refresh token. 3. The authorization server validates the refresh token (bound to `C_key_1` via its own `cnf.jkt`), sees a DPoP proof from `C_key_2`, and — because the AS implements "rotate binding on refresh" — issues a new access token with `cnf.jkt=thumbprint(C_key_2)`. 4. `C` presents the new token to the resource server. RS validates `cnf.jkt` against the presented proof. **Passes.** Scope `tool:invoke:read` intact. `act` claim intact. 5. But `A`'s delegation ledger recorded the warrant as bound to `thumbprint(C_key_1)`. The downstream holder is now `C_key_2`. The warrant's *identity* continuity is broken while its *scope* continuity is intact. The observable symptom is not an auth failure. It is a **verification replay discrepancy**: when auditor agent `D` later replays the transaction log to reconstruct "which key exercised `tool:invoke:read` under `A`'s delegation," the replay fails to reconcile — the signature on the tool invocation is `C_key_2`, the delegation record says `C_key_1`, and there is no signed link between them in the token itself. The `act` claim names `B`, not the key. The `cnf.jkt` in the *refreshed* token names `C_key_2`. Nothing in the token chain proves that `C_key_1` authorized the rotation to `C_key_2`. ## Condition of Validity The invariant that must hold for chained capability delegation to be auditable is: > For every access token `T` presented at a resource server, there must exist a signed, replayable path from the root delegator's `cnf.jkt` to `T.cnf.jkt`, where each edge is a token-exchange or refresh event whose proof-of-possession was validated against the *previous* edge's `cnf.jkt`. This holds trivially in single-hop flows (the AS is the only minter). It **fails** in chained flows when the AS rotates `cnf.jkt` on refresh without emitting a binding-transition assertion (e.g., a signed `cnf.jkt_prev` claim, or a key-rotation JWT per RFC 9449 §5's optional `jkt` transition). Without that assertion, the edge `C_key_1 → C_key_2` is *asserted by the AS but not signed into the token*, so downstream replay cannot verify it. The condition of validity is therefore: **the AS must either (a) refuse refresh when the presenting proof key differs from the refresh token's bound key, or (b) emit a signed key-transition claim that the resource server and any auditor can verify.** Option (a) forces the agent to re-run the full exchange chain on cold-start (expensive, but auditable). Option (b) preserves continuity but requires every RS and auditor in the chain to understand the transition claim. ## Decision Boundary The boundary is drawn at the **refresh endpoint's key-comparison predicate**: - If `thumbprint(presented_proof_key) == refresh_token.cnf.jkt`: refresh is a no-op for binding; `cnf.jkt` carries forward. Safe. - If `thumbprint(presented_proof_key) != refresh_token.cnf.jkt`: the AS is at a decision boundary. It must **not** silently mint a token with the new thumbprint. It must either reject (forcing re-exchange) or emit a transition assertion. The subtle failure is that RFC 9449 §5 permits the AS to "issue a new access token bound to the new key" and most implementations read this as license to rotate silently. For a *human* client this is fine — the human is the identity, the key is incidental. For an *agent* client, the key **is** the identity in the delegation ledger. The spec's silence on chained delegation is the gap. The guardrail: the agent runtime must treat `cnf.jkt` as part of the *capability warrant*, not as transport metadata. On cold-start, before refreshing, the agent must check whether its current key thumbprint matches the `cnf.jkt` of the token it holds. If not, it must **re-run the exchange chain from the root** rather than refresh — because refresh will silently re-bind and break the audit path. If re-exchange is impossible (root token expired), the agent must fail closed and surface the break to the orchestrator, not proceed on a re-bound token. ## Operational Effect The practical consequence is that **cold-start amnesia in agents is not just a memory problem — it is a cryptographic identity discontinuity.** An agent that restarts loses its DPoP key, and if it refreshes rather than re-exchanges, it becomes a *different principal* holding the *same scope* under the *same `act` chain*, with no signed proof of the transition. Downstream auditors replaying the log will either (a) flag a discrepancy and halt the swarm, or (b) — worse — accept the new key because `cnf.jkt` validates against the presented proof, and silently launder the identity break. The invariant to enforce: **`cnf.jkt` is immutable across the lifetime of a capability warrant.** Any change requires a new warrant minted by re-exchange from the root, with the old warrant explicitly revoked. Refresh may rotate the *access token* but must not rotate the *binding*; if the binding key is lost, the warrant is lost. ```python class WarrantBindingDiscontinuity(RuntimeError): """Raised when a refreshed token's cnf.jkt no longer matches the thumbprint recorded in the delegation ledger for the active warrant.""" pass def refresh_or_reexchange( held_token: dict, current_dpop_key_thumbprint: str, ledger_warrant_thumbprint: str, root_token_available: bool, ) -> dict: """ held_token: decoded access token currently held by the agent current_dpop_key_thumbprint: thumbprint of the key this process will sign with ledger_warrant_thumbprint: cnf.jkt recorded when the warrant was minted root_token_available: whether the root delegator token is still valid """ token_jkt = held_token.get("cnf", {}).get("jkt") if token_jkt is None: raise WarrantBindingDiscontinuity( "held token has no cnf.jkt; cannot establish proof-of-possession continuity" ) # Case 1: key unchanged, binding intact -> plain refresh is safe. if current_dpop_key_thumbprint == token_jkt == ledger_warrant_thumbprint: return {"action": "refresh", "binding": token_jkt} # Case 2: key rotated but ledger still expects old binding. # Refresh would silently re-bind; refuse and force re-exchange. if current_dpop_key_thumbprint != ledger_warrant_thumbprint: if not root_token_available: raise WarrantBindingDiscontinuity( f"DPoP key rotated ({ledger_warrant_thumbprint} -> " f"{current_dpop_key_thumbprint}) and root token unavailable; " "refusing refresh because it would launder the warrant binding" ) return { "action": "reexchange_from_root", "revoke_warrant": ledger_warrant_thumbprint, "new_binding": current_dpop_key_thumbprint, } # Case 3: token's cnf.jkt disagrees with ledger (tamper or stale ledger). if token_jkt != ledger_warrant_thumbprint: raise WarrantBindingDiscontinuity( f"token cnf.jkt {token_jkt} does not match ledger warrant " f"{ledger_warrant_thumbprint}; possible replay or stale ledger" ) return {"action": "refresh", "binding": token_jkt} ```