Skip to content
AI.info

AI agents

Agent2Agent Protocol and Remote Agent Collaboration

Use A2A concepts to discover remote agents, exchange tasks and artifacts, and preserve trust boundaries.

By the end you can

Example

Six attacks against the protocol's own demo agents

The A2A Project ships demo agents of its own. A team attacked them and counted what got through.

Six A2A-specific attacks were run against those official demo agents, in travel, healthcare and finance. Five of the six reached an attack success rate of 1.00 in all three domains: Capability Cloaking, Half-Open Task Flooding, Cycle Overflow, Agent-Side Request Forgery and Artifact-Triggered Script Injection. The sixth was AgentCard Spoofing. It averaged 0.820 in travel, 0.816 in healthcare and 0.828 in finance, across Gemini 2.5 Flash, GPT-4o, Claude 4, DeepSeek-R1 and Grok 4. The benchmark is A2ASecBench, published at ICLR 2026. A client agent choosing its partner from a published card was diverted to the attacker at those rates.

The failure sits in the discovery step itself. The paper puts it in one sentence: “attackers either publish near-duplicate, schema-valid cards that divert tasks (AgentCard Spoofing) or advertise benign capabilities while their backend exposes hidden ones (Capability Cloaking), leveraging the gap between declared identity/capabilities and actual behavior.”

Cloaking is not only a security cost. Benign task utility fell from 0.853 to 0.682 in travel, from 0.872 to 0.595 in healthcare and from 0.962 to 0.749 in finance. The delegated work got worse while still coming back looking finished. The attack also gets easier as the directory fills. As the number of injected lookalike cards k went 3 → 5 → 7, spoofing success rose from 76% to 87% to 95%. In none of these runs did the client side run an independent check. That was the condition being measured.

  • Decision at stake: Use A2A concepts to discover remote agents, exchange tasks and artifacts, and preserve trust boundaries — knowing that discovery is the step A2ASecBench broke five ways out of six.
  • Hidden assumption: A published Agent Card proves the quality of a remote agent's work. It does not establish even identity: AgentCard Spoofing averaged 0.820, 0.816 and 0.828 across the three domains.
  • Primary control question: Delegation can transfer work without transferring accountability — so who checked the artifact? Capability Cloaking cut benign utility to 0.682, 0.595 and 0.749 while the tasks still completed.
  • Evidence to collect: Remote work products meet the client's independent acceptance tests, rerun as the candidate pool grows — spoofing rose from 76% to 87% to 95% as k went 3 → 5 → 7.

A2A gives an interaction model, not authorization

The Agent2Agent protocol provides a common interaction model for discovering capabilities and exchanging messages, tasks, status, and artifacts with independent agent systems. The remote system may remain opaque to the client.

A2A complements tool protocols rather than replacing them. Both projects draw the line in their own words. MCP, says A2A’s documentation, “defines how an AI agent interacts with and utilizes individual tools and resources, such as a database or an API”. Then the split, in a single sentence: “A2A focuses on agents partnering on tasks, whereas MCP focuses on agents using capabilities.” The Model Context Protocol specification describes itself the same way: an open protocol for integrating LLM applications with external data sources and tools. The Linux Foundation makes the boundary an organizational one: “A2A defines how agents communicate and coordinate with each other across organizational boundaries, while MCP defines how agents connect to internal tools and data sources.”

Neither protocol removes the need to authenticate the caller, authorize the action, agree a contract, and evaluate the result. MCP is how your agent reaches a tool. A2A is how your agent hires another agent.

Discovering a capability is not the same as being permitted to use it: authentication, authorization, and the contract stay your problem after the protocol has done its part.

Case

Refusal is a task state, and the handover has a date

Refusal in A2A is not an error path bolted on afterwards. Task states include TASK_STATE_INPUT_REQUIRED, TASK_STATE_REJECTED and TASK_STATE_AUTH_REQUIRED. A remote agent that declines, stalls for input or demands credentials is producing a first-class outcome. The client has to handle it. Version 1.0.0 is equally explicit that the remote side stays opaque. Agents “collaborate based on declared capabilities and exchanged information, without needing to share their internal thoughts, plans, or tool implementations”. An Agent Card advertises identity, capabilities, skills, endpoint and authentication requirements. Nothing behind them.

