Essay · October 2026

Evals are the spec

When agents can build in hours, the hard part of product work moves from building to defining what correct looks like.

For most of my career, a requirements document was a translation layer. Product described the problem. Engineering turned it into software over weeks or months. Questions surfaced along the way, while they were still cheap to answer.

Agents changed the timing. A coding agent can build a working feature in an afternoon. An AI system can change its behavior with a new prompt or a new model.

Building got cheap. Ambiguity got expensive. An agent builds exactly what you under-specified, quickly and confidently.

Under-specification was always the problem

I learned this before agents. Years ago, I shipped a decision-support scorecard for radiologists without specifying how the score ranges were derived, or how to show that reasoning on screen. Engineering built what I asked for.

The first radiologist who used it told us we had made their life worse. They now had to work out why the AI recommended what it did.

The model was fine. The spec wasn't. Agents don't create that failure. They make it happen faster.

What I specify for an agent

PRDs don't go away. We still need the customer problem, the business case, and the workflow. But for an agent, a feature description isn't enough. I define five things:

  1. The job. The decision or task it supports, and for whom.
  2. Context and tools. What it can read, which tools it can call, and what it can change.
  3. Boundaries. What it must never do, and where a person has to decide.
  4. Behavior when things go wrong. Missing, contradictory, ambiguous, or urgent information: ask, abstain, or escalate. Never guess.
  5. Evaluation criteria. A labeled set of cases, the threshold to ship, and a clear definition of an error, including any conclusion the source doesn't support.

Deterministic scaffolding around a non-deterministic model

Anyone who has shipped agents has scars from the same failure mode: unbounded non-determinism. Long conversations drift. A small prompt change shifts behavior somewhere you weren't looking.

The answer isn't a better prompt. It's scaffolding. Let the model do what it's good at, like reading unstructured text, drafting, and conversing, and wrap it in deterministic checks: rules that decide what's due, validation of required fields, hard limits on what the agent can say or do, and routing that sends anything uncertain to a person.

The model brings flexibility. The scaffolding brings predictability. You need both.

An example from CareTogether

At CareTogether, Carey, our AI companion, holds check-in conversations with seniors, picks up changes that matter, and decides when to surface them to a caregiver or care team.

A traditional spec would describe the conversation and the information to collect. The agent also needs defined behavior. If a senior mentions skipping a medication, the system has to separate what was actually said from what a model might infer. It captures it, decides whether follow-up is needed, and routes it. If it's ambiguous or possibly urgent, it can't invent an answer or carry on as if nothing happened.

Those expectations become test scenarios:

Every change to a prompt, a model, or the code runs against those scenarios before it ships. A second model reviews the output. Anything urgent goes to a person.

The eval set becomes the spec

Write requirements this way, and the eval set becomes the most precise statement of what the product should do.

A working prototype still matters. It shows the flow far better than a document or a set of static screens. But the prototype shows how it should feel. The eval set defines what it must get right.

What changes for product leaders

Product owns the intended behavior and the definition of success. Engineering owns how to build it reliably. We validate the result together.

In an agentic world, defining "done" precisely enough that both an agent and an engineer can check it is the job.

Related

← Back to Vasu Avadhanula's home page