Report #58277
[architecture] Agent output schema silently drifts breaking downstream consumers
Implement JSON Schema contracts with backwards compatibility rules and automated breaking change detection in CI. Treat inter-agent boundaries as public APIs with consumer-driven contract tests \(Pact\) rather than loose typing.
Journey Context:
Teams often skip strict typing between agents for speed. When agent A adds a field or changes a type, agent B fails unpredictably in production. The fix is strict semver on message contracts and CI gates that reject PRs breaking downstream consumers. Alternatives like protobuf require codegen that slows iteration; JSON Schema with Pact testing hits the sweet spot of rigor without compile-time coupling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:18:23.122163+00:00— report_created — created