# Why does an instance lose delegated authority mid-task when an A2A v1.0 agent card rotates its signing key between handoff and audit replay? **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 task delegation flows where the delegating agent attaches a signed agent card (and derived warrant) to a `tasks/send` request, and a downstream verifier or auditor re-validates that card at a later time. Does not apply to synchronous single-hop calls where verification and execution occur within the same signature validity window with no replay. ## Core Distinction The failure is not a signature forgery and not a transport error. It is a *temporal* divergence between two independent validity clocks that A2A v1.0 treats as if they were one: 1. The **card-validity clock** — the `validUntil` / key-epoch fields embedded in the signed agent card, anchored to the *signing* key's lifetime. 2. The **task-authority clock** — the lifetime over which the delegated warrant is expected to authorize tool calls and state mutations, which is bounded by the *task's* duration, not the signer's key rotation schedule. A2A v1.0 lets a delegating agent sign a card with key epoch `N`, hand off the task, and then rotate to epoch `N+1` (routine hygiene, incident response, or scheduled rotation). The delegated instance keeps executing. When an auditor or a peer agent replays the task's provenance chain and re-fetches the card, it resolves the *current* published card at epoch `N+1` and finds a signature made with epoch `N`. The signature is cryptographically valid against the *historical* key, but the verifier has no bound path to that historical key because the card's `jwks_uri` now serves only epoch `N+1`. The delegated instance is still running and still believes it holds authority; the verifier now believes the chain is broken. Authority silently decouples from execution. ## What Was Observed A three-hop delegation: orchestrator `O` delegates to worker `W`; `W` calls a tool and produces an artifact; an auditor `A` (a separate agent instance) later replays the provenance chain to confirm `W` acted under `O`'s warrant. Trace, abridged to the failing fields: ``` t0 O signs card C_N (kid=ed25519:N, validUntil=+24h, epoch=N) t0 O -> W : tasks/send {card: C_N, warrant: W_auth, task_id: T} t1 W begins execution, caches C_N locally, holds W_auth in working state t2 O rotates signing key -> publishes C_{N+1} at jwks_uri; C_N retired t3 W completes tool call, emits artifact + provenance {task_id:T, card:C_N} t4 A replays: fetches jwks_uri -> resolves kid=ed25519:N+1 only t4 A verifies provenance signature (made with N) -> "unknown key" A marks T as UNVERIFIED, quarantines artifact t5 W is still alive, still holds W_auth, sees no error, continues next step ``` The observable symptoms cluster: - **Replay-time key resolution failure.** The verifier's `kid` lookup returns a key that does not match the signing `kid`; no `key_history` endpoint is consulted because A2A v1.0 does not mandate one. - **Asymmetric belief.** `W`'s local state says "authorized." `A`'s verification says "unverifiable." Both are correct under their own clocks. Neither is reconciled. - **Silent continuation.** `W` receives no revocation signal because rotation is not revocation. It keeps minting tool calls under a warrant whose provenance is now orphaned. - **Quarantine cascade.** Downstream agents that consume `A`'s verdict treat `T` as poisoned, so the *effect* of `W`'s continued work is discarded even though the work itself was legitimate. The non-obvious part: nothing in the trace is a bug in any single component. `O` rotated correctly. `A` verified correctly. `W` executed correctly. The failure lives in the *gap between the two validity clocks* that the protocol never forces into a single comparable value. ## Condition of Validity The invariant that A2A v1.0 *assumes* but does not *enforce* is: > For any task `T` delegated under card `C_k` (key epoch `k`), every verifier that will ever replay `T` must be able to resolve key epoch `k` for the entire lifetime of `T`'s provenance chain, and the delegating agent must not retire epoch `k` while any warrant signed by `k` is still live. This holds only when **all** of the following are true: - The delegating agent's key rotation is gated on warrant expiry, not wall-clock schedule. - The verifier resolves keys through an append-only key-history endpoint, not only the current JWKS. - The warrant carries an explicit `notAfter` that is `<=` the signing key's `validUntil`, so the task-authority clock never outlives the card-validity clock. - The delegated instance treats a card-fetch mismatch (current `kid` != signing `kid`) as an *authority-invalidating* event, not a *verification-inconvenient* one. The invariant is violated the moment any one condition fails. In the observed trace, conditions 1 and 3 failed simultaneously: rotation was scheduled, and the warrant had no `notAfter` tighter than the key's `validUntil`, so the warrant outlived its own signing epoch. ## Decision Boundary The boundary is not "rotate or don't rotate." It is: **who owns the reconciliation when the two clocks diverge, and what does the delegated instance do when its authority becomes unverifiable?** Two defensible policies, and the boundary between them: | Condition | Policy A: *Freeze on divergence* | Policy B: *Continue under historical key* | |---|---|---| | Verifier can reach key history | unnecessary | preferred — replay succeeds, `W` continues | | Verifier cannot reach key history | **required** | unsafe — `W` mints orphaned provenance | | Warrant has explicit `notAfter <= validUntil` | either | either | | Task is idempotent / side-effect-free | either | either | | Task mutates external state | **required** | only with a signed continuation token | The decision rule an instance should apply at the moment it detects a card-rotation mismatch: 1. If the warrant carries a verifiable `notAfter` and the current time is within it, **and** the verifier resolved the signing key via key history → continue, record the historical `kid` in provenance. 2. If the verifier could not resolve the signing key → the instance is now executing under *unverifiable* authority. It must **freeze** (stop minting new tool calls), emit a `authority_divergence` event to the delegating agent, and await either a re-signed warrant under epoch `N+1` or an explicit continuation token. 3. If the instance cannot freeze (no checkpoint mechanism, side effects already in flight) → it must **stamp every subsequent artifact** with the historical `kid` and a divergence marker, so downstream consumers can distinguish "legitimate but orphaned" from "forged." The boundary is crossed the instant the delegated instance decides to keep executing *without* either a resolvable historical key or an explicit continuation token. That is the exact state in which authority has silently decoupled from execution, and it is the only state in which a legitimate task can be misclassified as a forgery — or, worse, a forgery can hide inside a legitimate task's orphaned provenance. ## Operational Effect The practical consequences, ordered by blast radius: - **False quarantine.** Legitimate artifacts are discarded because their provenance is unverifiable, not because they are wrong. The auditor is behaving correctly; the cost is borne by the task. - **Phantom authority.** The delegated instance keeps acting under a warrant no one else can verify. If the task mutates external state, those mutations are now unattributable — they exist but cannot be bound to `O`'s authority. - **Forgeability window.** During the gap between rotation and the verifier's next replay, an attacker who compromises `W`'s working state can mint artifacts stamped with epoch `N` and they will be indistinguishable from legitimate orphaned provenance. The gap is the attack surface. - **Replay divergence across verifiers.** A verifier with key-history access and a verifier without it will reach *opposite* verdicts on the same task. Multi-agent swarms that mix both will deadlock on consensus: one auditor accepts, one rejects, the task never finalizes. The guardrail that bounds all four: **bind the warrant's `notAfter` to the signing key's `validUntil` at issuance, and require the delegated instance to treat any post-handoff card-rotation mismatch as an authority event rather than a verification detail.** Rotation must be gated on warrant expiry, and the delegated instance must be able to freeze and checkpoint on divergence. Without both, the two clocks drift and authority decouples from execution silently — which is the worst failure mode, because every component reports success. ```python import time from dataclasses import dataclass, field from typing import Optional class AuthorityDivergenceError(RuntimeError): """Raised when a delegated instance detects that its signing key epoch is no longer resolvable by the verifier, i.e. authority has decoupled from execution. The instance must freeze, not continue.""" pass @dataclass class AgentCard: kid: str # signing key id, e.g. "ed25519:7" valid_until: float # epoch seconds jwks_uri: str @dataclass class Warrant: task_id: str signed_by_kid: str not_after: float # MUST be <= card.valid_until at issuance @dataclass class DelegatedInstance: card: AgentCard warrant: Warrant frozen: bool = False divergence_marker: Optional[str] = None artifacts: list = field(default_factory=list) def _current_epoch_resolvable(self, verifier_kids: set) -> bool: # The verifier can only resolve what its JWKS currently serves. return self.warrant.signed_by_kid in verifier_kids def guard_authority(self, verifier_kids: set, now: Optional[float] = None) -> None: now = now if now is not None else time.time() # Invariant 1: warrant must not outlive its signing key. if self.warrant.not_after > self.card.valid_until: raise AuthorityDivergenceError( f"warrant {self.warrant.task_id} notAfter={self.warrant.not_after} " f"exceeds card validUntil={self.card.valid_until}; " f"authority clock outlives card clock" ) # Invariant 2: if the warrant is still live, the signing key must be # resolvable by the verifier. If not, authority has decoupled. if now <= self.warrant.not_after and not self._current_epoch_resolvable(verifier_kids): self.frozen = True self.divergence_marker = ( f"kid={self.warrant.signed_by_kid} unresolvable at t={now}; " f"task={self.warrant.task_id} frozen pending re-sign or continuation token" ) raise AuthorityDivergenceError(self.divergence_marker) def emit_artifact(self, verifier_kids: set, payload: dict) -> dict: if self.frozen: raise AuthorityDivergenceError( f"refusing to mint artifact for frozen task {self.warrant.task_id}: " f"{self.divergence_marker}" ) self.guard_authority(verifier_kids) art = {"task_id": self.warrant.task_id, "kid": self.warrant.signed_by_kid, **payload} self.artifacts.append(art) return art # --- observed failure reproduction ------------------------------------------- def reproduce_rotation_gap(): now = time.time() card = AgentCard(kid="ed25519:7", valid_until=now + 86400, jwks_uri="https://o/.well-known/jwks") # Bug: warrant issued with notAfter beyond the key's validity, OR rotation # happens before warrant expiry and the verifier only serves the new kid. warrant = Warrant(task_id="T-42", signed_by_kid="ed25519:7", not_after=now + 86400) inst = DelegatedInstance(card=card, warrant=warrant) # Delegator rotates: verifier now only serves ed25519:8. verifier_kids = {"ed25519:8"} try: inst.emit_artifact(verifier_kids, {"result": "ok"}) except AuthorityDivergenceError as e: # Correct behavior: freeze, do not mint orphaned provenance. assert inst.frozen is True assert "unresolvable" in str(e) return "frozen" # If we reach here without raising, the instance silently minted an # artifact under an unresolvable key — the exact decoupling we forbid. raise AuthorityDivergenceError( "instance continued under unresolvable signing key; authority decoupled from execution" ) if __name__ == "__main__": print(reproduce_rotation_gap()) # -> "frozen" ```