Multi-Agent Interoperability: A2A Protocol and Registry Practices

    This article explains why single-agent architectures hit their limits in production and how multi-agent collaboration addresses those limits through responsibility separation. It outlines the common challenges of multi-agent systems, including fragmented protocols, difficult discovery, rigid routing, complex orchestration, missing governance, and poor external accessibility. It then breaks down the key elements of an Agent-to-Agent (A2A) protocol—capability descriptions, task interaction semantics, and message/part models—and presents a bidirectional integration approach for both consuming and exposing agents. Finally, it describes the role of a unified registry, layered routing and orchestration recommendations, and a pre-launch checklist with common pitfalls to avoid.

    1. Why Single Agents Give Way to Multi-Agent Systems

    Early agent applications were typically built around “one model + one set of prompts + a few tools.” Task boundaries were clear, chains were short, and results were easy to evaluate. Once these applications move into real production environments, however, requirements quickly become multi-dimensional: the system must query data, run approvals, generate reports, and push results to external systems. A single agent forced to carry all of these responsibilities ends up with bloated prompts, tool descriptions that interfere with one another, and a context window crowded out by irrelevant information. The result is an agent that can do a little of everything but does nothing well.

    The core driver of multi-agent collaboration is the maintainability and scalability that come from splitting responsibilities. Assigning retrieval, computation, review, and generation to agents with different specialties, then composing them at an orchestration layer, keeps each unit small and focused. But splitting also introduces new engineering problems: who registers these agents, how they are discovered, how their capabilities are understood by machines, how tasks are routed, and how call chains are observed. Without a shared convention, a multi-agent system degrades into a pile of private interfaces that are hard to maintain.

    2. Typical Challenges in Multi-Agent Collaboration

    Fragmented protocols. Each framework defines its own message format, its own authentication method, and its own error codes. Agents from different sources require an adapter for every pair, so integration cost grows roughly with the square of the number of agents.

    Difficult discovery. Agents are deployed across different network domains and environments. Without standardized capability descriptions, callers can only assemble addresses and parameters from manually maintained configuration tables, which break easily when environments are migrated.

    Rigid routing. Many implementations hardcode the target agent into the workflow, with no way to select dynamically based on task semantics, load, cost constraints, or compliance requirements. Elasticity and fault tolerance are both weak.

    Complex orchestration. Multi-agent collaboration requires stacking large numbers of conditional branches and fallback logic into the flow. Readability drops, regression testing costs rise, and a single change often ripples across the whole system.

    Missing governance. Without centralized registration and metadata management, there is no version canary release, permission isolation, quota and rate limiting, or call auditing. Locating problems often comes down to comparing log entries one by one.

    No external access. Agents built inside a platform are hard for external systems to discover and call in a standard way. This creates capability silos and heavy duplication of effort.

    3. The Protocol Perspective: Key Elements of Agent-to-Agent

    The approach the industry is converging on is a communication specification aimed at agents, used to decouple “providers” from “callers.” Such specifications typically contain three layers of elements:

    1. Capability description (an AgentCard-style document): declares identity, version, input/output schemas, the list of supported skills, and authentication requirements in a structured, machine-parseable form. It is usually hosted at an agreed path so that discovering parties can pull it.
    2. Task interaction semantics: distinguishes “immediate return” from “long-running tasks.” Long-running tasks need a three-stage flow of task ID, status query, and result retrieval, and should support streaming incremental output.
    3. Message and part model: unifies text, files, and structured data into composable parts, so callers across languages and frameworks do not need to understand the internal implementation of the other side.

    A schematic capability description can be abstracted as:

    1. {
    2. "name": "report-agent",
    3. "version": "1.2.0",
    4. "endpoint": "https://internal.example/agents/report",
    5. "skills": [
    6. { "id": "build_report", "input": ["dataset_id", "template"], "output": ["file"] }
    7. ],
    8. "auth": { "type": "bearer" }
    9. }

    The minimal flow on the caller side looks close to:

    1. Pull capability description -> Validate version and skill match -> Create task -> Poll or subscribe to status -> Retrieve result parts

    4. Bidirectional Integration: Both Calling and Being Called

    Truly solving interoperability requires opening up both directions at once; they complement each other rather than replace each other.

    Direction 1: Outbound calls (consuming external agents). Add a protocol adapter plugin on the application platform side, with built-in capability description parsing, message format conversion, authentication pass-through, and long-task polling. This lets orchestration nodes call any compliant external agent just like an ordinary tool. The key is to keep protocol details contained inside the plugin, so the orchestration layer only faces a unified input/output schema.

    Direction 2: Inbound exposure (providing agents as services). Automatically wrap agents built on the platform into a standard capability description and publish them at a fixed access path, so external callers can discover and integrate them without knowing the internal implementation. Publishing should support version coexistence and canary switching to avoid call interruptions during upgrades.

    The two directions share the same metadata and governance policy, which is what closes the loop: the registry is both the data source for outbound discovery and the destination for inbound publishing.

    5. A Unified Registry: Bringing Discovery and Governance Together

    The registry carries four types of responsibility. Registration and metadata management: storing capability descriptions, versions, tags, owners, and the domain each agent belongs to. Discovery and retrieval: supporting multi-path recall by skill, tag, and semantic similarity, returning a candidate list along with match reasons. Health and status: periodic liveness probing, marking availability and latency for use in routing decisions. Governance policy: unified authentication, quota and rate limiting, canary release, and auditing.

    In related practice at Baidu AI Cloud, this kind of capability is typically carried by general cloud product categories—for example, using a container platform to deploy agents and registry services, a message queue to handle long-task events, object storage to hold large result parts, and logging plus monitoring and alerting to complete the observability loop. These are all general industry capability combinations and do not depend on any vendor-proprietary interfaces.

    6. Practical Recommendations for Dynamic Selection and Orchestration

    Routing should not rely on semantic similarity alone. A layered decision approach is recommended: first apply a hard filter by compliance domain and permissions, then score by skill match and historical success rate, and finally layer on load and cost constraints. Pseudocode illustration:

    1. def select_agent(task, registry):
    2. cands = registry.search(skill=task.skill, tags=task.tags)
    3. cands = [c for c in cands if c.health and c.version_ok(task)]
    4. if not cands:
    5. raise NoCapableAgent(task.skill)
    6. return max(cands, key=lambda c: score(task, c))
    7. def score(task, c):
    8. return 0.5 * c.skill_match + 0.3 * c.success_rate - 0.2 * c.cost_index

    The orchestration layer should follow three principles: first, make retry, timeout, and fallback cross-cutting capabilities rather than scattered branches; second, route all long-running tasks through “create—query—retrieve result” to avoid holding long-lived connections; third, generate a trace identifier for every call that runs through the entire chain, making cross-agent troubleshooting easier.

    7. Pre-Launch Checklist and Common Pitfalls

    Before going live, check the following: whether the capability description can be pulled normally by external parties; whether the version field participates in routing decisions; whether authentication credentials follow least privilege and can be rotated; whether long-running tasks have timeout and idempotency guarantees; whether oversized result parts are passed by storage reference rather than inline transmission; and whether there is a local fallback cache when the registry is unavailable.

    Common pitfalls include: treating the registry as the single hard dependency with no fallback; writing capability descriptions too broadly, which leads to misrouting; ignoring schema incompatibility caused by version upgrades on the other side; and building only outbound and not inbound, which leaves the system an island in the end. By following the approach above, a multi-agent system can move from “it runs” to “governable and evolvable.”