How a round is judged

What Neatlogs records for each case run, how A and B are compared, who writes the verdict, and what stops a round from being decided.

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.

This page starts with one real round and what was recorded for it. Then it states the general rules, and ends with a reference table of every signal.

One round, worked through

The experiment "Video brief: keep the brief neutral" tests an agent that watches news videos and writes a short brief. Its goal: the brief must not give advice in its own voice; coverage of the videos' main points must not get worse; time and cost per case run must not rise meaningfully.

Round 2 compared two versions on the same 4 cases (topics: Delhi air, a teen social media ban, return to office, electric cars in India), each run once:

  • A, the current version: writing prompt version 2.
  • B, the change: a stricter prompt that names the hidden forms of advice to avoid.

That makes 8 case runs: A ran 4 cases and B ran 4 cases. For each case run, Neatlogs recorded:

Recorded for each case runAB
Grades: the judge answered 7 pass/fail questions28 of 28 passed27 of 28 passed
The goal's own question, "Does the brief avoid giving advice to a party, company, government or side?"4 of 4 passed3 of 4 passed: the electric cars brief failed
Detection "Agent Execution Error" (did any agent step end in an error?)4 checked, none flagged4 checked, none flagged
Median time per case (the whole agent)19.8 s17.6 s
Cost per case run (model cost, 4 of 4 priced)$0.0091$0.0090

The judge's reason for B's failure quoted the brief: "analysts argue that India must establish its own model". That is advice put in the mouth of unnamed analysts.

Your coding agent read these numbers and recorded the result:

  • Verdict: Keep A. B newly failed the goal's main question on one case that A passed. Being 11% faster and 1% cheaper does not make up for that, because time and cost were only limits that must not get worse.
  • Outcome: Goal not met. The change did not stop the advice: B still gave advice in one brief.
  • Next step: another round, which gave the writer the names of its sources.
  • Its reasoning ends with Decided on: advice in the brief's own voice, main points kept, time per case run, cost per case run.

The detection flagged nothing, so it played no part in the choice. If it had flagged a case run, the coding agent would have had to weigh that too.

What the example shows

Neatlogs records three kinds of evidence for each case run

A case run is one version running one case once. It is recorded as a trace. For every case run Neatlogs keeps:

  1. Grades. The judge answers every question. One grade is one question answered by one judge for one case run. With 7 questions and 1 judge, each case run gets 7 grades.
  2. Detection results. Each detection in the setup checks the case run's trace once: Passed, Flagged, or not finished (Failed to run, Skipped or Not run). A result that is not finished counts as missing.
  3. Measures. Time comes from your coding agent's run of the case; tokens and cost come from the trace. Neatlogs turns them into Median time per case, Cost per case run and Tokens per case for each version.

The count always follows from the setup: case runs = 2 versions × cases × trials. Grades = case runs × questions × judges. Detection results = case runs × detections. Retries do not add to these counts: when a version is run again, only its latest attempt counts, and a detection that is checked again replaces its earlier result.

Neatlogs compares, but does not pick the winner

When both versions are graded, evals compare lines them up case by case. It shows, for each question, how often A and B passed, and which cases B newly fails or newly fixes. It shows each version's time, cost and tokens. It does not say which version wins.

Your coding agent writes the verdict. It reads the goal, the comparison and its own recorded decisions, then records:

  • the verdict: B wins, Keep A, Tie or Inconclusive;
  • the outcome: Goal met, Goal not met, Tradeoff, or incomplete (shown as Not decided yet);
  • the next step: another round, or finish;
  • its reasoning: What changed, What we saw and Next.

Verdict and outcome are separate: B wins usually goes with Goal met or Tradeoff, and Keep A with Goal not met. Read the verdict explains each pair. Neatlogs saves the result with the note that the coding agent assessed it.

The goal decides what counts first

Neatlogs has no fixed order between grades, detections, time and cost. Your coding agent weighs them the way the goal says. In the example the goal was about advice, so the advice question came first and time and cost were limits. A goal such as "make it cheaper without losing quality" puts cost first, with the questions as the limit.

The line Decided on, the last line of What we saw in the verdict card's reasoning, lists what the verdict used, in order: questions as well as measures. The page reads that line to choose the measures it shows:

  • the word "time" (or "latency") shows Median time per case;
  • "cost" shows Cost per case run;
  • "tokens" shows Tokens per case;
  • "quality" or "checks" shows Quality (questions passed) on the verdict card.

