- Category: C. AI Engineering & LLM Ops
- English term: Agent-to-Agent (A2A)
- Related: Agent Harness · Independent Verification (Verifier) · Deterministic Verification · Asymmetric Tiered AI Architecture (Tier 1-3) · Receipt and Definition of Done
General Meaning
Agent-to-Agent (A2A) is a multi-agent coordination pattern where specialized AI agents collaborate to complete a workflow rather than assigning every step to a single monolithic agent.
By splitting responsibilities into distinct stages—such as planner, implementer, tester, and reviewer—and passing artifacts and findings between agents, each stage only needs a focused prompt and a minimal set of tools. This prevents context window overflow in a single session and improves artifact quality through objective cross-examination.
Why It Matters
- Eliminating self-confirmation bias: An AI inspecting code or text it just wrote rarely catches its own flawed assumptions; passing the work to a separate reviewer agent catches oversights.
- Preventing context bloat and confusion: Stuffing every background document and tool definition into one agent increases instruction drift and hallucinations; splitting by stage keeps context lean.
- Enforcing least privilege per role: Allows granting file-edit tools to the author stage while restricting the reviewer stage strictly to read-only tools.
How the Site Factory Uses It
Under the October 30, 2026 A2A redesign plan (ops/plans/2026-10-30-role-and-a2a-redesign.md), the Site Factory restricts A2A hosting strictly to Studio 1 (36GB) and Studio 2 (96GB) (Tier 2 architecture), formally excluding Mac mini (16GB) after lessons from overload and token waste (17,000 tokens consumed with zero output). Integrated with Cloudflare D1 workflow management, A2AStageClaim in honbu/a2a_host.py claims jobs and executes them under lease protection (LeaseCancellation), verifying PlanStore hashes (source_sha256) to block prompt tampering from peer agents.
In the Site Factory's A2A pipeline, deterministic Python checks serve as the primary gate and LLM review as secondary; creation stages have write access while review stages are strictly read-only. Intermediate artifacts are stored in Git under refs/a2a/<work>/<stage> and automatically cleaned up after 7 days via ArtifactRepository.prune(). On-device validation achieved 20/20 error detection (0 false acceptances across 15 bad candidates and 0 false rejections across 5 valid candidates).
Caveats & Operational Rules
- Do not let agents chat freely in natural language: Unconstrained back-and-forth chat between LLMs quickly degenerates into digressions, infinite loops, or mutual praise; strict stage contracts, deterministic code checks, and hash verification are essential.
- Do not deploy uniform agent workloads across asymmetric hardware: Forcing a 16GB Mac mini to run a 64K-context multi-agent harness wastes compute without producing results; match roles to hardware tiers.
Related Terms
- Agent Harness
- Independent Verification (Verifier)
- Deterministic Verification
- Asymmetric Tiered AI Architecture (Tier 1-3)
- Receipt and Definition of Done
References
- Book: Sam Newman, "Building Microservices", Chapter 4 (Integration and Orchestration vs. Choreography)
Verified: 2026-11-08