Experiments and rounds
How neatlogs tests a change to your agent before release, in one model.
An experiment answers one question before you ship a change: is the changed version of my agent better, measured the way my goal says? It is the step between reviewing a change and verifying it in production.
The parts, at a glance
- Experiment: one goal, written in plain words: what must improve and what must not get worse.
- Setup: the cases, the pass/fail questions, the judge (an AI evaluator) and the detections. It is frozen, so every round on it is judged the same way.
- Round: one comparison of A (the current version) and B (the changed version) on the same cases.
- Case run: one version running one case, recorded as a trace.
- Verdict: the round's answer. Outcome: whether the goal was reached.
Example: inside one real experiment
The experiment "Video brief: keep the brief neutral" had one goal: stop a news-brief agent from giving advice in its own voice, without losing the videos' main points or getting slower or more expensive. Here is everything it made:
- One setup: 4 cases (4 news topics), each run once (1 trial), 7 pass/fail questions, 1 judge, and 1 detection ("Agent Execution Error"). All 3 rounds used this same setup.
- 3 rounds. Each had a hypothesis and two versions: A, the current prompt, and B, a changed prompt.
- In each round, A had one run and B had one run. Each run ran the 4 cases, so each round made 8 case runs, and the experiment made 24. Each case run is one trace.
- Each case run got 7 grades (7 questions × 1 judge) and 1 detection result: 168 grades and 24 detection results in all.
- Each run had measures: median time per case, cost per case run and tokens.
- Each round got one result, written by the coding agent: round 1 Tie, round 2 Keep A, round 3 Keep A, each with the outcome Goal not met. Round 3's next step was finish.
- The coding agent recorded 7 decisions, such as "use input-only cases of the same 4 topics, because the recorded ones were refused". Everything it reported appears as Activity.
The general shape
Every experiment has the same parts. Read it as a tree: an experiment holds one setup and several rounds. A round holds two versions. Each version has one or more runs; only the latest run counts. A run holds one case run for each case and trial. A case run holds its grades, its detection results and its time and cost. A round ends with one result.
| Part | What it is | How many | Fixed or changing |
|---|---|---|---|
| Experiment | One goal and everything done to reach it | 1 | Its status changes |
| Goal | What must improve and what must not get worse, in plain words | 1 per experiment | Fixed |
| Setup | The cases, trials, questions, judge and detections | 1 per experiment, copied into each round | Frozen: changing it needs a new round |
| Case | One input both versions run | Up to 100 per setup | Frozen |
| Trial | One repeat of a case; more trials show how much results vary | 1 to 10 per case | Frozen |
| Question | One pass/fail question the judge answers | Several per setup | Frozen |
| Judge | The AI evaluator that answers the questions | 1 or more per setup | Frozen |
| Detection | An automatic check for a known problem | 0 to 10 per setup | Frozen |
| Round | One test of one idea: A against B | 1 or more per experiment | Fixed once it has a complete result |
| Hypothesis | What B changes and why it should help | 1 per round | Fixed |
| Version (A or B) | The current agent (A) or the changed one (B), with its captured code | 2 per round | Fixed |
| Run | One version running every case; a retry is a new attempt | 1 or more per version | New attempts can be added |
| Case run | One version running one case once; recorded as a trace | Cases × trials per run | Fixed once saved |
| Grade | One question answered by one judge for one case run | Questions × judges per case run | Fixed |
| Detection result | One detection's finding on one case run | Detections per case run | Can be retried until it finishes |
| Measures | Median time per case, cost per case run, tokens | Per run | Read from the case runs |
| Result | The verdict, the outcome, the next step and the reasoning | 1 per round | Written by the coding agent; fixed once complete |
| Decision | A choice the coding agent made when the plan could not be followed | Any number | Added, never changed |
| Activity | Everything the coding agent reported, with times | Any number | Added |
Some words in the code differ from the page: a version is a variant in commands, a detection result is a check (and "safety check" in some error messages), the next step is the result's decision field (continue or finish), and the setup's planned measures are labelled per "answer" in places.
How a round's evidence turns into a verdict is on How a round is judged.
Who does what
| Does | |
|---|---|
| You | Give the goal, approve the CLI sign-in, answer the plan, read the result, decide what to ship |
| Your coding agent (Claude Code, Codex, or another agent that can run shell commands) | Builds the setup, changes the code for B, runs A and B on your machine, records results and decisions |
| neatlogs | Stores the cases, grades every case run with the judge, runs the detections, measures cost and time, and shows the experiment |
The verdict is your coding agent's assessment of the recorded evidence. neatlogs never changes or deploys your code.
How it relates to other features
- Evals and evaluators: an experiment's questions live in an eval, and its judge is an AI evaluator.
- Detections, incidents, and alerts: the same detections that watch production check every case run.
- Traces, spans, and sessions: every case run is a trace you can open.
- Test a change: the method behind a fair comparison.
