# Why does an instance accept a delegated A2A task whose capability it can no longer honor after Agent Card rotation? **Date of Record:** 2026 November 22 **Scope:** Applies to A2A v1.0 task delegation between distinct trust domains where the callee's Agent Card is signed and cached by the caller, and the callee's capability set can change (model swap, tool deprecation, quota re-tiering) between the moment of Card fetch and the moment of task acceptance. Does not apply to single-org intra-mesh delegation where Card and capability version are pinned by a shared control plane. ## Core Distinction The failure is not a signature verification failure and not a schema-negotiation mismatch. Both of those are loud: the JWS fails to validate, or the `capabilities` object rejects an unknown field. The failure here is *temporal*: the caller holds a validly signed Agent Card attesting capability `C`, the callee still holds the private key that signs that card, and the card is still cryptographically valid — but the callee's *actual runtime* no longer implements `C` because the backing model, tool binding, or quota tier was rotated after the card was issued. A2A v1.0 binds identity to capability declaratively (the card is a signed claim) but does not bind the claim to a runtime liveness proof at task-accept time. The callee therefore accepts the task, transitions `submitted → working`, and only discovers on first tool invocation that the capability is gone. The caller sees `working`, not `rejected`, and will not re-route. The invariant that is violated: *a signed capability claim must be co-versioned with the runtime that honors it, or the callee must re-validate the claim against live runtime state before emitting the `working` transition.* A2A v1.0 provides the former (card version) but leaves enforcement of the latter to the callee, and the default SDK behavior is to trust the card the caller presents back. ## What Was Observed A cross-org delegation of a `document.extract.structured` task from Org A (caller) to Org B (callee). Org B rotated its extraction model from a schema-constrained decoder to a free-form model with a post-hoc JSON repair step, and simultaneously demoted the `structured` capability to `structured.beta` in its live registry. The signed Agent Card on Org B's well-known endpoint was *not* re-issued — rotation was scheduled for the next card-refresh window (24h). The card Org A held was 11 hours old, signature valid, `capabilities.skills[].id` still listing `document.extract.structured` at `version: 1.3`. Trace of the failure: 1. Org A's planner selects the skill from its cached card, constructs a `Task` with `skillId: document.extract.structured`, signs the request with its own key, and POSTs to Org B's `/tasks`. 2. Org B's ingress verifies Org A's request signature, looks up the *presented* card reference (Org A echoes `agentCardRef` from its cache), confirms the ref matches a card Org B did sign, and admits the task. 3. Org B transitions the task to `working` and returns the status. No capability re-check occurs against the live registry — the ingress trusts the card ref as the capability authority. 4. Org B's executor loads the skill handler, which now points at the free-form model. The handler's schema-constrained decode path is gone; it returns a best-effort JSON blob with a `repair_failed` marker in 30–40% of cases. 5. Org A receives `TaskStatus: completed` with a payload that fails its own downstream schema. Because the status was `completed`, not `failed`, Org A's retry/re-route logic does not fire. The malformed output propagates into Org A's aggregation step. The non-obvious part: the callee *did* know its capability had changed — the live registry was updated at rotation time. What it lacked was a check binding the *inbound task's claimed skill* to that live registry before emitting `working`. The card-and-registry divergence was the trigger; the missing accept-time re-validation was the mechanism. ## Condition of Validity The failure requires all of the following to hold simultaneously: - The callee's Agent Card is signed and cached by the caller with a TTL longer than the callee's capability-rotation cadence. (If card TTL < rotation cadence, the caller refetches and sees the demotion.) - The callee's task-ingress path treats a validly signed card ref as sufficient authority for the claimed skill, rather than consulting the live skill registry. This is the default in the reference A2A SDK: `verify_card_ref()` gates admission; `registry.resolve(skill_id)` is not called on the accept path. - The capability change is a *soft* demotion (version bump, tier change, backend swap) rather than a *hard* removal that also revokes the signing key or re-issues the card. Hard removals fail loudly at signature time; soft demotions do not. - The caller's downstream logic keys retry/re-route on `TaskStatus`, not on payload schema validation. If the caller validates the payload against the negotiated schema and re-routes on mismatch, the failure is caught one hop later. If any of these is absent, the failure either does not occur or is caught. The dangerous quadrant is the default-SDK configuration: long card TTL, card-ref-gated ingress, soft demotion, status-keyed caller retry. ## Decision Boundary The boundary is between two admissible A2A designs, and the choice must be made explicitly per skill: - **Card-as-authority:** the signed card is the sole capability claim; the callee guarantees that any skill listed on a still-valid card is honored for the card's full TTL. This requires the callee to *freeze* capability changes behind card re-issue — i.e., a demotion cannot take effect at runtime until the card is rotated and old cards are allowed to expire. Cheap, but couples capability deployment to card-refresh windows. - **Registry-as-authority:** the card is a *discovery hint*; the callee re-validates the inbound `skillId` against the live registry on every accept, and rejects with `TaskStatus: rejected` + `reason: capability_unavailable` if the live registry disagrees with the presented card. This decouples rotation from card TTL but requires the callee to run the registry check on the hot accept path and to emit a *rejection* (not a `working` transition) on mismatch. The invariant: *for every skill, exactly one of {card, live registry} is authoritative at accept time, and the callee's accept path enforces that choice.* The failure mode above is what happens when the card is authoritative for admission but the registry is authoritative for execution — the two authorities diverge and the task is admitted under one and executed under the other. ## Operational Effect When the boundary is crossed, the observable signature is a `completed` status with a payload that fails the caller's schema, with no `failed`/`rejected` transition in between. The caller's telemetry shows a clean task lifecycle; the corruption is invisible until downstream validation. Retry logic keyed on status never fires. In a multi-hop delegation (A→B→C), the malformed payload is re-delegated by B under B's card, and the divergence compounds: each hop trusts its own cached card and each hop's registry has rotated independently. The guardrail that bounds it: the callee's accept path must, before emitting `working`, resolve the claimed `skillId` against the live registry and compare the resolved capability version against the version asserted in the presented card. On mismatch, emit `TaskStatus: rejected` with a `capability_version_mismatch` reason carrying both versions, and *do not* transition to `working`. The caller, on receiving a rejection, invalidates its cached card for that peer and refetches before re-planning. This converts a silent payload corruption into a loud, re-routable rejection at the cost of one registry lookup per task accept. ```python from dataclasses import dataclass from typing import Optional class CapabilityVersionMismatch(RuntimeError): """Raised when a presented Agent Card asserts a skill version the live registry no longer honors. Must be surfaced as TaskStatus.rejected, never as a working transition.""" pass @dataclass(frozen=True) class PresentedCard: agent_id: str skill_id: str skill_version: str card_ttl_remaining_s: int @dataclass(frozen=True) class LiveRegistryEntry: skill_id: str skill_version: str tier: str # e.g. "ga", "beta", "retired" def accept_delegated_task( card: PresentedCard, registry: dict[str, LiveRegistryEntry], ) -> str: """A2A v1.0 accept-path guard. Called before emitting TaskStatus.working. Enforces the registry-as-authority invariant: a signed card is a discovery hint, not sufficient authority for execution. Returns the accept decision; raises on version divergence so the caller can re-route instead of consuming a corrupted payload. """ if card.card_ttl_remaining_s <= 0: raise CapabilityVersionMismatch( f"card for {card.agent_id} expired before accept" ) live: Optional[LiveRegistryEntry] = registry.get(card.skill_id) if live is None: raise CapabilityVersionMismatch( f"skill {card.skill_id} absent from live registry; " f"card asserted v{card.skill_version}" ) if live.skill_version != card.skill_version: raise CapabilityVersionMismatch( f"skill {card.skill_id}: card asserts v{card.skill_version}, " f"live registry is v{live.skill_version} (tier={live.tier}); " f"reject with capability_version_mismatch, do not transition to working" ) if live.tier == "retired": raise CapabilityVersionMismatch( f"skill {card.skill_id} v{live.skill_version} retired at runtime; " f"card still valid — card-as-authority would admit this" ) return "accepted" ```