- Builds symbol-level import/export edges across packages and repositories
- Detects circular dependency clusters and isolates strongly connected components
- Produces a bottom-up topological queue starting at zero-dependency leaf modules
System Architecture
How the behavior-preservation pipeline works under the hood
CodeLoom AI separates static graph analysis and deterministic test execution from AI code generation. No generated code is accepted unless it satisfies the pre-migration behavioral contract.
- Synthesizes unit and integration tests covering standard paths, boundary values, and error branches
- Executes the generated test suite against the unmodified legacy code to establish a green baseline
- Locks the test assertions as an immutable verification gate for that migration unit
- Applies target architecture rules (module system, type annotations, framework lifecycle)
- Runs the locked characterization suite in an isolated sandbox after each edit
- Feeds assertion diffs and stack traces back into the repair agent if any test flags a mismatch
- Scopes diffs to small, single-module units that engineers can review in minutes
- Attaches structured documentation: What Changed, Why It Changed, and What Verified It
- Integrates with standard Git code review workflows so human maintainers approve every merge
Interactive Walkthrough
See the 4-layer architecture run on sample legacy modules
Step through leaf-first dependency sorting, characterization test locking, and automated edge-case repair in the browser sandbox.