Phase 4: Validation
Phase 4: Validation
Spawn: Task with subagent_type=Bash
Prompt:
Validate module-based refactoring:
1. Structure validation:
- [ ] src/<package>/modules/ exists with disciplines
- [ ] tests/modules/ mirrors src structure
- [ ] docs/modules/ exists
- [ ] specs/modules/ exists
- [ ] Each module has __init__.py (Python) or index (JS)
- [ ] Each module has README.md
2. Import validation:
- [ ] No old import paths remain
- [ ] All imports resolve
- [ ] Circular imports checked
3. Test validation:
- [ ] pytest / npm test passes
- [ ] Coverage maintained
4. Documentation validation:
- [ ] Internal links work
- [ ] Module READMEs complete
Generate report. On failure, suggest:
git checkout pre-module-refactor-{date}