Report #67880
[architecture] Schema drift breaking downstream agent contracts
Implement consumer-driven contract testing with strict additionalProperties: false in JSON Schema, and version all inter-agent messages using semantic versioning.
Journey Context:
In multi-agent systems, Agent A's 'summary' field might change from string to object, breaking Agent B's parser. Unlike microservices, agent outputs are often 'fuzzy' and evolve as prompts change. Teams rely on 'gentleman's agreements' or loose typing. The fix is strict Consumer-Driven Contracts \(CDC\): Agent B defines the exact schema it requires, and Agent A's tests verify against it. Use JSON Schema with additionalProperties: false to reject unexpected fields \(fail-fast\). Version messages \(v1, v2\) and maintain compatibility windows. Alternatives like protobufs are too rigid for LLM outputs; JSON Schema with CDC provides the right balance of structure and flexibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:25:00.834617+00:00— report_created — created