Questions, judge, and detections
How an experiment decides which version is better, and how to make that judgment trustworthy.
Three parts of the setup decide how A and B are judged. All three are the same for both versions and stay fixed for the round.
Questions
The questions are pass/fail questions the judge answers about each case run, such as "Does the answer cite at least one source?". Each version's score counts passed questions over all its case runs: with 7 questions and 4 cases, the best score is 28 / 28.
The coding agent reuses the experiment's questions when they fit the goal. Otherwise it creates an eval and saves a form of pass/fail questions, each assigned to the judge:
neatlogs evals create --body-stdin # the eval that holds the questions
neatlogs evals form set <evaluation-id> --body-stdin # the questions, each with assignedEvaluators ["ai:<judge-id>"]
neatlogs evals form management <evaluation-id> # read formVersionId hereEach question is a multiple_choice question with the options Pass and Fail and the pass rule {"equals": "Pass"}. The exact bodies are in the Reference for coding agents. (evals form set --questions-file builds questions from a short YAML file, see neatlogs evals form example, but does not assign the judge.)
Write questions a judge can apply the same way every time:
- One decision per question. "Is it correct and polite?" is two questions.
- Name the source of truth. "Does every number match the input document?" is gradable; "Is it accurate?" is not.
- Say what does not count. If the agent may list neutral "what to watch" points, say that such a list is not advice. Otherwise the judge may fail it.
See Evals and evaluators for how good questions are written.
The judge
The judge is an AI evaluator that answers the questions for every case run. The coding agent creates it, or reuses the experiment's judge, with an explicit model from an active model connection of your organization or project (modelProvider and modelName). If no model is connected, add one first: see Model providers and keys and AI evaluator.
The judge is frozen with the setup. If you find that the judge grades wrongly (for example, it fails a sentence its own rule allows), it can't be fixed inside the current round. The coding agent says so in the result and starts a new round with a corrected judge or clearer questions.
To read the judge's reasons, open the round's Results and select a case run that failed. See Watch progress and read results.
Grading by an AI judge counts against your plan's AI evaluator items. See Permissions and limits.
Detections
Detections are automatic checks for known problems, such as Agent Execution Error. In an experiment they run on every case run of A and B after grading. A detection result is Passed or Flagged, or shows that the check could not finish (Failed to run, Not run, Skipped). A missing result is not a pass.
How the coding agent picks detections:
- It chooses one shared list of active detections that fit the goal, the same for A and B.
- It creates a new detection only for a check you asked for that does not exist yet.
- A new detection starts as an inactive draft. The coding agent previews it on real traces, then waits for your explicit confirmation of that exact inactive draft revision before it runs the activation command.
- It never creates a detection per case, per version or per retry.
Turning on a detection needs your confirmation of that exact revision and the detection:manage permission, which only a project Admin has. The permission is not a substitute for the confirmation. A project Member can draft one but not turn it on. If confirmation or permission is missing, the draft stays inactive and the coding agent continues with the existing active detections. If it is refused, it records a decision (for example "used the existing active detections") and continues. See Permissions and limits.
Detections in experiments share the project's daily detection limit. When it is used up, the page shows Daily detection limit reached · resets with a time. See Troubleshooting.
For detections in general, see Create a detection and Detections, incidents, and alerts.
