A contract compatibility matrix is a table of verification results connecting consumer contract versions with provider versions. It shows which combinations are safe to deploy and which still need verification, giving teams a shared view of compatibility before release. section 9.1.1
The matrix records several contract states:
- Successfully verified. section 9.1.1
- Most recently verified as incompatible. section 9.1.1
- Not verified yet. section 9.1.1
- Awaiting verification because a newer contract version was published. section 9.1.1
Checking a production deployment
If provider version 42 is deployed to production, the matrix can show consumer version 13 as passed and consumer version 14 as failed. The can-i-deploy command uses these entries to allow version 13 and block version 14. Teams can add separate consumer and provider checks to their CI workflow before merging or deploying. section 10.2.5
Figure 9.5 Pact Broker matrix showing the history of consumer and provider versions with verification status
Browse the matrix history to compare consumer and provider versions alongside their verification status. section 9.1.1
