# LegacyExodus > LegacyExodus reverse-engineers legacy systems into deterministic, source-traceable evidence and builds controlled, private migration on top of it. LegacyExodus is a deterministic, local reverse-engineering engine for JavaScript and TypeScript repositories, and the foundation of a governed migration platform. Analysis ships today. Migration planning, generation and verification are being built and are not available yet. ## Mechanism (11 steps) - 01 Inventory [Shipped] (VyrixScout): Account for every file. Every file is classified as analyzed, non-source, unsupported, unclassified or failed. The counts must add up exactly, or the run fails. - 02 Parse [Shipped] (NolaraStruct): Turn text into structure. JavaScript, TypeScript, JSX and TSX become normalized, frozen syntax trees. A file that fails to parse is reported by path and error code, never skipped silently. - 03 Bind [Shipped] (NolaraStruct): Know what every name means. Lexical scopes, hoisting, destructuring, ESM and CommonJS imports and exports, and proven tsconfig aliases resolve each identifier to its declaration. - 04 Connect [Shipped] (NolaraStruct): Map who depends on whom. Module graph, dependency cycles, semantic call graph and knowledge graph. A call the engine cannot prove stays UNRESOLVED instead of being guessed. - 05 Trace [Shipped] (NolaraStruct): Follow every path and every value. Control-flow graphs with dominators and loops, data-flow def-use chains, interprocedural transfer for proven targets, and conservative taint facts. - 06 Seal [Shipped] (NolaraStruct): Freeze it as evidence. Run-scoped storage, schema validation before reuse, and a SHA-256 manifest over every artifact. The same input produces the same bytes. - 07 Lift [Research] (ZelvoxForge): One representation for every language. A language-independent intermediate representation in SSA form, so meaning can cross from one language to another with explicit, checkable mappings. - 08 Plan [Building] (ZelvoxForge): Decide the order of the move. The dependency graph is cut into migration waves: leaves first, boundaries explicit, invariants written down for every slice before any code changes. - 09 Forge [Building] (ZelvoxForge): Generate against evidence, not guesses. AI receives only the verified evidence slice for one unit of work. Output is typed, and every generated line cites the source nodes it came from. - 10 Prove [Building] (VymosGate): Fail closed. Isolated compilation, differential tests against the legacy behavior, and invariant checks. One failing gate blocks the candidate. No exceptions, no overrides. - 11 Approve [Building] (VymosGate): A human signs. The record remembers. An engineer reviews the evidence, the diff and every gate result, then signs. The audit trail links each shipped line back to the system it replaced. ## Products (none shipped yet) - Migration Readiness Assessment (First product) [Building]: A report on one repository before anyone changes it: what is there, how it connects, what the engine could not prove, and where a JavaScript to TypeScript migration should start. The analysis runs today. The packaged report and the wave planner are being built. - Behaviour Safety Net (Test generator) [Research]: Characterization tests for legacy JavaScript and TypeScript: record what the code does today, so any change, by a person or an AI agent, has to prove it still does the same. Designed, not built. It has to run your code, which the engine never does, so it gets its own design review before any build. - Module: Dead code finder [Partial]: Which functions and exports nothing reaches? - Module: Dependency intelligence [Partial]: What depends on what, and where are the cycles? - Module: Security and taint analysis [Partial]: Can user input reach a file, SQL or network sink? - Module: Architecture health [Building]: Where is coupling concentrated, and which modules are hubs? - Module: Code quality [Building]: Which functions are hardest to change safely? - Module: Codebase intelligence platform [Building]: All of the above, across every repository you own. ## Capability status - Bun + strict TypeScript runtime, lifecycle and CLI: Shipped — status · init · analyze · test · verify - JS / TS / JSX / TSX discovery and parsing: Shipped — Parser failures and skipped files stay explicit - Memory and SQLite storage, validated snapshot reuse: Shipped — Verified while read; reuse in about 1 GB on 7,172 files - Deterministic .discovery projections: Shipped — Byte-identical facts across runs; signed manifest - Symbols, ESM / CommonJS, module and dependency graphs: Partial — Packages in node_modules are not resolved - Call analysis and control-flow graphs: Partial — Every call is a fact; RESOLVED only when proven - Data flow and taint facts: Partial — Built-in policy: Express sources; exec, file, URL and SQL sinks - Knowledge graph: Partial — Files and symbols; contains and imports edges - Framework semantics: Partial — Express routes and middleware today - Plugin runtime contracts: Partial — No sandbox or marketplace yet - Language-independent semantic IR: Research — Next: built from proven facts only - Migration planning and transformation: Building — First path: JS → TypeScript - Bounded AI gateway: Building — ZelvoxForge - Compiler sandbox and equivalence gates: Building — VymosGate - Further targets: PHP, Java, Ruby on Rails, Rust: Building — Each with its own conformance corpus ## Not claimed - Whole-repository migration safety - Runtime or behavioral equivalence - Framework semantics beyond Express - Languages beyond JavaScript and TypeScript - Automated code transformation ## Evidence - Engine tests at b3615d1 (2026-11-09): 2355 pass, 1 skip, 0 fail, 22411 assertions, 198 files. - Benchmarks at b3615d1 (2026-11-09): 7 repositories × 3 fresh runs, byte-identical artifacts. ms 2.1.3: 2 files, 340 calls, 0.3 s; cookie-parser 1.4.7: 2 files, 223 calls, 0.6 s; debug 4.4.0: 7 files, 210 calls, 0.8 s; express-session v1.18.1: 13 files, 2231 calls, 1.2 s; legacy-exodus-core b3615d1: 142 files, 9400 calls, 6.8 s; express 4.21.2: 152 files, 12243 calls, 5.6 s; fastify v5.3.3: 287 files, 31016 calls, 14.2 s. - Ground truth: 296 hand-verified facts across Express v4.21.2 and Fastify v5.3.3, 0 false negatives. Verdict: MIGRATION_SAFETY_NOT_YET_ESTABLISHED. - Demo: commander@15.0.0 analyzed in 1232 ms; 859 symbols, 723 calls (238 resolved, 485 unresolved), 304 CFGs; 13/13 artifacts identical on rerun. - Network: 0 network API uses in engine source at b3615d1. - Scale: Ghost v6.73.0, 7172 analyzed files. Fresh analysis about 1.8 GB peak (was 9.6 GB); snapshot reuse 25 s at 1.0 GB (was 79 s at 11.3 GB). CI gates a 10000-file synthetic repository, fresh and reused. - Gates at b3615d1: fact diff on governance fixture, engine source, Express, Fastify; 128 conformance expectations; 0 known gaps; 42 of 44 audit findings fixed. ## Pages - [Mechanism](https://legacyexodus.tech/mechanism/): the full 11-step method and its status - [Where we are today](https://legacyexodus.tech/now/): status board, research, timeline - [Evidence](https://legacyexodus.tech/evidence/): benchmarks, determinism, fidelity, provenance - [Compare](https://legacyexodus.tech/compare/): approaches compared - [Company](https://legacyexodus.tech/company/) · [Contact](https://legacyexodus.tech/contact/) · [Security](https://legacyexodus.tech/security/) · [Privacy](https://legacyexodus.tech/privacy/) ## Research notes - [From 11.3 GB to 1.0 GB: analysing whole repositories in bounded memory](https://legacyexodus.tech/research/bounded-memory-whole-repositories/): 7,172 files of Ghost v6.73.0, every fact kept, and memory that no longer holds the whole run at once. What changed, how it was measured, and what is still not bounded. - [Facts as a test suite: how every engine change is checked](https://legacyexodus.tech/research/facts-as-a-test-suite/): 128 expected facts, a ledger of known gaps that fails when a gap starts to hold, and a diff of every fact before and after each change. Why an analyzer needs more than unit tests. - [Unresolved by design: why we refuse to guess call targets](https://legacyexodus.tech/research/unresolved-by-design/): 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. - [Same input, same bytes: how the engine stays deterministic](https://legacyexodus.tech/research/same-input-same-bytes/): 8 repositories, 3 runs each, every analysis artifact compared byte for byte. How determinism is designed in, and how it is proven on every change. - [Measuring what is true: the Three-Universe fidelity model](https://legacyexodus.tech/research/three-universes/): 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. - [Every file accounted for: the discovery invariant](https://legacyexodus.tech/research/every-file-accounted-for/): Before any analysis, the engine proves it has looked at everything. One equation, enforced on every run, and what it caught in Express. - [2,355 tests and counting: how the engine is built](https://legacyexodus.tech/research/building-the-engine/): From 21 to 198 test files, 22,411 assertions, 0 failing. The working rules behind the numbers. - [From evidence to migration: what we are researching now](https://legacyexodus.tech/research/from-evidence-to-migration/): Reading a system is shipped. Moving it is the research. How an intermediate representation, slice contracts, bounded models and fail-closed gates fit together. ## Contact - Taskeen Haider, Founder: raitaskeen@legacyexodus.tech - Shahzaib Hassan, Co-Founder · AI Engineering: mehrshahzaib@legacyexodus.tech - Abbas, Co-Founder · Software Engineering: bilobhatti@legacyexodus.tech - GitHub: https://github.com/LegacyExodus