Guides
Cross-repository API change impact analysis
Build a provider-to-consumer view across selected repositories, follow endpoint evidence, and coordinate changes with clear scope and coverage limits.
On this page
Why API review crosses repository boundaries#
The provider contract and its callers often live in different repositories. A provider PR can therefore be valid in isolation and still break a client that is released on another schedule. Cross-repository impact analysis connects the contract change to the consumer code that is in scope for review.
- Provider repositories contribute OpenAPI 3 contracts, endpoints, schemas, and PR contract comparisons.
- Consumer repositories contribute supported HTTP client references and source evidence, even when they do not contain a provider contract.
- The connected workspace keeps repository scope, source commits, endpoint relationships, and coverage notes visible so an edge is not mistaken for universal production knowledge.
Build a useful cross-repository scope#
Connect the GitHub installation
Use an installation with access to the provider and consumer repositories that should be analyzed.
Select providers and consumers
Choose the repositories containing the API contracts and the applications that call them. Start with one provider and its known consumers, then expand.
Index each repository
Indexing reads an immutable default-branch commit and records detected services, contracts, routes, source references, and coverage conditions.
Review the inventory
Open APIs and Coverage to confirm the expected provider operations, consumer languages, supported files, and indexed commits are present.
Re-index after meaningful changes
Refresh a consumer after adding a generated client, restoring access, or changing code on its default branch. An unmerged consumer branch is not automatically represented by the workspace index.
Follow a provider-to-consumer relationship#
Start with the changed operation
Open the provider API and identify its method, route, changed parameter, request field, response field, status, or content type.
Inspect the consumer reference
Open the linked file and line at its recorded commit. Verify the HTTP call, route construction, and how the changed value is used.
Check service identity
Compare the provider and consumer service context. A unique path can suggest a relationship while deployment host association remains unverified.
Continue through code flow
Use the API flow to inspect handlers, reachable functions, conditional paths, and downstream API boundaries. The flow shows mapped reachability and does not record actual request values or branch executions.
Export the snapshot when coordinating
Export the dependency snapshot as JSON when a review needs to be shared. Keep its snapshot ID and source commits with the discussion.
A graph edge is a useful investigation path, not an automatic production dependency assertion. Inspect the underlying source evidence and confidence before assigning migration work.
Coordinate a change across repositories#
Open the provider PR
Read the contract diff at the exact base and head commits and identify the consumer relationships that may be affected.
Create or locate consumer work
Ask owners to update consumers in their repositories, or decide on a backward-compatible provider transition.
Re-index and re-run review
After consumer changes reach their indexed default branches, refresh the index and review the provider PR again. The PR report remains tied to its current head.
Record what remains out of scope
List external clients, repositories not selected, dynamic or generated paths that were not resolved, and runtime sources not connected.
| Evidence state | Coordination meaning |
|---|---|
| Static | A relationship came from supported indexed source code. |
| Runtime | A source supplied matched route activity and, for a dependency edge, an explicit mapped caller identity. |
| Both | Static and runtime evidence support the relationship; inspect their windows and commits separately. |
| Possible / unresolved | The relationship needs owner or deployment review before it can guide a definitive migration decision. |
Boundaries to keep visible#
- Only selected and accessible repositories are in scope. A repository outside the installation or workspace selection remains unobserved.
- Supported static analysis covers documented JavaScript, TypeScript, and Java HTTP client patterns. Dynamic URL construction, generated or opaque code, and non-HTTP channels can leave evidence unavailable.
- The current code flow follows mapped reachability and outbound HTTP boundaries. A downstream API has its own flow and telemetry; upstream functions do not inherit every request to it.
- Runtime route activity is aggregate service/route evidence. It does not prove that a particular source call site executed unless caller context is explicitly supplied.
- Provider implementation behavior that is not represented in the OpenAPI contract can drift without appearing as a contract difference. Record that as a review gap.