Report #74777
[architecture] Silent schema drift breaks downstream agents when upstream agents add or rename fields without versioning
Implement consumer-driven contract testing using Pact. The consumer agent defines the expected schema \(the 'pact'\), and the producer agent verifies against it in CI before deployment. Set \`pactBroker\` to version contracts and fail builds on incompatible changes.
Journey Context:
Without contracts, integration failures happen in production. Unit tests miss cross-team breaking changes. Pact decouples deployment from integration testing but requires discipline to update contracts when intentional changes occur. Alternative: Postel's Law \(be liberal in what you accept\) fails in multi-agent systems because it masks contract violations until they cascade.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:06:45.617249+00:00— report_created — created