The custody of the protocol is on the public record, from both sides of the handover. Google announced A2A on 9 April 2025. On 23 June 2025 the Linux Foundation launched the Agent2Agent project, seeded by Google’s transfer of the A2A specification, SDKs and developer tooling. The founding partners were Amazon Web Services, Cisco, Google, Microsoft, Salesforce, SAP and ServiceNow. The foundation described the protocol in one line: “A2A enables autonomous agents to discover one another, exchange information securely and collaborate across systems.” It quoted Executive Director Jim Zemlin: “By joining the Linux Foundation, A2A is ensuring the long-term neutrality, collaboration and governance that will unlock the next era of agent-to-agent powered productivity.” Google’s own post of the same day names the seven founding partners and states that “More than 100 companies now support the protocol”.

Two organizations, one date, two releases that agree. That is what a checkable record looks like. Hold a remote agent’s provider to it before you send a task.

Key idea

Delegation can transfer work without transferring accountability

The client may not know the remote agent’s model, tools, memory, or internal reviewers. A result that looks complete can still violate source, privacy, or policy requirements. A finished-looking artifact is the easiest thing for a remote agent to produce.

This is not a hypothetical worry about delegation. Work that nobody checked is one of the named categories in a measured taxonomy of why these systems fail. A 2025 paper asked why multi-agent LLM systems fail and answered with traces: MAST-Data, built from 1,600+ annotated execution traces across 7 popular multi-agent frameworks, with the taxonomy derived from rigorous analysis of 150 of them and inter-annotator agreement kappa = 0.88. It was a Spotlight Poster at NeurIPS 2025. The abstract states the result: “This process identifies 14 unique modes, clustered into 3 categories: (i) system design issues, (ii) inter-agent misalignment, and (iii) task verification.” One of the three top-level categories is task verification. That is the system accepting, or terminating on, work that was never checked.

Define acceptance criteria for artifacts. Verify consequential outputs. Retain the client organization’s responsibility for the final decision.

A polished deliverable proves nothing about the sources, permissions, or policies behind it, and the client is the last party who can still catch that.

Analogy

Hiring a Specialist Firm, Not Cloning a Colleague

Hiring a specialist firm means writing a statement of work, leaving the internal steps alone, and inspecting what comes back. That framing is not something this lesson imposed on A2A after the fact. It is the protocol’s own founding principle.

A2A was announced on 9 April 2025 “with support and contributions from more than 50 technology partners” — Atlassian, Box, Cohere, Intuit, LangChain, MongoDB, PayPal, Salesforce, SAP, ServiceNow, UKG and Workday among them. The first of the five design principles Google set out is that a remote agent is a peer, not a tool. Under the heading “Embrace agentic capabilities”: “A2A focuses on enabling agents to collaborate in their natural, unstructured modalities, even when they don’t share memory, tools and context. We are enabling true multi-agent scenarios without limiting an agent to a “tool.””

No shared memory, no shared tools, no shared context. A firm you hire, not a colleague you cloned. It works the same way, only faster. It can accept, subcontract and return an artifact before anyone reads the first status update. Each subcontract is another delegation the client never signed.

Interoperability needs acceptance tests as much as message formats.

Visual

The Agent Card is a self-written claim, and signing it is a MAY

An Agent Card advertises what a remote agent will do. The client agent decides whether to believe it. A task and its artifacts are what actually cross the boundary. Task and artifact belong to one owner and the trust contract to another, with tests to match.

The specification is precise about the first of those. An Agent Card is “A JSON metadata document published by an A2A Server, describing its identity, capabilities, skills, service endpoint, and authentication requirements”. Published by the server: it is a document the remote side writes about itself. Version 1.0.0, released on 12 March 2026, was the first stable specification. It also lists “Opaque Execution” among its five guiding principles. There is nothing behind the card to check the card against.

Nor does the protocol oblige a provider to prove the card is theirs. Cryptographic proof is OPTIONAL: Agent Cards MAY be signed with JSON Web Signature (RFC 7515). The specification explains what a signature would buy you: “Signatures allow clients to verify that an Agent Card has not been tampered with and originates from the claimed provider.” A MAY is not a MUST. Unless the client demands a signature and verifies it, tamper-evidence and provenance are exactly the two things the card does not carry. That is the gap AgentCard Spoofing walked through at 0.820, 0.816 and 0.828. Authentication is delegated the same way, to standard web mechanisms — HTTP headers, OAuth2, OpenID Connect — rather than defined by A2A. The identity work is yours to configure and yours to get wrong. Believing the card is a decision taken on your side.

