Refactor: Scope Session
Define precise boundaries for a refactoring cycle.
Scoping Checklist
- Goals Definition
-
What specific improvement are we targeting?
-
What metrics will improve?
- Boundaries (IN Scope)
-
Which files/modules will be touched?
-
What types of changes are allowed?
- Boundaries (OUT of Scope)
-
Which areas must NOT change?
-
What behaviors must remain identical?
- Success Criteria
-
How do we know refactoring succeeded?
-
What tests must pass?
Principles
-
Smaller is safer
-
One goal per session
-
Define done upfront
-
Preserve behavior