Skip to content
Vibe Math Lab.

Method guide ·

Acceptance criteria for AI agents, and a definition of done

Acceptance criteria say, before the work starts, what a result must satisfy to count. With AI agents they matter more than usual, because an agent's output looks finished whether or not it is right. Here are the three lines I write before an agent computes anything, the five-line definition of done I hold my results to, a brief that lets an agent refuse a wrong instruction, and a template to copy.

I'm Tyler Orden, an independent researcher who does mathematics with AI agents. My research record is at Cyborg Mathematics.

I write the test before I see the answer. That habit has caught errors in a published paper as well as in my own instructions to an agent, and it comes straight from how software teams decide whether a piece of work is finished.

What acceptance criteria and a definition of done are

Acceptance criteria are the conditions one piece of work must meet before anyone accepts it, written so that two people would agree on whether they were met. A definition of done is the shorter list that every piece of work must pass, whatever it is. The Scrum Guide, the short rulebook many software teams follow, describes the definition of done as "a formal description of the state of the Increment when it meets the quality measures required for the product", and says that an item that does not meet it "cannot be released or even presented".

I use both with AI agents on math research. Acceptance criteria belong to one task: this program must reproduce that published table. The definition of done belongs to every result I put my name on. They matter more with agents than with people because agent output looks finished either way. A wrong count arrives in the same tidy table as a right one, with the same confident summary. Criteria written before the run are the one test the result cannot bend, because they were set before anyone, me included, wanted the answer to come out a particular way.

The three lines to write before the agent computes

Before an agent builds anything that produces numbers, I write down three things: the known value it must reproduce, the result that would make me distrust the whole approach, and the smallest case I can check by hand. The first is a known-answer test. The second is a kill line, set while I still have no stake in the outcome. The third keeps me honest about whether I understand the problem at all.

Acceptance criteria file
ACCEPTANCE CRITERIA: [task] Written: [date, time] By: [person] 1. Must reproduce: [value] from [source], to [precision or tolerance] 2. Stop and distrust the approach if: [a specific result] 3. Smallest case checkable by hand: [case] -> [answer] Could the agent already know the answer? [training data / project files / no / unknown] The agent may read this file and may not edit it. Changes: new dated lines only, each with its reason. Old lines stay.

The question about whether the agent could already know the answer is there because a model may have seen the target in its training data or in the project's files. Reproducing a value it has memorized proves much less than reproducing one it had to compute.

Here is the file earning its keep. On a project that extended a 2018 published count of benzenoids, molecule shapes made of hexagonal rings, the test file was written on August 7, 2026, a week before the counting program existed, and its date is fixed in the project's history. It required the program to reproduce the paper's counts exactly before any new row counted. Some rows would not match, and each mismatch had to be explained before the work could go on. In the end ten errors turned up in the published paper itself, five of them while making the program's tables match the paper's. The lesson on writing down the numbers to match tells that story in full, including the table where 333 shapes were said to form 55,270 pairs, when any 333 things form exactly 55,278.

The five-line definition of done

Acceptance criteria change from task to task. This list does not. A result of mine is done when all five are true, and the list of what was not tested goes with it.

  1. It matches the values written down before the work started, or the change to them is logged with its reason.
  2. At least one check used different information or an outside reference, and what the checks share is written down.
  3. Every status word, total and statement of scope was read from the live source on the day it was written.
  4. A reader who did not make it has read it cold, and a named person can explain every claim in it and takes responsibility for it.
  5. The log has that day's lines, including what went wrong and what was not tested.

Done, in this sense, means these five checks passed and the result travels with its list of what was not tested. A result that passes all five can still be wrong. For my Lean proof on Erdős Problem #112 (Lean is a programming language in which a computer checks every step of a proof), the check in line 2 that used different information was Palomar's: that public registry of machine-checked proofs reran my proof with three separate checking programs before registering it on November 15, 2026. A machine check of that kind is strong evidence that the proof proves its statement, and it is still a machine check, which is why line 4 asks for a person as well.

A spec the agent can be held to