FigureProcess · 5 steps
  1. 1

    Agent Card

    A discoverable description of identity, endpoint, skills, modes, and security requirements.

  2. 2

    Client agent

    The system acting on behalf of a user to initiate work.

  3. 3

    Remote agent

    An independent service that accepts and executes tasks.

  4. 4

    Task and artifact

    Durable units for progress, outputs, status, and handoff.

  5. 5

    Trust contract

    Authentication, authorization, data policy, evidence, and accountability.

Steps

Design a remote-agent delegation contract

Draft the delegation contract for one remote agent your organization would plausibly hire, acceptance tests included. It should expose that delegation can transfer work without transferring accountability, and preserve evidence that remote work products meet the client’s independent acceptance tests.

You do not have to invent the shape of that contract. Banking supervisors published one. The “Interagency Guidance on Third-Party Relationships: Risk Management” was issued jointly on 9 June 2023 by the Board of Governors of the Federal Reserve System, the FDIC and the OCC. It structures third-party risk management as a five-stage life cycle: (1) Planning, (2) Due Diligence and Third-Party Selection, (3) Contract Negotiation, (4) Ongoing Monitoring, (5) Termination.

The five steps of this exercise map onto it stage for stage. Verifying the Agent Card — provider, endpoint, skill scope, authentication, supported modes — is due diligence and selection. Specifying the task, with outcome, constraints, data limits, deadlines and evidence requirements, is contract negotiation. Controlling disclosure, sending only the information the remote skill requires, is what planning decided in advance. Validating artifacts against schema, provenance, policy and task-specific acceptance tests is ongoing monitoring. That is the stage nobody performed in the A2ASecBench runs. Planning failure handling — timeout, cancellation, partial artifacts, disputes, provider changes — is termination, written down before you need it.

On the question the whole exercise exists to settle, the guidance is blunt: “A banking organization’s use of third parties does not diminish its responsibility to meet these requirements to the same extent as if its activities were performed by the banking organization in-house.” A supervisor wrote down what a delegation contract otherwise has to assert on its own authority.

FigureProcess · 5 steps
  1. 1

    Verify the Agent Card

    Check provider, endpoint, skill scope, authentication, and supported modes.

  2. 2

    Specify the task

    Include outcome, constraints, data limits, deadlines, and evidence requirements.

  3. 3

    Control disclosure

    Send only the information required by the remote skill.

  4. 4

    Validate artifacts

    Check schema, provenance, policy, and task-specific acceptance tests.

  5. 5

    Plan failure handling

    Cover timeout, cancellation, partial artifacts, disputes, and provider changes.

Delegate only when a fixed call could not have done it

Use remote agents when independent capabilities justify the boundary. A deterministic service remains preferable when negotiation and autonomy add no value.

The test matters more as the boundary gets cheaper to cross, and it has become very cheap. On 9 April 2026, one year after the original announcement, the Linux Foundation reported that A2A had grown from more than 50 supporting organizations to more than 150 — AWS, Cisco, Google, IBM, Microsoft, Salesforce, SAP and ServiceNow among them. The core repository had surpassed 22,000 GitHub stars. The SDK ecosystem had gone from one Python implementation to five production-ready languages. Version 1.0, released on 12 March 2026, was the first stable specification, adding multi-tenancy and Signed Agent Cards. The Agent Payments Protocol (AP2) had more than 60 supporting organizations of its own. Rao Surapaneni of Google Cloud made the adoption case: “AI agents are only as useful as their ability to collaborate, and the adoption of A2A by more than 150 organizations underscores the widespread enthusiasm for an open, interoperable protocol.”

Easy to reach is not the same as right to use. Signed Agent Cards arrived in the same 1.0 release that leaves signing OPTIONAL. Adoption at this scale changes what is available, not what is verified. The client owns the review, not the remote agent. Delegation can transfer work without transferring accountability. The evidence that closes the loop is that remote work products meet the client’s independent acceptance tests.

If a fixed call would have done the job, the negotiation, autonomy, and review overhead you took on is pure cost.

Key takeaways