When to Rewrite vs. Refactor: A Diagnostic for Broken
AI-Built Software, Code Rescue

When to Rewrite vs. Refactor: A Diagnostic for Broken

Concrete thresholds for bug density, coupling, and test coverage that separate a refactor sprint from a full rewrite decision.