Measuring what is true: the Three-Universe fidelity model
296 hand-verified facts across Express and Fastify, zero misses, and a verdict that still says migration safety is not yet established. Here is why both are true.
Static analysis has a quiet failure mode: it can be internally consistent and still wrong about the code. Tests written by the same people who wrote the analyzer tend to confirm the analyzer. To avoid grading our own homework, we keep three universes of evidence apart.
- Universe I, source truth: the code exactly as written, inventoried and resolved.
- Universe II, the reconstructed model: ASTs, symbols, call graphs, control flow, data flow and taint facts produced by the engine.
- Universe III, runtime reality: what the program actually does when it runs. Static analysis alone cannot prove it, so we never claim it does.
Ground truth, by hand
For each target we selected 25 production files and wrote down, by hand, facts that must appear in the engine's output: files, symbols, imports, exports, dependency edges, calls, control-flow and data-flow facts. We also wrote known negatives, facts that must not appear.
| Target | Files | Facts | Known negatives | Scoped predictions | Missed |
|---|---|---|---|---|---|
| Express v4.21.2 | 25 | 142 | 5 | 4,165 | 0 |
| Fastify v5.3.3 | 25 | 154 | 5 | 6,330 | 0 |
Reading the result honestly
Recall on the sample is 100%: every hand-written fact was found, and no known negative was violated. That is a strong statement about the sample and a weak statement about the repository. The engine made thousands of scoped predictions that nobody has verified by hand, so for open-world categories like symbols and calls we report precision as null rather than pretend it is perfect.
Where the universe is closed we report precision, including when it is unflattering. Dependency precision was 34.0% for Express and 26.4% for Fastify, largely because the engine lists every declared dependency, while the ground truth only counts those the 25 sampled files actually use.