An AI agent writes the code. It writes the tests. Then it tells you every test passed. What exactly have you learned?

Possibly a lot. Possibly nothing at all.

This is a live debate in engineering right now. Thoughtworks' Ken Mugrage describes code review buckling under AI-generated changes and argues that the rigour doesn't disappear. It has to move somewhere. One obvious place is the test suite: if you can't review 10,000 lines of generated code, review the 200 lines of tests that define what it should do.

Test-driven development looks like the natural answer. Write the test first and the agent has a fixed target, not one it can quietly redefine.

It isn't that simple. In August, Birgitta Böckeler published a small, openly informal experiment asking agents to follow TDD inside their own loop. She found no clear quality benefit, roughly three times the tokens, and tests that checked the code's output against itself. Her point is a sharp one: watching a test go red only proves something if someone is checking why it went red.

Last week, Matteo Vaccari described interviews with 26 developers in an organisation heavily invested in AI coding agents. Asked whether they trusted their tests, the broad answer was no. As features grew, the AI refactored the code and the tests together.

The wider data points the same way. The 2025 DORA research found AI adoption now associated with higher delivery throughput, but still with greater instability. AI amplifies whatever discipline is already there.

So is TDD finished? I'd say the ritual matters less. The intent matters more than ever.

A passing test proves the code does what someone wrote down. It says nothing about whether what was written down is right. On a production line, in a route-planning app or in a hospital pharmacy system, "right" is defined by people who understand the work: tolerances, shift patterns, safety limits, the patient in front of you. Even in regulated medical device manufacturing, the FDA's 2025 guidance on computer software assurance frames validation around software being fit for its intended use, with effort proportionate to risk. That is a business question before it is a technical one.

So why not treat expected behaviour as something the business owns, rather than something the agent generates?

A few practical questions help:

  • Who writes, or at least approves, the acceptance examples before the agent starts?
  • Are test changes reviewed separately from code changes, so the agent can't mark its own homework?
  • Do you know whether your tests would actually catch a fault, through mutation testing or deliberately broken builds?
  • Which parts of the system carry the real business risk, and do they get proper human attention?

Use the agents. They are genuinely useful. Just be clear about who decides what "done" means.

When your AI tells you everything passed, who in your organisation could explain what it actually proved?