legacy-audit
Legacy Audit (Reverse-First)
A repeatable method for walking into an unfamiliar, undocumented codebase and coming out with a defensible, cited understanding of it. The core principle: understand before changing. A surgeon diagnoses — scans, blood work, history — before operating. Same discipline here: read the source cover to cover, catalog every bug and smell with a severity and mitigation, and only then decide what to do about it.
Why this matters: the default instinct with legacy code is "just rewrite it." But if you port without understanding, you port all the bugs — you faithfully reproduce every landmine in a shiny new language. The audit exists so a future rewrite can design the problems out instead of carrying them across.
The pipeline
Each phase produces artifacts the next phase consumes. Don't skip; don't loop. The universal temptation is to jump to the fun redesign part on day one — resist it. The sequence protects you from your own enthusiasm.