Harness Engineering Series

Harness Engineering

The part of the job that starts after the tests pass, and the reason an agent that passed every one of them still broke on Monday.

What is harness engineering?

Harness engineering is the discipline of building the machinery around an AI agent rather than the agent itself. The prompt is usually about forty lines. Almost everything that decides whether the thing can be trusted sits outside it.

The name is borrowed from how engineers have always handled something powerful they cannot fully predict. Nobody takes an engine's word for its own output. They build a test harness around it, with instruments on what comes out, load on what goes in, and alarms on every limit that matters. The engine supplies the power. The harness is what lets you say you know.

An agent is an engine in exactly that sense. It is non-deterministic, it is persuasive when it is wrong, and it will answer the same question five different ways. A test suite written by the same person who wrote the prompt cannot see any of that, which is why 340 passing tests on a Friday tell you nothing about the 43 tickets waiting on Monday.

Teams believe the job is prompting, and the market sells them the engine. But the engine was never the hard part. You cannot trust what you cannot measure, and nothing about an agent is measurable until you build the thing that measures it.

A harness is what you build once you know what you are testing for. If that part is still open, start with what AI evals are and come back.

What a harness actually contains

The guides

Long form, free to read in full, and written for the part of the job that happens after the tests pass.

Coming next

  • Building Your First Evaluation Dataset

Shorter pieces on the same problem

Each one takes a single piece of the harness and goes at it on its own.