Most agent pipelines fail in review, not in development. The failures are boring: a missing step, a check that never ran, a retry that duplicated a write.

I keep a checklist now. Twelve items, twenty minutes, and it has caught something every time I have run it on a real project. Steal it, or argue with it — both are useful.

The list

  1. Every step has a name. S1 fetch, S2 validate, S3 dedupe, S4 write. If you cannot name a step, it is not a step — it is an assumption.

  2. Every step returns a receipt. Exit code, row count, timestamp, hash. Something that should not legitimately appear twice.

  3. Failure stops the run. No "skip and continue". Skipping is how a pipeline produces a complete-looking artifact with a hole in it.

  4. Missing steps fail the verdict. If the step map has a gap, the task is failed — regardless of how good the output reads.

  5. The checker has been tested with a bad input. Deliberately break step 2 and confirm the aggregator goes red. A checker that cannot fail is worse than no checker.

  6. Writes are idempotent or single-shot. Timeouts mean "no receipt", not "not created". Read the state before retrying, or you get two of everything.

  7. Authorization defaults to deny. If the policy service is unreachable, the answer is "no". "Not forbidden, therefore allowed" is how agents end up reading someone else's data.

  8. Every gate logs the decision, not the rule. Store what was evaluated and what came out — not a copy of the rule text. Rules change; decisions have to stay auditable.

  9. State has one owner. If task state lives in the prompt, the queue, and a log file, you will eventually see two numbers that disagree and no way to tell which is right.

  10. Rollback exists as a tested path. "We can fix it" is not rollback. Deleting the last artefacts and replaying from a checkpoint is.

  11. Stop cannot pass silently. Unbounded tool errors become long runs. Set a step budget and a wall-clock budget, and fail loudly when either is hit.

  12. Someone outside the codebase can run it. If only the author can execute it, it is not operating, it is performing.

What this list is not

  • It is not a substitute for evals. Model quality is a different problem; this is about delivery.
  • It does not fit single-step tasks. Under three steps, the checklist is overhead.
  • It does not fix a project with no definition of done. If nobody can say what "finished" means, a gate has nothing to attach to.

The habit that makes it work

Write the twelve answers down before you start, then tick them off at the end. The ticking is the valuable part: it is the difference between "I think it went fine" and "here is the receipt for each step".

Last time I skipped step 3 in a real run. The artifact looked complete, the checks were green, and the only reason I caught it was a step list with a hole in it.

We do engineering for AI delivery. TokenLat is a platform for landing AI capability in real workflows: one gateway for model access, model choice decided per task, and a workbench for agents and workflows. The checklist above is platform-independent.