Choose cases

Pick the inputs A and B both run, and know the difference between recorded and input-only cases.

Beta
Experiments is in beta. It is live and you can use it today; screens, CLI flags and limits may still change. Send feedback or problems to neatlogs-support@neatlogs.com.

A case is one input your agent handles, such as one user request or one document to summarize. An experiment's cases are saved in a dataset, and both versions run exactly the same cases. You can browse datasets under improve → datasets.

Tell your coding agent which cases to use

Say it in your goal or when the coding agent asks. If you say nothing on a new experiment, the coding agent asks you once, or picks and records the choice as a decision.

You wantWhat the coding agent does
Fresh casesRuns new, realistic requests through your current agent, checks their traces, and saves them as a new dataset. Earlier cases are not reused.
An existing datasetLists your datasets and versions, checks that the cases fit the goal, and uses the ones you named.
More cases in a datasetRecords the new cases and saves them as a new version of the same dataset. Earlier versions stay as they were.
Resume an interrupted runReuses the exact same dataset version, cases and settings, and finishes only the unfinished work.

Good cases match the goal and include hard ones: follow-up questions, unclear requests, tool failures and requests your agent should refuse. Picking only easy cases makes a winner meaningless.

Recorded cases and input-only cases

Recorded caseInput-only case
Made fromA saved trace of a real run (neatlogs datasets from-traces)Just the input (neatlogs datasets create)
HoldsThe input plus the recorded model calls and tool resultsThe input only
In a roundA and B run it with your real agent; the recording stays with the caseA and B run it with your real agent

Saving recorded cases can be refused with GRADING_EVIDENCE_INCOMPLETE: Neatlogs could not read everything the judge needs from the recorded model calls, even when every span looks fine. The coding agent does not retry. It creates an input-only dataset of the same cases, records a decision, and continues. See Troubleshooting.

Rules that keep the comparison fair

  • One dataset version and the same case IDs for A and B. The coding agent pins them in the setup and never changes them in the middle of a comparison.
  • One dataset per experiment. Any further dataset (for example the input-only copy) is created with --standalone.
  • Blocked cases are left out of both versions. If a case can't be repaired, the coding agent removes it from A and B and says why.
  • Other cases mean a new round. Changing the dataset needs a new setup, saved in the same experiment while it is open. Earlier rounds keep the cases they ran.

How many cases

There is no fixed minimum. More cases give a more reliable verdict: with 4 cases, one case can flip the result. Use trials (--trials) to run each case more than once when your agent's answers vary from run to run.

Next steps

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.