G-05Test-driven Agent

/coding-agents/test-driven

Write the failing test first; the test then defines “done” unambiguously.

Key insight

TDD fixes the coding agent’s worst habit — declaring victory early. The agent cannot argue with a red test.

Failure mode

The agent writes a test that asserts its implementation rather than the spec: green, and wrong.

Elsewhere in the atlas