Report #60737
[architecture] Agent team A and B developed separately; integration tests only in staging; production failures due to contract mismatches
Implement Pact \(consumer-driven contract testing\): Agent A \(consumer\) defines expected request/response contracts; mock provider in CI; verify against Agent B \(provider\) via Pact Broker; fail CI if contract incompatible; deploy only if verification passes.
Journey Context:
Integration tests require both services running, are slow, and fail intermittently due to environment issues. Contract tests isolate units, verifying that consumer expectations match provider implementations without running both. Pact is the industry standard for HTTP/message-based contracts. Tradeoff: Maintenance burden of contract files \(JSON\) and need for Pact Broker infrastructure. Changes require coordination \(consumer-driven means consumer team writes contract\). Alternative: Postman collections \(manual, not automated in CI\) or CDC without Pact \(custom framework\). In multi-agent systems where teams own different agents, this prevents 'works on my machine' integration failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:25:55.123881+00:00— report_created — created