Skip to content

Understand dependencies across multiple repositories

Usually an architect or a platform engineer, before a contract changes

See who calls each endpoint, subscribes to each event and reads each table, found in the callers' own repositories and traced hop by hop.

Fig. 01Understand dependencies across multiple repositories

The problem

A repository shows what it calls, subscribes to, and reads, but not which other apps call its endpoints, receive its events, or read its tables. That information is spread across other teams' repositories. When a contract changes, its callers and consumers can be missed. A diagram arrow shows that two systems are connected, but not which contract is involved, and it can fall out of date as the code changes.

How it goes

The same steps the product’s playbook walks. Each one shows the screen at that moment and opens the video there.

  1. Map each repository

    Run the analysis from each repository. ProvenMap creates an app board for each one and adds its app to the landscape.

  2. Adopt each app's contracts

    The analysis reads the endpoints each app serves, the services it calls, the events it publishes or receives, and the tables it reads or writes.

  3. Read what passes between the apps

    On the landscape, the Clients tab shows which apps call each endpoint. The Events tab shows publishers and subscribers, and flags when a subscriber's event definition differs from the publisher's.

  4. Trace one element across the landscape

    Open Dependencies on an element to see what depends on it, what it depends on, and the route between them across apps and layers. Save a route as an insight.

  5. Done

    End proofDone when every app's contracts are adopted, and a change to one of them names the apps that depend on it.

    Run this playbook

    Free account. Opens in ProvenMap as Follow dependencies across repositories, with the steps beside you.

Works with

Code
Each repository as an app board with a node on the landscape, analysed locally by the code plugin; monorepos and polyglot stacks included.
Contracts
Endpoints by method and path or by gRPC method, events by broker and channel, tables by name, and the clients that call them.
Agents
The same answer for an agent over MCP: the workspace plugin's question to the board, or your own client, with a summary, a context board and a table.
Insights
A route or an impact worth keeping, saved as an insight on the board with its trail.

Where it stops

  • A dependency is found where the code proves it: a client that calls an endpoint, a subscriber on a channel, a reader of a table. A call made through a gateway the analysis cannot see is not drawn.
  • The view is built from what each app has extracted: an app that has not run the extraction adds no calls or events to it.
  • Edges drawn by hand on the landscape say an app depends on another, not on which part; the contract views do not follow them.
  • An event whose schema cannot be read, such as a binary blob, is listed but not compared.

Walk through it

  • The docs walkthrough of this job is being written.
  • In the product this job runs as the playbook Follow dependencies across repositories. The board ticks each step when what it asked for exists, and the guide links back to this page.

Start with one system

Map a real system and see the architecture around it.

Open one repository and run the code plugin. No migration, no rollout, no diagramming.

No credit card · Analysis runs locally in your own session · Self-hosted available

See the four commands to your first board →

Or for writing on architecture that stays connected across systems.