October 11, 2026
Rock'em Sock'em Agents, and the bug I found in Docker Agent
A weekend game built from three AI agents talking over A2A turned up a real bug in Docker's open-source Docker Agent. I reproduced it, found the cause, and sent a fix upstream.
I watched a Better Stack video this weekend about moving AI agents from Python to Docker Agent. In it, two models play Battleship against each other over A2A, the agent-to-agent protocol, while a third agent referees. I wanted the same setup with simpler rules, so I built Rock'em Sock'em Robots on my Windows desktop. Along the way the referee could not reach the robots, and the cause turned out to be a bug in Docker Agent itself, which I reported upstream and then wrote a fix for.

The game
Docker Agent (the docker/docker-agent project) defines agents in YAML. docker agent serve a2a turns an agent into an A2A server, and an a2a toolset lets one agent call another by URL.
The whole game lives in one folder. ring.py is a small Python server that holds the fight state and serves the live page in the screenshot: two robots, health bars, a head that pops off on a knockout, trash talk, and a round log. robots.yaml defines three agents. Red Rocker runs GPT-OSS 120B, Blue Bomber runs Nemotron 3 Super, and the referee runs Gemma 4, all free models through Ollama.
The rules fit in one line. A jab beats a haymaker's wind-up, a haymaker beats a block, a block beats a jab, and two haymakers hurt both robots. Each starts with 100 HP. After 15 rounds the fight goes to points, or it ends sooner on a knockout. Round 4 in the picture shows the haymaker-versus-block case: Red swings, Blue blocks and still takes 20.
Three failures, one at a time
The first runs failed in three different ways, and I fixed them in order.
First, the three agents shared one session database and collided with each other, which a separate data folder for each agent cleared up.
Second, the referee could not reach the ring server. Docker Agent's API tool refuses private addresses by default, and the ring runs on localhost, so I set allow_private_ips: true on that tool and the referee could see the ring.
Third, the referee could not call the robots at all:
failed to create A2A client: no compatible transports found: available transports - []
That one did not respond to configuration changes, so I stopped adjusting my files and looked at what the robot was actually sending.
Reading the agent card
An A2A server publishes an agent card at /.well-known/agent-card.json that tells clients how to reach it. The card my robot served was in the A2A 1.0 shape: it has a supportedInterfaces list and no top-level url. Docker Agent's own a2a toolset was still built on the v0.3 version of the a2a-go library. That library reads url and preferredTransport, finds no interfaces in a 1.0 card, and gives up with the empty transport list above.
So both sides came from the same Docker Agent release, and they disagreed about the protocol version. The history explains how. In docker-agent PR #4041, merged on 31 August 2026 and first released in v1.129.0, serve a2a moved to the newer adka2a/v2 library and began publishing 1.0 cards. The client-side toolset stayed on the old library.
To be sure it was the tool and not my setup, I cut it down to a two-file reproduction and ran it on two versions. It fails on v1.144.0, the copy bundled with Docker Desktop on Windows, and on v1.150.0, the latest release, on both macOS and Windows. It works on v1.128.0, the last release before the server change. I pinned the game to v1.128.0 in its own folder so I could keep going.
The first full fight
With the pin in place the game ran end to end. The first complete fight on Windows went all 15 rounds, with Blue Bomber winning on points, 46 to 22.
Filing it, then fixing it
I filed docker-agent issue #4571 with the two-file reproduction, both agent cards, the cause, a workaround, and a suggested fix. The title says what happens: the a2a toolset cannot call agents served by serve a2a since v1.129.
Since I had already traced it, I wrote the fix as well. The pull request is #4572, "fix(a2a): read A2A 1.0 agent cards in the a2a toolset". It moves pkg/tools/a2a to a2a-go/v2 and parses cards with the library's v0.3 compatibility parser, which accepts both the 1.0 and 0.3 shapes. The client also registers the v0.3 JSON-RPC transport next to the 1.0 one, so agents sitting behind older A2A servers keep working.
I wanted the proof to be something a maintainer could rerun, so I checked it in several ways:
- A new test,
TestToolSetCallsA2AV1Server, serves a 1.0 card from an a2a-go/v2 server. It fails on upstream main with the exact error from my game, and it passes with the change. - The existing tests that serve 0.3 cards still pass. To confirm they really exercise the compatibility path, I switched the v0.3 transport off, and four of them failed with "available transports - [JSONRPC_0.3.0]".
- golangci-lint at the version CI uses, the project's own lint, and
go mod tidyall came back clean. - By hand, the fixed client called a fixed server and also a v1.128 server, and both answered.
One thing I left alone
While testing I noticed that replies come back doubled. An agent that answers PONG arrives as PONGPONG. It happens on v1.128.0 on both ends, so it predates the 1.0 change and has nothing to do with this fix. I mentioned it in the pull request and did not touch it, because mixing it in would make the change harder to review.
Where it stands
The pull request is open from my fork, and it is waiting on a maintainer to review it. I do not know what they will decide, and I would rather leave that to them than guess here.
The part I keep thinking about is how it started. I wanted a silly game to see how agents talk to each other, and the quickest way to find a protocol bug turned out to be asking two different agents to trade punches through it. For now the robots stay pinned to v1.128.0 in their folder.