A question named in its own words, such as "advice in the brief's own voice", shows no measure of its own. In the example the verdict card therefore shows only time and cost, although the advice question decided the round. Grades always show in Results, one row per question, whatever the line says. If the reasoning has no Decided on line, or the line has none of these words, the page uses the same words in the goal; if the goal has none either, it shows quality, cost and time.

A detection flag does not decide on its own

No rule in Neatlogs makes B lose because a detection flagged a case run. A flag is evidence your coding agent weighs against the goal. In Results a flagged case run shows as a Flagged dot in the failure colour on that detection's row, and the coding agent should say in its reasoning how the flag affected the verdict. A missing detection result is different: it stops the round (see below). A missing result is never counted as a pass.

Incomplete evidence stops the round

When your coding agent records a result with an outcome, Neatlogs checks the evidence first. It refuses the result when:

  • a version's run did not complete;
  • a case run is not graded, or a grade is cut off;
  • a detection result is missing or failed, or the detection changed after the setup was saved;
  • A and B were graded with different questions or judge;
  • the run is not the latest attempt of that version.

The only result your coding agent can then record is an incomplete outcome with the verdict Inconclusive. The page shows it as Inconclusive and Not decided yet. Then your coding agent fixes what is missing without running the cases again: it retries the unfinished grading, or queues the detection checks again for that run. If a limit stopped them, such as the daily detection limit or the grading allowance, it waits for the reset first (see Permissions and limits). When everything has finished, it records the full result in place of the incomplete one. A complete result never changes; a new idea needs a new round.

Small samples

With 4 cases, one case can flip a verdict, as it did here. evals compare runs a statistical test per question only when there are at least 30 paired cases; with fewer it reports too few. The page does not show this test. Read the number of cases before you trust a verdict.

Every signal, for reference

SignalLevelMade by, and whenWhere you see itRole in the verdict
Grade (question × judge)Case runThe judge, after each case run is savedResults: one row per question, one dot per case run; the judge's reason on a failureCompared by your coding agent. Every case run must be graded
Pass rate per question, newly fails, newly fixedA against BNeatlogs, when the runs are comparedResults: "B newly fails 1"Compared by your coding agent
Score (such as 27 / 28)VersionCounted from the gradesResults headerContext
Detection result (any detection type)Case runThe detection check, after your coding agent queues it for each finished runResults: one row per detection, such as "Agent Execution Error · none flagged"Every result must exist; a flag is evidence, not an automatic loss
Time per case runCase run, then median per versionYour coding agent's run reports it; Neatlogs takes the medianMedian time per case (the same thing as "time per case run"), when the goal or Decided on names timeCompared when the goal names it
Cost per case runCase run, then per versionFrom the trace's model calls; grading is not includedWhen named: Cost per case run, with "Priced: A 4 of 4 · B 3 of 4" when some case runs have no priceCompared when the goal names it
TokensCase run, then per versionFrom the traceTokens per case, only when the goal or Decided on names tokensCompared when named
Failed case runsCase runYour coding agent's runThe case run's dot; Needs attentionA run must complete before a goal outcome
Verdict, outcome, next stepRoundYour coding agentVerdict card, round tab, the list's Result columnThe decision itself
DecisionsExperiment or roundYour coding agent, any timeActivityContext: what the test did not cover

Detections of every type, such as an LLM criterion, a classifier, a regex, a condition on span fields, personal data (PII), code or trace rules, are checked the same way: once per case run, on its trace. Detections that look at a whole session are not supported in experiments.

Some numbers are kept but not used to judge a round: tool call counts, span counts and model latency. Open a case run's trace to see them.

Frequently asked questions

Does a flagged detection make B lose?

Not by itself. Your coding agent weighs the flag against the goal and says so in its reasoning. A missing detection result, though, stops the round until it finishes.

Which comes first, the judge's grades or cost?

Whatever the goal puts first. Neatlogs does not rank them. Read Decided on to see the order your coding agent used.

Can Neatlogs record a winner with missing grades?

No. Until every case run is graded and every detection has a result, the round can only be Inconclusive.

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.