TDD Workflow Core Principle Never write implementation code before a failing test exists for that behavior. Execution Flow 1. Setup 2. TDD Loop (per increment) 3. Wrap-up Pause/Continue Rules | Situation | Action | |-----------|--------| | RED: test fails (expected) | Pause — show test + failure, wait for user | | RED: test passes unexpectedly | Stop — investigate, don't proceed | | GREEN: all tests pass | Auto-continue to REFACTOR | | GREEN: tests fail | Pause — show output, ask user | | REFACTOR: tests pass | Auto-continue to next increment | | REFACTOR: tests fail | Revert + Pause — discus…