Idea · Sep 13, 2026
Protocol Interop Lab
Students design and implement a custom agent-to-agent communication protocol, build two cooperating AI agents that use it to solve a shared problem, then test interoperability with a stranger's implementation on Interop Day.
What it would do
CS students build individual agents all semester but rarely design the protocol that lets two agents built by different people communicate reliably. Protocol Interop Lab has three graded phases. Phase 1 (week 1-2): design a protocol spec document covering message schemas using Pydantic, a handshake/session mechanism, error handling and retry semantics, and an observability contract (what structured JSON logs must contain). Phase 2 (week 3-5): implement two cooperating agents in Python using asyncio and WebSockets that use the spec to solve a shared problem from a provided menu. An automated test harness validates the protocol against the spec. Phase 3 (week 6 - Interop Day): pairs swap specs with a randomly assigned stranger and have 90 minutes to make their agents talk to each other using only the other pair's spec document. The gap analysis from Interop Day, which covers what broke, why, and how the spec should have been written, is the final reflection. Students learn protocol design, async Python, serialization, observability, and how to write specifications that are both precise enough to implement and unambiguous enough that a stranger can implement them correctly.
Key features
- Protocol spec deliverable: message schemas (Pydantic), handshake/session semantics, error recovery rules, and observability contract (structured JSON log format)
- Two cooperating agents (Python, asyncio + WebSockets) that solve a shared problem chosen from a provided menu: collaborative sorting, distributed document summarization, or multi-agent code review
- Automated test harness that validates the protocol against the spec before Interop Day
- Interop Day: pairs exchange specs with a stranger and attempt to make agents communicate; gap analysis becomes the final reflection deliverable
- Optional React + Vite flow-visualization dashboard showing message sequences and retry counts in real time