Skip to content
LegacyExodus

2,355 tests and counting: how the engine is built

From 21 to 198 test files, 22,411 assertions, 0 failing. The working rules behind the numbers.

October 8, 20263 min readEngineering · Process

LegacyExodus asks customers to trust evidence over intuition. The engine has to be built the same way, so the process has rules that hold even when they slow us down.

Test files in legacy-exodus-core at the last commit of each week, measured with git ls-tree.

Rules we do not bend

  • Deterministic, reproducible evidence outranks probabilistic reasoning, including a model's confidence.
  • Unknown stays unknown, degraded stays degraded, failure stays failure. Inference is never promoted to proof.
  • Tests are claims and can be wrong; they are never weakened, skipped or deleted to get a green run.
  • Strict TypeScript stays strict: no suppressed types, no any casts to escape a check.
  • Whoever implements a change cannot be the one who certifies it.

How findings flow

Work arrives as findings with stable IDs, such as REUSE-03 or CFG-01. Each one gets a reproduction, a failing test, a fix scoped to its root cause, and independent verification. The October hardening milestone closed snapshot freshness, manifest containment, symlink rejection, storage immutability, a control-flow loop fall-through and a shutdown race this way.

DomainTest files
flow30
semantic21
symbols20
cli18
governance14
discovery14
integration13
parser11
storage10
graph8
projections7
Test files by domain at b3615d1

What CI checks

Every change runs strict typechecking, the full suite (2,355 passing in 299.3 s locally on Bun 1.4.4), benchmark governance, a Windows path smoke job, a fact diff on four corpora and a scale gate, with pinned action SHAs and least-privilege permissions.

Run the same checks on your codebase.