Guides
Detect downstream microservice impact before merging a GitHub PR
A practical workflow for checking an OpenAPI diff, finding affected consumers, and reading the evidence and coverage notes on a GitHub pull request.
On this page
Contract change and downstream impact are different checks#
A pull request can change an API contract without changing any consumer repository. The contract diff answers what the provider changed; downstream impact asks which selected consumer code calls that interface and relies on the changed part. Review both before merging.
- Breaking examples include removing an endpoint, removing a response field, changing a field type, adding a required request field, removing a request enum value, or changing a documented success status.
- A response change matters to a consumer when its code reads, maps, or otherwise handles the changed value. A route change matters when the consumer actually calls the changed endpoint.
- A report with no confirmed affected consumer means none was confirmed in the analyzed scope. It does not certify every deployed or external consumer.
Step 1: establish the PR and repository scope#
Confirm the provider contract
Identify the OpenAPI 3 document changed by the PR and make sure the implementation and published contract are intended to move together.
Select the consumer repositories
Include every repository that may call the provider. A consumer-only repository can contribute caller evidence even when it does not contain an OpenAPI document.
Check the indexed snapshot
Indexing reads a commit from each repository's default branch. Read the indexed commit and Coverage notes before treating an absence of evidence as meaningful.
Impact Gate compares the PR's exact base and head contracts, then inspects the selected consumer snapshots. It does not infer coverage for repositories that were not selected, could not be indexed, or are outside your GitHub installation scope.
Step 2: identify the contract changes#
Compare the OpenAPI document at the PR base commit with the document at the head commit. Tools such as oasdiff can list contract and breaking-change rules in CI. This is the contract-diff part of the review: it tells you which paths, parameters, schemas, statuses, or values changed.
| Change area | Questions for the reviewer |
|---|---|
| Endpoint or path | Was a route added, removed, or changed in a way that alters the call? |
| Request | Did a required parameter, field, content type, constraint, or enum value change? |
| Response | Could a caller receive a different status, media type, field, type, nullability, or enum set? |
| Contract coverage | Did the implementation change without a corresponding OpenAPI change? If so, record the drift as a review gap. |
Step 3: inspect downstream evidence#
For each changed operation or field, follow the consumer evidence to the repository, file, line, commit, and relevant code path. Impact Gate recognizes supported HTTP client patterns in JavaScript, TypeScript, and Java, then uses deterministic source analysis to distinguish a verified relationship from a possible one or an unresolved relationship.
- A verified result has a supported call or field access tied to the changed contract and source evidence you can inspect.
- Possible or cannot_tell means the relationship or impact is plausible but the available source evidence cannot establish it completely. Host association, dynamic URLs, generated code, and opaque data flow can leave this result unresolved.
- Not affected is a bounded conclusion about the inspected code. It is not evidence that no other consumer exists.
- A coverage gap is part of the result. Read it as an instruction to investigate, not as a low-risk conclusion.
Step 4: read the GitHub report before merge#
Open the Impact Gate check
Find the check on the PR and wait for analysis to finish. The check is advisory and does not block a merge.
Confirm the analyzed head
Compare the report's analyzed PR head with the latest commit. A later push supersedes work for an older head.
Read the assessment and findings
Review the contract change, consumer verdict, source references, suggested alternatives, and every coverage note.
Coordinate the change
Ask the consumer owner to confirm the source evidence and choose a compatible migration, a coordinated consumer update, or an explicitly accepted review gap.
If PR comments are enabled, the App updates its report comment for the PR. The dashboard provides the same evidence in more detail, but the GitHub check and report remain advisory rather than a compatibility certification.
A merge decision checklist#
- The provider contract diff is understood and implementation/contract drift has been considered.
- All relevant provider and consumer repositories are selected, indexed, and represented by the commits shown in Coverage.
- Every verified or possible consumer has an owner and a migration or review decision.
- Dynamic, generated, external, or unindexed consumers are recorded as gaps rather than treated as absent.
- The report corresponds to the latest PR head, and normal review, tests, and branch-protection rules have also been applied.
Worked example: a removed response field#
Example: a provider removes the trackingNumber response field. This is a reproducible example, not a hosted GitHub PR. Real reports show the exact base and head commits for the PR being reviewed.
change: remove response field trackingNumber| Consumer | Source reference | Observed fixture result |
|---|---|---|
| c03-shipment-tracker | c03-shipment-tracker client code | Failed: trackingNumber is missing |
| c06-order-fulfillment | c06-order-fulfillment client code | Failed: shipment trackingNumber missing |
| c12-shipment-status-default | c12-shipment-status-default client code | Passed; it does not require the removed field |
The fixture demonstrates why a contract diff and consumer evidence answer different questions: the provider change is the same, but the observed outcome differs by consumer. The remaining consumers passing does not prove that every external or unselected consumer is unaffected.
Worked example: an added response enum value#
Example: the provider adds ON_HOLD to the shipment status response. Some strict clients reject the new value and a tolerant client maps unknown values to a default.
change: add response enum value ON_HOLD| Consumer | Source reference | Observed fixture result |
|---|---|---|
| c03-shipment-tracker | c03-shipment-tracker client code | Failed: unknown status ON_HOLD |
| c06-order-fulfillment | c06-order-fulfillment client code | Failed: shipment status invalid |
| c12-shipment-status-default | c12-shipment-status-default client code | Passed; unknown values use the default branch |
Where Impact Gate fits#
Impact Gate combines supported OpenAPI contract comparison with selected cross-repository consumer evidence. It publishes source references, findings, and coverage limitations so the GitHub review can include both the shape of the change and the services that may depend on it.