Most teams use AI agents the wrong way round: they let the agent write first and ask what it was supposed to do later.

The order I work in is spec first, agents second, a human evaluates.

  1. The spec is the product. Inputs, outputs, constraints, what “done” means, what must never happen. If I can’t write it down, the agent can’t build it.
  2. Agents implement against the spec, in small steps that can be checked.
  3. Deterministic gates decide what passes: tests, linters, policy checks, a diff a person actually reads.
  4. An engineer is the evaluator and owns the result. Not the model.

The skill that changed

The interesting part: the hard skill is no longer typing code. It is writing specifications precise enough that a machine can’t misread them, and reviews strict enough to catch when it does anyway.

What it looks like in practice

Every requirement gets an acceptance criterion and a check you can run. Tasks are ordered by dependency, each with its files and its verification. Agents write code and infrastructure from the spec, not from guesses. Lint, tests, policies and dependency scanning run before anything merges — and at the end a human, as the evaluator, assesses the result.

How do you review code you didn’t write and no human wrote either?