What problem does it solve?
Prevents untested production code by enforcing a test-first workflow so features, bug fixes, and refactors are validated before implementation. It eliminates the common failure modes of tests-written-after and unverified "works on my machine" changes, reducing regressions and technical debt.
Core Features & Use Cases
- TDD Workflow Enforcement: Walks engineers through RED → GREEN → REFACTOR cycles and insists on watching tests fail before implementing.
- Test Command Resolution: Guides resolving the correct project-specific test command from .superharness/spec or repository manifests to enable precise single-test execution.
- Trace Logging & Verification: Requires logging implement:tdd_red and implement:tdd_green events to trace.jsonl for auditability and mandates verifying failures are real failures and passes are pristine.
- Anti-Pattern Guardrails: Provides checks and references to avoid testing mock behavior, adding test-only production methods, and other common testing anti-patterns.
- Use Cases: New feature development, bug fixes, refactors, and behavior changes where proof of testing discipline and reproducible verification are required.
Quick Start
Begin a TDD cycle for the feature "add user authentication" by writing a failing test first, resolving the repository test command, running that single test to confirm failure, implementing minimal code to make it pass, and logging the red/green events to trace.jsonl.