Impact GateDocs

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#

  1. Connect the GitHub installation

    Use an installation with access to the provider and consumer repositories that should be analyzed.

  2. 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.

  3. Index each repository

    Indexing reads an immutable default-branch commit and records detected services, contracts, routes, source references, and coverage conditions.

  4. Review the inventory

    Open APIs and Coverage to confirm the expected provider operations, consumer languages, supported files, and indexed commits are present.

  5. 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#

  1. Start with the changed operation

    Open the provider API and identify its method, route, changed parameter, request field, response field, status, or content type.

  2. 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.

  3. Check service identity

    Compare the provider and consumer service context. A unique path can suggest a relationship while deployment host association remains unverified.

  4. 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.

  5. 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#

  1. Open the provider PR

    Read the contract diff at the exact base and head commits and identify the consumer relationships that may be affected.

  2. Create or locate consumer work

    Ask owners to update consumers in their repositories, or decide on a backward-compatible provider transition.

  3. 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.

  4. 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 stateCoordination meaning
StaticA relationship came from supported indexed source code.
RuntimeA source supplied matched route activity and, for a dependency edge, an explicit mapped caller identity.
BothStatic and runtime evidence support the relationship; inspect their windows and commits separately.
Possible / unresolvedThe 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.

Explore the documentation

↑↓ NavigateEnter Open guideSearch stays in your browser