orchestrator-addon-test-driven-development
Test-Driven Development Add-on
An opt-in methodology for orchestrator sessions. It changes the plan steps, task briefs, and role dispatches. It is never activated without explicit user consent and is not a general coding style.
When to Use
Use it only after explicit user consent: either the user requests test-driven development, or the user accepts an offer the orchestrator makes because TDD is needed.
A workflow is applicable when it changes runtime behavior, a test can observe that behavior through a public interface, and the project has a test runner or the task can add one within scope.
TDD is needed when the expected behavior is not already pinned by existing tests or a complete specification, so test-first adds discovery or regression value. It is not needed when tests already exist (for example, copied from another repository) or the behavior is fully known and only implementation remains; recommend skipping it in those cases.
Do not activate it for documentation, comments, configuration-only changes, generated code, throwaway prototypes, pure exploration, or work with no observable behavior and no reasonable test seam. That is not applicable; explain why it does not fit and continue with the base workflow. Do not offer an override that cannot produce a meaningful failing test.
If the user asks for TDD on an applicable but not-needed workflow, ask once: skip it (recommended) or use it anyway. If the user asks on a not-applicable workflow, explain why it does not fit; do not offer a meaningless override.
The Core Rule
A production change is valid only after a test has failed for the right reason.