Skip to content
LegacyExodus

Unresolved by design: why we refuse to guess call targets

Across 8 benchmark repositories the engine resolved 7.1% of 46,588 calls. That number is low on purpose, and it is the most important number we publish.

October 24, 20263 min readSemantic analysis · Call graphs

Every migration plan is a graph problem. Which functions call which, which modules depend on which, which values flow where. A migration tool that draws a plausible edge where none exists will schedule a change in the wrong order, and nobody will notice until production does.

So the engine draws an edge only when it can prove one. When it cannot, the call is recorded with resolutionState UNRESOLVED, by caller, callee expression, file and line. Nothing is dropped and nothing is invented.

What “resolved” means

A call is resolved when the engine can bind its callee expression to a concrete declaration through static evidence alone. Today that covers:

  • Lexical bindings, including hoisted var and function declarations, destructuring and default parameters.
  • Repository-local ESM and CommonJS imports and exports, including chained module.exports unwrapping and proven tsconfig path aliases.
  • Statically provable prototype members, constructor calls through new, and receivers fixed by .bind(), .call() and .apply().

It deliberately does not cover dynamic property access, computed calls, reflection, eval, values that cross into node_modules, or framework behavior beyond the narrow Express route and middleware patterns it models. Those stay unresolved.

The numbers

Resolved versus unresolved calls per repository. Source: benchmarks/BENCHMARK_REPORT.md, generated 2026-08-23.
RepositoryCallsResolvedShare
ms25072.8%
cookie-parser186158.1%
debug1811910.5%
express-session1,49737024.7%
legacy-exodus-core1,95653227.2%
express8,9843423.8%
LegacyExodus4,28093821.9%
fastify29,2541,0623.6%
Call resolution per repository

Our reading of the pattern, not yet measured call by call: small utility libraries such as ms make most of their calls to built-ins like String and Math methods, which live outside the repository. Fastify, at 3.6%, routes much of its work through dependencies and runtime objects. The engine's own source, written with explicit imports, resolves at 27.2%.

One call, up close

In commander@15.0.0 the engine found 723 calls and resolved 238. Two neighbouring examples from lib/command.js show the boundary:

semantic.json (excerpt)
{ "callerName": "_parseCommand",
  "calleeName": "this._parseOptionsEnv",
  "resolutionState": "RESOLVED" }   // lib/command.js:1564

{ "callerName": "_checkForMissingMandatoryOptions",
  "calleeName": "cmd.getOptionValue",
  "resolutionState": "UNRESOLVED" } // lib/command.js:1693

The first call goes through this to a method declared on the same class, which the engine can prove. The second goes through cmd, a value produced by iterating a runtime collection of commands. Its type is knowable to a human reader and to a type checker, but not to a conservative syntax-level analysis, so the engine says so.

Why this matters for migration

A wrong edge corrupts everything downstream: leaf-first migration waves, the slice of evidence handed to a model, and the differential tests chosen to prove a change. An honest gap is different. It tells the planner exactly where a human, a test or a type checker has to supply more evidence before work can proceed.

Run the same checks on your codebase.