Guides · ← All guides
What Is a Model Dependency Graph?
Published: November 14, 2026 · Reviewed: November 14, 2026 · 7 min read
By the Ingenious AI team
The short answer
A model dependency graph is the map of what depends on what: each model connected to the endpoints and jobs that call it, the prompts and artefacts built on it, and the downstream systems that consume its outputs. It upgrades the flat inventory — a list of models — into the structure you actually need at a retirement: given this model, what features, pipelines, and teams are in the blast radius, and in what order do we move them? ModelMinder's dependency records are the graph's foundation: tracked model IDs tied to the registries and prompts that use them, snapshotted into migration plans so the impact analysis survives the planning meeting.
What the nodes and edges really are
Nodes are more than models. A useful graph includes services and endpoints, scheduled jobs, prompts of consequence, fine-tunes (as children of their base), embedding indexes (as children of their embedding model), and the downstream consumers of model outputs — the dashboard, the warehouse table, the customer email. Edges carry the dependency type: calls, is-fine-tuned-from, is-embedded-by, consumes-output-of. The types matter at migration time: a calls edge is a config change; an is-embedded-by edge is a corpus project; a consumes-output-of edge is a validation obligation. A graph that flattens these into one kind of line will systematically under-price embedding and fine-tune migrations — the two classes that punish underestimation most.
How is the graph built without becoming a documentation project?
From evidence, in layers. Layer one is mechanical: codebase and config scans find model IDs and their call sites — ModelMinder's Codebase X-Ray output is exactly this layer, each hit mapped to its catalog record. Layer two is traffic: usage data confirms which call sites are alive and how heavily. Layer three is human annotation, applied sparingly where machines cannot see: console-configured integrations, the business weight of a feature, the owner. A graph built evidence-first stays small and true; a graph built by asking every team to draw their architecture becomes large, stale, and fictional within a quarter.
What questions does the graph answer at a retirement?
The four that decide the migration. Blast radius: everything reachable from the retiring model, listed, not guessed. Sequencing: which nodes must move together (a service and its shadow job) and which are independent. Hidden coupling: two features sharing one prompt or one fine-tune, discovered before the cutover discovers it for you. Orphans: consumers of outputs whose producing model nobody owns — the graph's most valuable output, because orphan edges are where shutdown-day surprises breed. Each answer is a traversal, which is the entire point: an inventory tells you the model exists; the graph tells you what it holds up.
How does the graph serve the migration plan itself?
As its skeleton. ModelMinder's migration plans snapshot the dependency detail — the tracked model plus the registries and prompts that use it — at plan creation, so the plan's scope is a frozen subgraph rather than a paragraph. The comparison run then evaluates the candidate against the workloads that subgraph represents, and the owner-approval gate approves that scope explicitly. When the executed plan triggers a registry recheck, the graph is what gets re-walked to prove the old model is no longer tracked anywhere in the workspace. Scope, evidence, and closure all come from the same structure.
Keeping the graph alive
Graphs die of good intentions and manual updates. The survivable pattern is regeneration plus annotation: scans re-run on a cadence rebuild the evidence layers; human notes attach to nodes and survive regeneration; discrepancies between scan and traffic (a call site with no traffic, traffic with no call site) are surfaced as findings rather than silently resolved. Review the graph where the portfolio is reviewed — quarterly, against the retirement calendar — with one standing question per dated model: if this date were next month, does the graph tell us everything we would need? Where the answer is no, the gap is next quarter's instrumentation work.
Five actions to build a dependency graph that stays true
- Generate the first layer mechanically: scan code and configs for model IDs and map each hit to its catalog record.
- Confirm liveness and weight with usage traffic; flag call sites with no traffic and traffic with no call site.
- Type the edges — calls, fine-tuned-from, embedded-by, consumes-output — because each type prices a migration differently.
- Annotate sparingly by hand: console-configured integrations, owners, business weight.
- Regenerate on a cadence, keep annotations across regenerations, and review the graph quarterly against upcoming retirement dates.
Worked example: Casa Verde Hotels finds the hidden coupling
Casa Verde Hotels, a fictional resort group, graphed its models before a booking-assistant migration. The graph's surprise: the assistant and the review-response tool — owned by different teams — shared one fine-tune and one prompt library. Migrating the assistant alone would have stranded the review tool on a retiring base.
The combined migration covered 12 endpoints across both tools, with the shared prompt library recalibrated once for both. Review-response cost per reply fell from $0.015 to $0.011 and booking-assistant p50 response time from 2.6s to 2.1s after the move. The counterfactual is the lesson: without the graph, the review tool's failure would have arrived on shutdown day as an unrelated incident, and the two teams would have debugged it from opposite ends.
Sources
- ModelMinder documentation (ModelMinder, 2026) — this platform’s own first-party method for the radar, the dependency graph, and the Sunset Risk Score.
- ModelMinder retirement calendar (ModelMinder, 2026) — this platform’s own first-party catalog: each tracked model’s shutdown date with the provider’s source notice and a last-verified date.
Frequently asked questions
How is a dependency graph different from a model inventory?
An inventory is a list: models, statuses, dates. A graph adds the relationships — callers, artefacts, consumers — so impact questions become traversals. You need the inventory first; the graph is what the inventory grows into when retirements start asking harder questions.
Do we need graph database software for this?
No. Most teams' graphs fit comfortably in the inventory tooling they already have — ModelMinder's dependency records and migration-plan snapshots are relational rows, not a graph database. The value is in the relationships being recorded and current, not in the storage technology.
What is an orphan edge and why does it matter?
A dependency whose owner or producer is unknown — typically a consumer still reading outputs from a model-powered pipeline nobody claims. Orphans matter because unowned dependencies are unmigrated dependencies, and they surface on shutdown day.
How do fine-tunes and embeddings appear in the graph?
As typed child nodes of their base or embedding model, so a base retirement automatically lists them as affected work — with the right work type attached. A fine-tune node implies a retrain-or-replace decision; an embedding node implies a corpus re-embed. The type is the estimate.
How often should the graph be regenerated?
Scans should re-run at least quarterly and at every deprecation announcement affecting your models. An announcement is the moment the graph gets used, and using a stale graph under deadline pressure is how hidden couplings stay hidden.