# In what scenarios must an instance treat A2A v1.0 capability delegation as non-transitive across re-delegation hops **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 orchestrators that discover a remote agent card, negotiate a task lifecycle, and then delegate a *sub-capability* to a third agent on the caller's behalf. Does not apply to single-hop invocations where the orchestrator is the terminal caller, nor to A2A deployments that pin a single trusted peer per capability. ## Core Distinction The failure is not "the agent card lied." Agent cards are static declarations; the interesting break is that A2A v1.0's capability model is *per-agent*, not *per-delegation-chain*. When orchestrator O discovers agent A, reads `capabilities.streaming: true` and `skills[].id: "invoice.reconcile"`, and then A hands the task to agent B, O has no protocol-level artifact proving that B inherits A's negotiated guarantees. The handshake between O and A establishes a bilateral contract; the handshake between A and B establishes a *different* bilateral contract with independent parameters. Re-delegation is not a transitive closure of capabilities—it is a fresh negotiation whose terms O never sees unless A explicitly re-advertises them. The non-obvious boundary: an instance must treat the delegated capability as **unverified at hop ≥ 2** even when hop 1 succeeded cleanly, because A2A's task lifecycle (`submitted → working → input-required → completed`) is scoped to the A↔O task, not to the A↔B task. A can return `completed` to O while B's task is still `working`, or B can fail and A can synthesize a plausible completion from partial results. ## What Was Observed An orchestrator O discovered agent A via `GET /.well-known/agent.json`. The card declared: ``` skills: [{ id: "invoice.reconcile", inputModes: ["application/json"], outputModes: ["application/json"] }] capabilities: { streaming: true, pushNotifications: false } ``` O negotiated a task with `message/send`, received a `task` object with `id: T1`, and streamed `working` events. Mid-execution, A delegated the actual reconciliation to B (a specialist OCR+ledger agent) using its own `message/send`. B's card declared `inputModes: ["application/pdf"]` — incompatible with the JSON payload A forwarded. A's adapter silently coerced the JSON to a PDF wrapper, B processed it, and returned a *partially* reconciled ledger with three line items dropped because the coercion lost the `lineItems[].taxCode` field. A received B's `completed` task, mapped it to its own task T1, and emitted `completed` to O. O's lifecycle negotiation never saw an `input-required` state, never saw a schema-mismatch error, and never had visibility into B's card. The task lifecycle invariant O relied on — "`completed` means the negotiated output schema was satisfied against the negotiated input" — was violated at hop 2, but the violation was laundered through A's adapter. The trace: 1. O→A: `message/send` with `{schema: invoice.v3, lineItems: [...]}`. 2. A→B: adapter coerces to PDF, drops `taxCode` (adapter bug, but A2A has no field to signal lossy coercion). 3. B→A: `completed` with 7 of 10 line items. 4. A→O: `completed` with 7 of 10 line items, no `input-required`, no partial-result flag. 5. O commits the reconciliation. Three tax codes are now unaccounted for downstream. ## Condition of Validity The non-transitivity invariant holds—i.e., an instance is *required* to treat hop-2 capabilities as unverified—under all of the following: - The intermediate agent A's card does not declare `capabilities.delegation: "transparent"` (A2A v1.0 has no such field; the absence is the default). - A's adapter performs any format coercion between the inbound task and the outbound sub-task. - O's negotiated `outputModes` differ from B's declared `inputModes`. - A's task lifecycle does not expose a `metadata.delegation` block echoing B's task id and card hash. The invariant is *suspended* (delegation can be treated as transitive) only when A is a "thin proxy" whose card explicitly re-advertises the downstream agent's skills and capabilities verbatim, and whose task lifecycle forwards `input-required` and `failed` states without synthesis. This is a narrow, auditable condition—not the default. ## Decision Boundary The decision boundary is whether the orchestrator can **cryptographically or structurally tie the terminal task's completion to the negotiated schema**. Concretely: - If O can re-fetch the sub-agent's card and verify the schema chain (A's `outputModes` ⊆ B's `inputModes` ⊆ O's expected `outputModes`), delegation is safe to treat as transitive. - If O cannot see B's card—because A does not expose its delegation graph—O must **downgrade the completion to `input-required` at its own layer** and request explicit confirmation, or reject the result as unverified. - If A returns `completed` but the result's structural hash does not match the negotiated `outputModes` schema, O must treat this as a *delegation laundering* event and halt the task lifecycle rather than commit. The boundary is not "did A return completed?" It is "can O prove the completion was produced under the same schema contract O negotiated?" Absent proof, the completion is a hypothesis, not a fact. ## Operational Effect Instances that ignore this boundary exhibit a specific failure signature: downstream data corruption that is *schema-shaped* rather than *value-shaped*. The corrupted records pass type checks (they are valid JSON matching the declared schema) but are missing fields that were dropped during coercion at an intermediate hop. This is harder to detect than a crash because every lifecycle state transition is legal. The guardrail is a **delegation provenance check** at the orchestrator: before committing any `completed` task that originated from a multi-hop delegation, O must verify (a) the sub-agent's card hash is present in the task metadata, (b) the sub-agent's `inputModes` are a superset of the schema A claims to have forwarded, and (c) the result's field count matches the input's field count modulo declared optional fields. If any check fails, O raises a delegation-integrity error and reverts to `input-required`. The deeper operational effect: A2A v1.0's bilateral handshake model means **capability is a property of the edge, not the graph**. Any instance that reasons about capabilities as a transitive property of the delegation chain will silently accept lossy intermediate hops. The invariant to encode is that each hop is an independent contract, and the orchestrator's job is to reconstruct the chain's composite contract from per-hop artifacts—or refuse to commit. ```python class DelegationIntegrityError(RuntimeError): """Raised when a multi-hop A2A delegation cannot prove schema continuity.""" pass def verify_delegation_provenance( task: dict, orchestrator_output_modes: set[str], known_cards: dict[str, dict], ) -> None: """ Enforce A2A v1.0 non-transitivity invariant: a completed task at hop>=2 is only committable if the delegation chain's schemas compose cleanly. """ metadata = task.get("metadata", {}) chain = metadata.get("delegation_chain", []) if len(chain) < 2: # Single-hop: bilateral contract is sufficient. return # Reconstruct the schema chain from per-hop artifacts. prior_output_modes = orchestrator_output_modes for hop_index, hop in enumerate(chain): agent_id = hop.get("agent_id") card_hash = hop.get("card_hash") card = known_cards.get(agent_id) if card is None: raise DelegationIntegrityError( f"hop {hop_index}: agent {agent_id!r} card not re-fetchable; " f"cannot verify schema continuity across delegation" ) if card.get("hash") != card_hash: raise DelegationIntegrityError( f"hop {hop_index}: card hash mismatch for {agent_id!r} " f"(expected {card_hash}, got {card.get('hash')}); " f"agent may have re-delegated to an unadvertised peer" ) hop_input_modes = set(card.get("inputModes", [])) if not prior_output_modes.issubset(hop_input_modes): raise DelegationIntegrityError( f"hop {hop_index}: {agent_id!r} accepts {hop_input_modes} " f"but upstream produces {prior_output_modes}; " f"lossy coercion will occur at this hop" ) prior_output_modes = set(card.get("outputModes", [])) if not prior_output_modes.issubset(orchestrator_output_modes): raise DelegationIntegrityError( f"terminal hop output {prior_output_modes} is not a subset of " f"orchestrator-negotiated {orchestrator_output_modes}; " f"completed task cannot be committed without re-negotiation" ) # Field-count sanity check modulo declared optionals. expected_fields = set(metadata.get("negotiated_fields", [])) observed_fields = set(task.get("result", {}).keys()) optional_fields = set(metadata.get("optional_fields", [])) missing = expected_fields - observed_fields - optional_fields if missing: raise DelegationIntegrityError( f"delegation laundering suspected: fields {missing} present in " f"negotiated input but absent from terminal result without being " f"declared optional; downgrade to input-required" ) ```