Lesson 16: Refactoring and Changing Existing Systems Safely
Imagine an AI rewriting a difficult function while also reorganising directories, renaming public methods, changing a dependency and altering behaviour. A week later, part of the system stops working, but the cause is uncertain because several things changed at once. This imagined failure shows why renovating existing software requires protected boundaries and controlled change, rather than demolition followed by guesswork.