Criteria only help if the agent works from them, and the weak point is usually the brief, the written instructions an agent starts from. A brief typed from memory is how wrong numbers get in. My rule is to copy target values from a file, name each fact the agent must confirm and where, and say outright that the agent may refuse an instruction that does not match the files.

It paid off once in a way I did not expect. On August 28, 2026, the lead agent in one of my projects wrote a brief for a helper agent. The helper's job included reproducing six published counts: how many different shapes can be built from 1 to 6 copies of a solid called the Josehedron. The lead typed the six targets from earlier work on two other shapes, as 1, 4, 16, 116, 903 and 8,551. The published counts are 1, 2, 15, 131, 1,360 and 15,133. The helper searched the project's files, found the six numbers nowhere, used the saved published counts instead, matched them exactly, and reported "a tasking discrepancy recorded, not followed." Its brief had told it that "A FAIL is a valid deliverable." The lesson on that brief looks at which parts of that brief made the catch possible.

Brief for a helper agent
TASK: [what to produce, as files, at which paths] READ FIRST: [files, including earlier notes on this same object] TARGET VALUES (copied from [file, line], not typed from memory): [values] If a number in these instructions does not match the project's files, stop and report the mismatch instead of using it. CONFIRM EACH OF THESE BY NAME, AT THIS SOURCE: [fact] at [file / database / URL] Where you cannot confirm something, say so. DO NOT EDIT: [the acceptance criteria file, tests, checks] A FAIL is a valid result. Record it precisely and stop. REPORT: what you ran; outputs (paths); what each was checked against; what was not tested; which model you are; anything in this brief that looked wrong.

When the criteria change mid-run

Sometimes a criterion turns out to be wrong, and then it should change, in the open. A published value can be a misprint, as in the benzenoid paper, or a tolerance can turn out to be tighter than the method allows. The rule I keep is that a change is a new dated line with its reason and evidence, and the old line stays where it was. Months later, that record is the only way to tell a criterion that was corrected from one that was moved until the result passed.

A template to copy

This is the whole thing on one page, for any agent task that produces something other people will rely on. It works with a chat window as well as with agents that run code.

Acceptance criteria and definition of done, one file
TASK: [one sentence] Written: [date, time] By: [person] BEFORE THE WORK 1. Must reproduce: [value] from [source], to [tolerance] 2. Stop and distrust the approach if: [result] 3. Smallest case checkable by hand: [case] -> [answer] Could the agent already know the answer? [how, or "no known route"] DONE WHEN ALL FIVE ARE TRUE [ ] Matches the values above, or each change is a dated line with its reason [ ] One check used different information or an outside reference; shared steps written down [ ] Every status word and total read from the live source today [ ] Read cold by someone who did not make it; a named person answers for every claim [ ] Today's log lines written, including what went wrong NOT TESTED: [list, drafted by whoever reviewed the work]

For teams

For teams: the person who owns a result writes its acceptance criteria before the work starts, the team agrees who may change them, and the file lives in the same folder or ticket as the work. The reviewer drafts the list of what was not tested, because an author tends to leave things off it. The team version of every lesson, in one list.

Short answers

What are acceptance criteria for an AI agent?

Conditions written before the agent starts that its result must meet before anyone accepts it. For work that produces numbers I use three: a known value the method must reproduce, a result that would make me distrust the approach, and a small case I can check by hand.

What is the difference between acceptance criteria and a definition of done?

Acceptance criteria belong to one task, such as "this program must reproduce that published table". A definition of done is the fixed list every result must pass, whatever the task, such as "at least one check used an outside reference".

How do you write a spec for an AI agent?

Say what to produce and where, copy every target value from a file, name each fact the agent must confirm and the source to confirm it at, list the files it must not edit, say that a failed check is an acceptable result, and ask it to report anything in the instructions that looked wrong.

Should the AI agent see the acceptance criteria?

It depends on the work. When a result could be tuned to pass the test, such as a forecast, I keep the criteria out of the agent's view. When the agent must reproduce a published table, it needs the values to check against, so it may read the file and may not edit it.

Did this make sense?

Was this helpful?

Share this page