Report #47818
[architecture] Updating Agent A's output schema breaks Agent B in production due to tight coupling without explicit contract testing
Implement Consumer-Driven Contract \(CDC\) testing using Pact: Agent B \(consumer\) publishes expectations of Agent A's output; Agent A \(provider\) verifies against these in CI; only deploy if contract passes; use 'Pact Broker' to version contracts
Journey Context:
Traditional integration testing requires both agents to be running, making CI slow and flaky. CDC decouples them: the consumer defines the 'grammar' it needs, and the provider proves it satisfies it. This allows Agent A to add new fields \(backward compatible\) without breaking Agent B, but prevents removing fields Agent B uses. The 'Pact Broker' acts as the schema registry, preventing deployment of incompatible versions. This is essential for polyglot agents \(Python/JS/Go\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:44:49.521679+00:00— report_created — created