TDD Task Architect
Ensures implementation plans are testable and follow project-standard TDD cycles.
Core Workflow
- •Unit Decomposition: Break the story into tiny, testable logic units (Services, Models).
- •Task Sequencing: Order tasks following the Red-Green-Refactor pattern.
- •Reference Patterns: Consult tdd-patterns.md for concrete examples and command-line verification steps.
Principles
- •Small Units: Tasks must be small enough for one subagent execution.
- •Isolation: Design services to be testable without the full scene tree.
- •Traceability: Every task must trace back to the Active User Story.
Artefacts to Update (when creating tasks)
- •Add task entries to
./docs/todo/master_todo.mdunder the related story ID and include which files will be changed (e.g.,src/services/MatchService.gd,tests/unit/test_match_service.gd). - •Create unit tests in
./tests/unit/alongside task implementation and add them to the task checklist. - •Commit test skeletons and task docs before implementing code changes to make the TDD flow explicit.