# Under what conditions must an instance reject a delegated task whose signed warrant chains to a re-published agent card **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 cross-org task delegation where the delegating agent's identity is bound to a signed AgentCard and the task carries a warrant chain referencing that card's key material. Does not apply to intra-org delegation over a shared trust root, nor to A2A 0.9 unsigned-card discovery. ## Core Distinction The failure is not signature verification failure. Every signature in the chain validates. The failure is **card-version drift across the warrant's validity window**: the delegating agent re-publishes its AgentCard (new `cardVersion`, rotated `signingKeyId`, possibly narrowed `capabilities`) between the moment it minted the warrant and the moment the receiving instance resolves the card to validate the warrant. A2A v1.0 binds a warrant to a *card subject*, not a *card version*. The spec's `signedTaskDelegation.warrant.subject` field carries the card's `agentId` and `issuerDomain`, but the warrant does not pin the `cardVersion` or the `signingKeyId` that signed it. A conforming receiver resolves `agentId` → current published card → current keyset, then verifies. If the delegating agent rotated its key and re-published with the *same* `agentId`, the receiver picks up the new card, and the warrant's signature over the old key either fails (if the receiver is strict) or is silently re-anchored to a key that never attested to the warrant's `scope` claims (if the receiver is permissive and accepts any key currently associated with the `agentId`). The distinction that matters: **card identity is not card continuity.** Two cards sharing an `agentId` across a rotation are distinct attestation artifacts, and a warrant minted under card $C_1$ says nothing about the capabilities attested in card $C_2$. Treating `agentId` as the join key conflates them. ## What Was Observed Cross-org delegation from Org A (delegator `agentId: a:planner-7`) to Org B (receiver `agentId: b:executor-2`). Sequence from the receiver's audit log, reconstructed: 1. `t0` — A publishes card $C_1$: `cardVersion: 41`, `signingKeyId: k-9`, `capabilities: [plan, delegate, read:repo]`. 2. `t1` — A mints warrant $W$: `subject: a:planner-7`, `scope: [delegate, read:repo]`, signed by `k-9`, `expires: t0+3600`. 3. `t2` — A rotates: publishes $C_2$ with `cardVersion: 42`, `signingKeyId: k-11`, and *narrowed* `capabilities: [plan, delegate]` (repo read revoked after an incident review). `k-9` is marked `retired` in A's keyset but not revoked. 4. `t3` — $W$ arrives at B. B resolves `a:planner-7`, gets $C_2$, sees `k-11` current, finds `k-9` present-but-retired in the keyset document, verifies $W$'s signature against `k-9` (valid), and — because the receiver's check was "key belongs to subject" rather than "key was current at warrant mint time" — accepts. 5. B executes `read:repo` on behalf of A. A's card $C_2$ does not attest `read:repo`. The delegation succeeded against a capability the delegator had, at delegation time, already withdrawn. The signature was valid throughout. The warrant was not forged. The receiver executed a scope that no currently-published card authorized. This is the **retired-key scope resurrection** condition: a warrant survives the card that attested its scope, and a receiver that resolves cards lazily re-anchors the warrant to a card that never claimed the scope. A second observed variant, on a stricter receiver: B pinned `cardVersion` from a cached discovery result (version 41) but A's keyset endpoint had already dropped `k-9` from the *current* keyset document (retired keys are pruned after a grace period). Signature verification failed with `UnknownKeyId`, B rejected a warrant that was, at mint time, fully valid, and the delegated task dead-lettered. Same drift, opposite failure: false rejection of a live warrant vs. false acceptance of a dead scope. ## Condition of Validity A warrant $W$ is safe to honor at receiver time $t_r$ iff **all** of the following hold, evaluated against the card state as of $W$'s mint time $t_m$, not $t_r$: - **Key currency:** the `signingKeyId` in $W$ was `active` in the delegator's keyset at $t_m$. Retired-at-$t_r$ is fine; retired-at-$t_m$ is not. - **Version pin:** $W$ carries `cardVersion` (or a content hash of the card) and the receiver verifies the attested `capabilities` against *that* version, not the resolved current version. - **Scope subset:** `W.scope ⊆ capabilities(C_{W.cardVersion})`. Not `⊆ capabilities(current card)`. The latter is the bug. - **Non-revocation window:** if the delegator publishes a revocation for `k-9` or for $W$'s `warrantId` before $t_r$, reject regardless of signature validity. Retirement ≠ revocation; a retired key can still validate historical warrants, a revoked key cannot. - **Clock agreement:** $t_m$ is established by the warrant's own `issuedAt` under the delegator's signed timestamp, not by receiver receipt time. Without this, a receiver cannot distinguish "minted before rotation" from "minted after rotation but delivered late." The invariant to hold: **a warrant is evaluated against a frozen snapshot of the delegator's card and keyset at $t_m$, and the receiver must be able to reconstruct that snapshot.** If it cannot, it must fail closed. Concretely, the delegator must serve versioned cards and a keyset history keyed by `(agentId, keyId, validFrom, validTo)`, and the warrant must carry enough to identify the snapshot: `cardVersion` plus `signingKeyId` plus `issuedAt`. ## Decision Boundary The receiver's resolution logic must branch explicitly on snapshot reconstructability, not on signature validity alone: - **Snapshot reconstructable, key active at $t_m$, scope subset holds:** accept. - **Snapshot reconstructable, key active at $t_m$, but scope not subset of pinned card:** reject — this is a minting bug at the delegator, escalate, do not execute. - **Snapshot reconstructable, key retired-at-$t_r$ but active at $t_m$, no revocation:** accept. Retirement is not revocation; do not fail closed on retirement alone. - **Snapshot *not* reconstructable** (keyset pruned, card version unavailable, `issuedAt` unverifiable): **reject with `UnverifiableWarrantSnapshot`.** Do not fall back to current-card verification. The permissive fallback is precisely the scope-resurrection path. - **Key revoked at any point ≤ $t_r$:** reject unconditionally. The boundary that trips operators: the fourth case looks like an availability problem ("the delegator's keyset endpoint is flaky, just verify against current") and gets "fixed" by relaxing to current-card resolution. That relaxation is the vulnerability. The correct fix is delegator-side: retain keyset history for at least the maximum warrant TTL, and serve cards by explicit version. ## Operational Effect Receivers that resolve cards lazily against current state exhibit **capability-scope inflation**: delegated tasks execute with scopes the delegator had already withdrawn, because the warrant outlives the card that attested its scope and the receiver re-anchors to a successor card. This is silent — audit logs show valid signatures and successful execution — and only surfaces when the withdrawn scope is later implicated in an incident and the delegator's card history is reconstructed. Receivers that pin strictly without keyset history exhibit **warrant dead-lettering**: valid, unexpired warrants are rejected because the delegator pruned the retired key. This is loud and gets "fixed" by relaxing, which reintroduces the first failure. The stable configuration requires both sides: delegators serve versioned cards and time-bounded keyset history covering max warrant TTL; warrants carry `cardVersion`, `signingKeyId`, and a signed `issuedAt`; receivers verify against the $t_m$ snapshot and fail closed on unreconstructable snapshots. Neither side can hold the invariant alone, which is why the boundary is easy to miss in single-org testing where the trust root is shared and card rotation is invisible to the verifier. ```python from dataclasses import dataclass from datetime import datetime class UnverifiableWarrantSnapshot(RuntimeError): """Raised when a receiver cannot reconstruct the delegator's card/keyset state as of the warrant's issuedAt, and therefore cannot safely decide.""" class ScopeResurrectionError(RuntimeError): """Raised when a warrant's scope is not a subset of the capabilities attested by the card version pinned in the warrant.""" @dataclass(frozen=True) class Warrant: warrant_id: str subject_agent_id: str card_version: int signing_key_id: str issued_at: datetime scope: frozenset[str] @dataclass(frozen=True) class CardSnapshot: agent_id: str card_version: int capabilities: frozenset[str] @dataclass(frozen=True) class KeyRecord: key_id: str valid_from: datetime valid_to: datetime | None # None = still active revoked_at: datetime | None def verify_delegation( w: Warrant, snapshot: CardSnapshot | None, key: KeyRecord | None, now: datetime, ) -> None: # Fail closed: cannot evaluate against mint-time state. if snapshot is None or key is None: raise UnverifiableWarrantSnapshot( f"warrant {w.warrant_id}: no snapshot for " f"{w.subject_agent_id}@v{w.card_version} key {w.signing_key_id}" ) if snapshot.card_version != w.card_version: raise UnverifiableWarrantSnapshot( f"warrant {w.warrant_id}: pinned v{w.card_version}, " f"resolved v{snapshot.card_version}" ) if key.key_id != w.signing_key_id: raise UnverifiableWarrantSnapshot( f"warrant {w.warrant_id}: key mismatch {key.key_id} != {w.signing_key_id}" ) # Key must have been valid at mint time, not merely present now. if not (key.valid_from <= w.issued_at): raise UnverifiableWarrantSnapshot( f"warrant {w.warrant_id}: key not yet valid at issuedAt" ) if key.valid_to is not None and key.valid_to < w.issued_at: raise UnverifiableWarrantSnapshot( f"warrant {w.warrant_id}: key already retired at issuedAt" ) # Revocation is unconditional; retirement is not. if key.revoked_at is not None and key.revoked_at <= now: raise ScopeResurrectionError( f"warrant {w.warrant_id}: signing key revoked at {key.revoked_at}" ) # Scope must be subset of the PINNED card, never the current card. if not w.scope.issubset(snapshot.capabilities): raise ScopeResurrectionError( f"warrant {w.warrant_id}: scope {sorted(w.scope)} not attested by " f"card v{w.card_version} capabilities {sorted(snapshot.capabilities)}" ) ```