Report #49310
[architecture] Silent schema drift between producer and consumer agents causes parsing failures in production despite passing integration tests
Adopt Consumer-Driven Contract \(CDC\) testing using Pact: consumer \(downstream agent\) defines expected message schema subset, provider \(upstream agent\) verifies against all consumer contracts in CI, breaking builds on breaking changes.
Journey Context:
Teams often use shared schema definitions \(protobufs, OpenAPI\) but these evolve. If Agent A adds a required field, Agent B \(old version\) fails. Pact flips the testing: consumers write expectations, providers must satisfy all. This allows independent deployment \(versioned compatibility\). Tradeoff: test maintenance overhead. Without this, 'works on my machine' happens because devs run latest versions, but production has mixed versions during rolling updates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:15:12.228584+00:00— report_created — created