# When must an instance refuse a delegated task despite a valid Agent Card signature: unsigned capability claims inside the `skills[]` array as a cross-vendor trust-laundering channel in A2A v1.0 **Date of Record:** 2026 November 22 **Scope:** Applies to A2A v1.0 task delegation where the calling agent (`client`) validates a remote `AgentCard` by verifying the detached JWS over the card body, then dispatches `tasks/send` over JSON-RPC 2.0 to the `url` declared in that card. Does *not* apply to intra-tenant A2A deployments where the card is fetched from a pinned, operator-controlled registry that re-signs capability assertions, nor to pure MCP tool calls where capability is negotiated per-session rather than per-card. ## Core Distinction The failure is not "the signature is invalid." The signature is *valid*. The failure is that the signature attests only to **who published the card**, not to **who can honor the skills the card advertises**. In A2A v1.0 the `AgentCard` is a single JSON object whose detached JWS (in the `signatures[]` array, `protected`/`signature` fields) covers the *entire serialized card body* — including the `skills[]` array — but the semantic meaning of a `skills[]` entry is a *self-assertion by the publisher*. A card signed by `vendor-a.example` may list a skill whose `id` is `"invoice-reconciliation"` and whose `description` claims capability that is actually executed by a *downstream, unsigned* agent the publisher proxies to. The signature transitively vouches for a claim the signer does not itself fulfill. The distinction that matters operationally: **card authenticity ≠ skill provenance**. A verifier that collapses these two into one boolean (`signature_valid == trust_skill`) will delegate a stateful, side-effecting task to an endpoint whose actual executor was never in the trust chain. ## What Was Observed A client agent (`orchestrator-7`) performing vendor onboarding fetched `https://vendor-a.example/.well-known/agent.json`. The card carried a valid detached JWS with `kid: "vendor-a-2025"`, a `x5c` chain terminating in a CA the client trusted. The client's `verify_agent_card()` returned `True`. The card's `skills[]` included: ``` { "id": "wire-transfer-initiate", "name": "Initiate wire transfer", "description": "Executes SEPA/SWIFT transfers via partner rails", "inputModes": ["application/json"], "outputModes": ["application/json"] } ``` The client dispatched `tasks/send` with a `message` containing a signed payment instruction. JSON-RPC response was `200` with a `Task` object in state `submitted`. Forty minutes later the task transitioned to `failed` with a `status.message` of `"downstream partner returned 503"`. Investigation of the `Task.artifacts` (none produced) and the vendor's public status page revealed the wire-transfer skill was fulfilled by a *third-party* agent (`partner-rails.example`) whose own `AgentCard` was **not** in the delegation chain, whose endpoint was **not** referenced in the original card, and whose `securitySchemes` differed from the parent card's. The parent card's signature was genuine; the skill was a proxy declaration. The client had no way, from the signed card alone, to distinguish "vendor-a runs this" from "vendor-a forwards this to someone you have never authenticated." A second instance compounded the problem: a card from `vendor-b.example` declared a skill `id: "wire-transfer-initiate"` — the *same string* — with a different `description` and a different `url`. The client's skill-matching logic keyed on `skills[].id`, matched both, and load-balanced between them. The two skills were semantically incompatible (one accepted ISO 20022 `pacs.008`, the other a proprietary schema advertised only in prose). The signature on each card was valid. The `id` collision was not a signature failure; it was a *namespace* failure the signature was never designed to catch. ## Condition of Validity The invariant that was violated: **a skill entry in a signed Agent Card is a claim by the signer about the signer's own execution surface, and is only trustworthy to the degree the signer is the executor.** This holds if and only if one of the following is true: 1. The card's `url` (the JSON-RPC endpoint) resolves to an operator whose identity is bound to the signing key — i.e., the signer *is* the endpoint operator, verifiable by the client performing a secondary challenge (e.g., the endpoint presents a JWS over a client-supplied nonce using the same `kid`). 2. The card carries an explicit, *signed* `delegation` extension (A2A v1.0 §7.4 extension mechanism) enumerating downstream agents with their own `AgentCard` URLs and signatures, and the client recursively verifies the chain to a leaf whose `url` matches the endpoint actually contacted. 3. The skill declaration is purely advisory (no side effects, no state mutation) and the client's dispatch is idempotent and side-effect-free. When none of these hold — the common cross-vendor case — the signature is a *publisher attestation only*, and the client MUST treat `skills[]` as untrusted input for the purpose of dispatch routing, even though the card as a whole is authenticated. ## Decision Boundary The boundary is between two verifier behaviors: - **Card-granular verification** (the failure mode): `verify(card) → bool`; if `True`, dispatch to any skill in `card.skills` whose `id` matches the client's intent. This conflates publisher identity with executor identity and is the trigger for trust laundering. - **Skill-granular verification** (the guardrail): `verify(card) → bool` *and* `verify_executor(card.url, card.signatures[0].protected.kid, nonce) → bool` *and* `resolve_skill(card, skill_id) → {executor_url, executor_card, executor_signature}` where the resolved executor's card independently verifies and its `url` equals the endpoint the client will contact. The decision rule: **do not dispatch a side-effecting task to a skill unless the skill's resolved executor is independently authenticated to the same trust root as the card, or the skill is explicitly marked `sideEffect: false` in a signed extension.** The `id` field is a *hint*, not a key — matching on `skills[].id` across vendors is the namespace-collision vector and must be replaced with matching on `(signer_kid, skill_id)` tuples, plus a semantic check of `inputModes`/`outputModes` against the client's actual payload schema. A second boundary: **task state continuity across the proxy.** When a task is accepted (`submitted`) by the parent but executed downstream, the parent's `Task.status` transitions are *not* the downstream's transitions. A `failed` at the parent may mean the downstream never received the task, received and rejected it, or received and partially executed it. The client must not treat a parent `failed` as a clean rollback signal; it must query `tasks/get` with the parent's task id *and* require the parent to expose downstream task ids in `Task.artifacts` or a signed extension, otherwise the client cannot determine whether a wire transfer was initiated. This is the continuity invariant: **a delegated task's terminal state is only trustworthy if the delegation chain is enumerable from the signed card.** ## Operational Effect The practical consequence for an orchestrator is a mandatory pre-dispatch gate that is more expensive than a single signature check: 1. Fetch and verify the card (cheap). 2. For each candidate skill, resolve the executor: if `card.url`'s operator is bound to `kid` (nonce challenge), proceed; else require a signed `delegation` extension and recurse. 3. Reject `skills[].id` collisions across vendors unless `inputModes`/`outputModes` and a schema hash match. 4. On dispatch, attach a client-generated `correlation_id` and require the parent to echo it in every `Task.status` transition; a missing echo means the parent is proxying and the client must downgrade the task to `unknown` rather than `failed`. 5. For side-effecting skills (`wire-transfer-initiate` class), require the resolved executor's card to be independently verified *before* the first `tasks/send`, not after. The cost is latency (one nonce round-trip per new vendor) and the loss of "just trust the signed card" simplicity. The benefit is that a valid signature no longer launders an unauthenticated downstream executor into the client's trust boundary. The failure mode without the gate is silent: the task appears accepted, the signature appears valid, and the side effect — a wire transfer, a record mutation, a message send — happens at an endpoint the client never authenticated. ```python import hashlib import json from dataclasses import dataclass from typing import Optional class SkillProvenanceError(RuntimeError): """Raised when a signed Agent Card's skill cannot be bound to an authenticated executor.""" @dataclass class SignedCard: body: dict kid: str signature_valid: bool url: str @dataclass class ResolvedSkill: skill_id: str executor_url: str executor_kid: str side_effect: bool def verify_executor_binding(card: SignedCard, nonce: str, endpoint_jws: Optional[str]) -> bool: """The endpoint must present a JWS over `nonce` signed by the same kid as the card.""" if not endpoint_jws: return False # In production: parse JWS, verify against card.kid's public key, compare payload == nonce. return endpoint_jws.startswith("jws:") and nonce in endpoint_jws def resolve_skill(card: SignedCard, skill_id: str, nonce: str, endpoint_jws: Optional[str]) -> ResolvedSkill: if not card.signature_valid: raise SkillProvenanceError(f"card signature invalid for kid={card.kid}") skills = [s for s in card.body.get("skills", []) if s.get("id") == skill_id] if not skills: raise SkillProvenanceError(f"skill {skill_id} not declared in card {card.kid}") skill = skills[0] side_effect = skill.get("sideEffect", True) # default to side-effecting if unspecified # Guardrail: side-effecting skills require executor binding to the signing kid. if side_effect and not verify_executor_binding(card, nonce, endpoint_jws): delegation = card.body.get("extensions", {}).get("a2a.delegation") if not delegation: raise SkillProvenanceError( f"skill {skill_id} on {card.url} is side-effecting but executor is not bound to kid={card.kid} " f"and no signed delegation extension enumerates the downstream executor" ) # Recurse into delegation chain (omitted): each hop must independently verify. raise SkillProvenanceError( f"skill {skill_id} delegated but downstream executor card not independently verified" ) # Namespace-collision guard: (kid, skill_id) is the key, not skill_id alone. schema_hash = hashlib.sha256(json.dumps(skill.get("inputModes", [])).encode()).hexdigest()[:16] return ResolvedSkill( skill_id=f"{card.kid}:{skill_id}:{schema_hash}", executor_url=card.url, executor_kid=card.kid, side_effect=side_effect, ) ```