# Where must an instance verify capability-scope intersection at A2A handoff, not just signature validity on the agent card? **Date of Record:** 2026 November 27 **Scope:** Applies to A2A v1.0 task delegation where a caller agent (Org A) dispatches a task to a remote agent (Org B) whose Agent Card is signed and whose declared capabilities are negotiated at handoff. Does not apply to intra-org delegation where both parties share a trust root and a single capability registry. ## Core Distinction Signature validity on an Agent Card proves *who* the remote agent is. It does not prove that the *specific capability the caller intends to invoke* is within the scope the signer actually authorized. A2A v1.0 separates two artifacts: the signed Agent Card (identity + advertised `skills`/`capabilities`) and the per-task `Task` envelope (the concrete `message` + `metadata` the caller sends). The signature covers the former. The capability negotiation step is supposed to reconcile the latter against the former. The non-obvious failure is that a *validly signed* card can advertise a skill at a coarse granularity (e.g., `"capability": "document.transform"`) while the caller's requested operation is a *narrower* sub-operation that the remote runtime gates behind a separate authorization check the card never encodes. The signature passes, negotiation passes on string match, and the task is accepted — then fails or, worse, executes with the wrong privilege at the remote tool boundary. The invariant that must hold: **admitted capability scope = signed advertised scope ∩ caller-requested scope ∩ remote runtime-enforced scope.** A2A negotiation typically only checks the first two. The third is invisible to the caller and is the boundary where delegation silently diverges. ## What Was Observed Org A's orchestrator delegated a `redact_pii` operation to Org B's document agent. Org B's Agent Card, signed by Org B's key, advertised: ``` skills: [{ id: "doc.transform", operations: ["transform", "redact_pii", "translate"] }] ``` The caller validated the JWS signature against Org B's published JWKS, confirmed `redact_pii` appeared in `operations`, and dispatched. The remote runtime accepted the task envelope (schema-valid, signature chain intact) and routed to its tool adapter. The adapter's own policy table — never surfaced in the card — classified `redact_pii` as requiring an elevated `data_handling` grant that Org B's deployment had *not* provisioned for cross-org callers. The adapter did not reject; it fell back to the generic `transform` path, which returned the document with PII *unredacted* but a `200`-equivalent `TaskStatus: completed`. The caller's verification loop checked `TaskStatus` and the response schema, both of which passed. The downstream pipeline consumed an unredacted document under the assumption of redaction. The failure surfaced three hops later when a compliance scanner flagged the artifact. The trace: signature valid → negotiation string-match valid → task admitted → runtime scope mismatch → silent downgrade to broader-but-wrong operation → success status → caller accepts → downstream invariant violated. ## Condition of Validity This failure requires all of the following to co-occur, which is why it is rare but severe: 1. The signed card advertises capabilities at a **granularity coarser than the runtime's authorization table**. Cards are signed infrequently (they are identity artifacts); runtime policy tables change per-deployment. The two drift. 2. The remote runtime **degrades rather than rejects** on scope mismatch — falling back to a superset operation instead of returning an explicit `TaskStatus: rejected` with a reason code. 3. The caller's post-condition check validates **status and schema, not semantic outcome**. If the caller verified "did redaction actually occur" (e.g., by re-scanning the artifact), the silent downgrade would be caught. If the card's advertised scope exactly matches the runtime table, or if the runtime hard-rejects on mismatch, or if the caller checks semantic outcome, the failure does not occur. ## Decision Boundary The decision the caller must make: **is a string-match against the signed card sufficient admission evidence, or must the caller demand a runtime-scoped capability warrant?** - If the remote runtime returns a per-task **capability warrant** (a signed assertion binding `task_id` → the exact operation the runtime will execute, issued at admission time), the caller can verify the warrant's operation equals the requested operation before trusting the result. This is the correct guardrail. - If no warrant is available and the card granularity is coarse relative to the operation's risk class, the caller must treat the task as **unverified** and apply its own post-condition check on the artifact. - A caller that treats signature-valid + string-match as sufficient admission for any operation whose failure is not self-evident is operating outside the valid boundary. The boundary is crossed the moment the caller's requested operation is *narrower* than the card's advertised operation and the operation's failure mode is *silent* (returns success with wrong semantics) rather than *loud* (returns error). ## Operational Effect Delegations that cross this boundary produce **successful-looking tasks with semantically wrong outputs**. The failure is not in transport, not in identity, not in schema — it is in the gap between three scope declarations that A2A v1.0 does not force to be reconciled at admission. The operational consequence is that every cross-org delegation of a sub-operation whose failure is silent must carry either (a) a runtime-issued capability warrant the caller verifies, or (b) a caller-side semantic post-condition check. Absent both, the delegation is unaudited privilege escalation by omission — the remote agent executes a broader operation than requested, under its own authority, and reports success. The durable fix is to make the runtime scope explicit in the task response: the remote agent must echo the *executed* operation (not the requested one) in `TaskStatus.metadata`, signed, so the caller can diff requested vs. executed before consuming. That diff is the invariant. ```python class CapabilityScopeDivergence(RuntimeError): """Raised when the operation a remote A2A agent executed diverges from the operation the caller requested, despite a validly signed Agent Card and a passing capability-negotiation string match.""" pass def admit_delegation( requested_operation: str, signed_card_operations: list[str], runtime_warrant: dict | None, executed_operation: str | None, ) -> None: # Step 1: signature already verified upstream; card is trusted as identity. # Step 2: negotiation string-match against the signed card. if requested_operation not in signed_card_operations: raise CapabilityScopeDivergence( f"requested {requested_operation!r} not advertised in signed card " f"{signed_card_operations!r}" ) # Step 3: the boundary check the card cannot perform — runtime scope. # A card advertising a coarse skill does NOT prove the runtime will execute # the narrow operation. Demand a runtime warrant binding task->operation. if runtime_warrant is not None: warranted = runtime_warrant.get("operation") if warranted != requested_operation: raise CapabilityScopeDivergence( f"runtime warrant authorizes {warranted!r}, " f"caller requested {requested_operation!r}" ) else: # No warrant: caller must diff requested vs executed post-hoc. if executed_operation is None: raise CapabilityScopeDivergence( "no runtime warrant and no executed-operation echo; " "cannot confirm the remote agent ran the requested operation" ) if executed_operation != requested_operation: raise CapabilityScopeDivergence( f"remote executed {executed_operation!r} but caller requested " f"{requested_operation!r} — silent downgrade to broader scope" ) def consume_task_result(task: dict) -> dict: admit_delegation( requested_operation=task["requested_operation"], signed_card_operations=task["card_operations"], runtime_warrant=task.get("warrant"), executed_operation=task.get("status", {}).get("metadata", {}).get("executed_operation"), ) return task["artifact"] ```