# Where must an instance re-verify the AgentCard signature after a delegated task's `capabilities` set is narrowed by a downstream vendor, and why the `agentCardSignature` on the original card no longer bounds the executed behavior **Date of Record:** 2026 November 27 **Scope:** Applies to A2A v1.0 task delegation where a client agent discovers a remote `AgentCard`, verifies its detached JWS (`signatures[]` over the canonicalized card), and then delegates a task whose execution chain passes through one or more intermediate agents that renegotiate capability subsets. Does not apply to single-hop, direct-to-origin delegation where the executing agent is the card signer. ## Core Distinction The AgentCard signature attests to the *declared* capability set at discovery time, not to the *executed* capability set at delegation time. In A2A v1.0, the `signatures` array is a detached JWS computed over the RFC 8785 canonicalization of the card body, including `capabilities`, `skills[].inputModes/outputModes`, and `defaultInputModes`. Verification at discovery proves only that the signer authored *that* JSON at *some* point. It does not bind the executing agent to honor the full set, nor does it prevent an intermediate agent from projecting a strict subset downward to a downstream vendor that cannot satisfy all declared modes. The invariant that operators assume — "a verified card means the delegated task executes within the signed capability envelope" — is false the moment a second hop exists. The signed envelope is a *ceiling on claims*, not a *floor on execution*. ## What Was Observed A client agent (`C`) discovers `A` (vendor X) and verifies `A.signatures[0]` with `A`'s `jwks_uri` from the `provider` block. The card declares `capabilities.streaming: true`, `capabilities.pushNotifications: true`, and `skills[2].outputModes: ["text/plain", "application/json", "text/markdown"]`. `C` delegates a task requiring `application/json` output with push-notification callbacks. `A` accepts, then internally delegates to `B` (vendor Y), a sub-agent whose own card declares only `outputModes: ["text/plain"]` and `pushNotifications: false`. `A`'s delegation to `B` does not re-sign anything: it forwards the task with a *narrowed* `Message.configuration` (A2A `TaskSendParams`-style) that simply omits the push-notification config and downgrades the requested output mode. `B` executes, returns `text/plain`, and `A` returns that to `C` under the original task ID. `C`'s verification of `A`'s card succeeded, `C`'s task completed with `state: completed`, and yet the response violates the signed `outputModes` and the push-notification contract `C` relied on. The failure is silent because A2A's task lifecycle does not carry a capability-warrant field. The `status` transitions (`submitted → working → completed`) are orthogonal to capability conformance. No `TaskStatusUpdateEvent` is emitted when `A` narrows the envelope; the `artifact.parts[].kind` simply arrives as `text` instead of `data`. `C` observes a *successful* task with a *degraded* artifact and has no signed evidence that degradation occurred inside a delegated hop versus being a legitimate variance of `A`'s own execution. A second observed variant: `A` re-signs a *derived* card for `B` (some vendors do this to present a uniform facade) but signs it with `A`'s key, not `B`'s. `C` verifying the returned artifact's provenance against `A`'s JWKS passes, but the actual executor was `B`, whose key never appears in any signature chain. The warrant is *transitive in name only* — the signature covers `A`'s assertion about `B`, not `B`'s execution. ## Condition of Validity The discovery-time signature remains a sufficient bound on executed behavior **only if** all of the following hold: 1. The executing agent is the card signer (single hop, no re-delegation), **or** every re-delegation is accompanied by a fresh JWS signed by the executing agent over a payload that includes the *effective* capability subset and the parent task ID. 2. The client pins the *effective* capability set at delegation time by echoing the required subset into the task's `configuration` and requires the executor to reject (not silently narrow) on mismatch. 3. The task response carries a signed `capabilityAttestation` binding `taskId → executingAgentId → effectiveCapabilities`, verifiable against the executing agent's JWKS, not the origin's. Absent (1)–(3), card verification at discovery is necessary but not sufficient, and treating it as sufficient is the boundary failure. The condition of validity is therefore *chain-completeness*: the signature chain must terminate at the actual executor, and the effective capability set must be inside the signed payload of that terminal signature. ## Decision Boundary The operator's decision boundary is: **at what hop count does discovery-time verification stop bounding execution, and what must be re-verified at each hop?** - **Hop 0 (direct):** verify card signature; execute; trust. Sufficient. - **Hop ≥ 1 with narrowing:** discovery verification is insufficient. The client MUST (a) require the executor to echo the accepted capability subset in `Task.status.message.metadata` or a signed attestation, (b) treat any artifact whose `kind`/`mimeType` falls outside the *client-requested* subset as a `CapabilityDrift` event, not a success, and (c) reject tasks whose terminal signature is not from the executing agent. - **Hop ≥ 1 with facade re-signing:** the client MUST walk the signature chain to the terminal executor and verify the terminal key against the executor's `jwks_uri`, not the origin's. If the chain does not terminate at a key the client can independently resolve, the delegation is unverifiable and must be refused. The boundary is crossed the instant an intermediate agent is permitted to *project* a capability subset without producing a signed attestation of that projection. Below the boundary, discovery verification is a valid guardrail. Above it, it is a false assurance that masks exactly the degradation the client was trying to prevent. ## Operational Effect The practical consequence is that clients which verify cards but do not verify *effective capability attestations* will accept degraded artifacts as successful completions, and their audit logs will show a valid signature chain that does not correspond to the executed behavior. This is a continuity invariant violation at the warrant layer: the signed claim ("this agent can emit JSON and push notifications") and the executed fact ("this chain emitted text/plain, no callbacks") diverge, and the divergence is invisible to the verifier because the verifier only checked the claim's origin, not the execution's terminal signer. The guardrail is a terminal-signature requirement plus an effective-capability echo: the executor must sign `{taskId, parentTaskId, effectiveCapabilities, artifactHashes}` with its own key, and the client must reject any task whose terminal attestation is missing, mismatched against the requested subset, or signed by a key not resolvable to the executing agent. This converts the silent narrowing into an explicit, signed, refusable event — restoring the invariant that a verified chain bounds execution, but only because the chain now terminates where execution does. ```python import hashlib import json from dataclasses import dataclass, field from typing import Optional class CapabilityWarrantError(RuntimeError): """Raised when a delegated task's effective capability set is not bounded by a terminal signature from the actual executing agent.""" pass @dataclass class CapabilityAttestation: task_id: str parent_task_id: Optional[str] executing_agent_id: str effective_capabilities: dict artifact_hashes: list signer_jwks_uri: str signature: bytes @dataclass class DelegationHop: agent_id: str jwks_uri: str declared_capabilities: dict is_terminal: bool = False def canonicalize(obj: dict) -> bytes: return json.dumps(obj, sort_keys=True, separators=(",", ":")).encode() def verify_chain_terminates_at_executor( hops: list, attestation: CapabilityAttestation, requested_capabilities: dict, resolve_jwks, ) -> None: """ Enforce the boundary invariant: the signature chain must terminate at the executing agent, and the effective capability set must be a subset of the client-requested set, signed by the terminal executor's own key. """ if not hops: raise CapabilityWarrantError("empty delegation chain: no origin to verify") terminal = hops[-1] if not terminal.is_terminal: raise CapabilityWarrantError( f"chain does not terminate at an executor; last hop is {terminal.agent_id}" ) if attestation.executing_agent_id != terminal.agent_id: raise CapabilityWarrantError( f"attestation executor {attestation.executing_agent_id!r} " f"!= terminal hop {terminal.agent_id!r}" ) if attestation.signer_jwks_uri != terminal.jwks_uri: raise CapabilityWarrantError( "attestation signed by origin key, not terminal executor key " f"({attestation.signer_jwks_uri} vs {terminal.jwks_uri})" ) effective = attestation.effective_capabilities for key, required in requested_capabilities.items(): if key not in effective: raise CapabilityWarrantError( f"effective capabilities missing required key {key!r}" ) if effective[key] != required: raise CapabilityWarrantError( f"capability drift on {key!r}: requested {required!r}, " f"effective {effective[key]!r} (signed by {attestation.executing_agent_id})" ) payload = canonicalize({ "taskId": attestation.task_id, "parentTaskId": attestation.parent_task_id, "executingAgentId": attestation.executing_agent_id, "effectiveCapabilities": effective, "artifactHashes": attestation.artifact_hashes, }) jwks = resolve_jwks(attestation.signer_jwks_uri) if not jwks.verify(payload, attestation.signature): raise CapabilityWarrantError( f"attestation signature invalid for executor {attestation.executing_agent_id}" ) def delegate_and_verify( client_requested: dict, hops: list, attestation: CapabilityAttestation, resolve_jwks, ) -> str: try: verify_chain_terminates_at_executor( hops, attestation, client_requested, resolve_jwks ) except CapabilityWarrantError: raise artifact_digest = hashlib.sha256( canonicalize({"artifacts": attestation.artifact_hashes}) ).hexdigest() return artifact_digest ```