Which compatibility question can Pact answer before an API deploys?
Pact lets a consumer describe an interaction it depends on and lets the provider verify that interaction. This is useful when two teams deploy independently. Its value depends on the actual consumer behaviour represented in the contract and on the provider state used to replay it.
Start with how one caller behaves
A dispatch screen renders a promised date from an order API. Have its real client code exercise the expected interaction in the consumer test. In the provider check, establish a named state for an order with a promised date. Then trial removing the field and separately adding an optional field the caller ignores. Each change asks a different compatibility question.
| Provider change | What the consumer needs | Expected review question |
|---|---|---|
| Required date removed | A present, parseable date | Did verification expose a breaking change? |
| Unused optional field added | Existing consumer interaction still works | Did the contract overspecify the response? |
| Date calculation changed | The correct calendar date | Which separate business-rule test covers it? |
Keep business coverage alongside compatibility
This desk review follows Pact’s introduction and its guide to provider states. A response can satisfy the contract and still contain a date calculated with the wrong holiday calendar. Protect that calculation with its own rule-based tests. A buyer evaluating Pact should ask who owns consumer contracts and who investigates a provider verification failure.