# When must an instance treat a rotated Agent Card as a new principal rather than a continuation of the old one **Date of Record:** 2026 November 22 **Scope:** Applies to A2A-style agent-to-agent handshakes where the caller validates a remote Agent Card via a cross-issuer trust chain (root CA → intermediate issuer → leaf signing key bound to the card) and where the remote agent rotates its card or signing key mid-delegation. Does not apply to single-issuer mTLS pinning without a card document, nor to stateless one-shot RPC where no delegation warrant is carried across the rotation boundary. ## Core Distinction The load-bearing distinction is between **card continuity** (the same logical agent, same issuer lineage, same capability envelope, key material rotated) and **principal continuity** (the same authority to act on behalf of the delegating party, with the same scope and the same audit identity). A2A card rotation collapses these two only when the trust chain is intact *and* the warrant was issued against the card's stable identity, not against its signing key. The failure mode is subtle: a rotated card that validates cleanly against the *original* issuer's chain looks like a continuation, but if the rotation was performed by a *different* intermediate issuer that happens to chain to the same root, the caller is now trusting a principal it never evaluated. The invariant is: **a card may rotate keys freely under the same issuer; a card that changes issuer lineage is a new principal and must re-run capability and warrant evaluation, not just signature verification.** ## What Was Observed A delegating orchestrator (caller) held a long-running delegation to a remote "settlement" agent. The original card was issued by `issuer-A` (intermediate under root `R`), carried capability `settle:txn` with a scope bound to a specific tenant, and the caller had cached the card plus a warrant token `W` minted by the caller's own authority referencing the card's `agent_id` and `key_thumbprint`. At T+40min the remote agent rotated: new signing key, new card document, but the new card was signed by `issuer-B` — a sibling intermediate under the same root `R` that the remote operator had migrated to during a key-compromise response. The caller's verification path did the following: 1. Fetched the new card. 2. Verified the card signature chains to root `R` (true — both `issuer-A` and `issuer-B` chain to `R`). 3. Checked `agent_id` matched the cached value (true — the remote reused the ID). 4. Re-verified warrant `W` against `agent_id` and `key_thumbprint` — but `key_thumbprint` had been updated from the *new* card, so the check passed against the *new* key. Result: the caller accepted `issuer-B` as a continuation of `issuer-A`. But `issuer-B` had a *different* capability policy: it did not enforce the tenant scope binding that `issuer-A` applied, because `issuer-B`'s issuance profile predated the tenant-scoping rollout. The remote agent then executed `settle:txn` against a tenant outside the original scope. The caller's audit log showed a continuous `agent_id` with no rotation event, because the caller never recorded issuer lineage as part of card identity. The trace was: `card_v1(issuer-A, key=k1) → warrant W(agent_id, thumbprint=k1) → rotation → card_v2(issuer-B, key=k2) → verify chain to R ✓ → agent_id match ✓ → thumbprint re-bound to k2 ✓ → warrant W accepted → scope check skipped (issuer-B profile) → out-of-scope settle`. ## Condition of Validity The failure requires all of the following to coincide, which is why it is rare but not exotic: - **Shared root, divergent intermediates.** The rotation crosses intermediate issuers under a common root. If rotation stays within one issuer, the chain check is a genuine continuity check and the bug does not fire. - **Stable `agent_id` across rotation.** The remote operator reuses the logical agent identifier. If rotation also changes `agent_id`, the caller's warrant check fails closed and the bug is masked. - **Warrant bound to key thumbprint, re-read from the live card.** The caller re-derives the thumbprint from the presented card rather than from a pinned value in the warrant. This is the actual defect: the warrant should bind the thumbprint it was *issued against*, and a mismatch should force re-issuance. - **Issuer-scoped policy differences.** The two intermediates enforce different capability or scope profiles. If both intermediates apply identical policy, the cross-issuer acceptance is harmless in effect (though still wrong in principle). When any of these is absent the invariant holds by accident. The condition of validity is therefore: *the caller must be able to distinguish "same issuer, new key" from "new issuer, same ID," and must treat the latter as a principal change.* ## Decision Boundary The decision boundary is a single predicate evaluated at card acceptance: ``` continuation := (chain_root(new) == chain_root(cached)) AND (issuer_lineage(new) == issuer_lineage(cached)) AND (agent_id(new) == agent_id(cached)) AND (warrant.thumbprint == thumbprint_at_issuance) ``` If `continuation` is true, update the cached card and proceed with the existing warrant. If `continuation` is false **for any reason**, the caller must: 1. Treat the presented card as a *new principal*. 2. Re-run capability negotiation against the new issuer's declared profile. 3. Invalidate the existing warrant `W` and require re-issuance bound to the new thumbprint and new issuer lineage. 4. Emit a `principal_rotation` audit event with both issuer lineages, even if `agent_id` is unchanged. The non-obvious part: **step 3 must not be satisfied by re-binding the old warrant to the new thumbprint.** That is exactly the mutation that produced the observed failure. The warrant is a statement by the delegating authority about *which principal* may act; a principal change voids it regardless of key continuity. ## Operational Effect After the fix, the caller's behavior under rotation is: - **Same-issuer key rotation:** seamless, warrant preserved, no re-negotiation. This is the common case and must stay cheap. - **Cross-issuer rotation:** delegation pauses, warrant is voided, capability re-negotiation runs against the new issuer profile, and a new warrant is minted. Latency cost is one round-trip plus re-evaluation; correctness cost of *not* doing this is out-of-scope execution under a stale authority. - **Audit continuity:** `agent_id` alone is no longer a sufficient correlation key. The audit index must be `(agent_id, issuer_lineage, key_thumbprint)` so that a rotation that changes lineage is visible as a principal event rather than a silent key update. The guardrail is a hard invariant: *a warrant is bound to the triple (agent_id, issuer_lineage, key_thumbprint) at issuance; any divergence in the triple voids the warrant and forces re-issuance.* The caller must never re-derive the thumbprint from the presented card when validating an existing warrant. ```python from dataclasses import dataclass from typing import Optional class PrincipalRotationError(RuntimeError): """Raised when a presented Agent Card represents a different principal than the one the active warrant was issued against.""" @dataclass(frozen=True) class CardIdentity: agent_id: str issuer_lineage: tuple # e.g. ("R", "issuer-A") key_thumbprint: str @dataclass(frozen=True) class Warrant: agent_id: str issuer_lineage: tuple key_thumbprint: str scope: str def accept_rotated_card( cached: CardIdentity, presented: CardIdentity, warrant: Optional[Warrant], root_of, ) -> Warrant: """Validate a rotated Agent Card and return the warrant to use. Continuation requires identical agent_id, identical issuer lineage, and a warrant whose bound thumbprint matches the *issuance-time* thumbprint. Any divergence is a principal change and voids the warrant. """ if root_of(presented.issuer_lineage) != root_of(cached.issuer_lineage): raise PrincipalRotationError( f"root changed: {cached.issuer_lineage} -> {presented.issuer_lineage}" ) if presented.agent_id != cached.agent_id: raise PrincipalRotationError( f"agent_id changed: {cached.agent_id} -> {presented.agent_id}" ) if presented.issuer_lineage != cached.issuer_lineage: # Same root, different intermediate: NEW PRINCIPAL. raise PrincipalRotationError( "issuer lineage diverged under shared root; " f"{cached.issuer_lineage} -> {presented.issuer_lineage}; " "warrant voided, re-negotiate capabilities and re-issue" ) if warrant is None: raise PrincipalRotationError("no active warrant to continue") if warrant.key_thumbprint != presented.key_thumbprint: # Key rotated under same issuer: acceptable continuation, but the # warrant must have been issued against the current key or be # explicitly re-bound by the issuing authority (not by the caller). raise PrincipalRotationError( "warrant thumbprint does not match presented key; " "caller must not re-bind, issuer must re-issue" ) return warrant ```