Before you begin
Before you start, make sure you have:- Failed session: A session that a hosted judge or a person flagged. To find candidates, score recent traffic and read the lowest answers under Evals → Scorers in the app.
- Dataset: A dataset for regression cases, or a name for a new one. See Create eval datasets.
1
Review session and trace
Read the session and its trace, and check whether the scorer was right. Then decide what the expected behaviour is. Do not copy a full transcript into a record when a short, redacted input reproduces the failure.
2
Push reviewed case
In this synthetic example, a session showed an answer that omitted a required safety step. A reviewer distilled it to a question and an expected answer.
source_ref links the case to the session it came from.source_kind: "session" requires a session in the same workspace. If you cannot keep that link, omit both source_kind and source_ref, and keep the review record in your approved system. Set provenance on the first push: a later push does not change source_kind or source_ref on an existing record.3
Run case on next candidate
Pass
dataset=suite.id to Eval with the candidate task and your scorers, or let your CI workflow pick it up on the next pull request. The experiment pins the dataset snapshot, so a later correction to this case creates a new record version and affects only new experiments.4
Verify failure is fixed
Open the new case’s trace before you consider the failure fixed. A correct final sentence can hide a wrong tool call or an unsafe intermediate step. The failure is fixed when the case scores as expected and its trace shows the right steps; if a step matters to the release decision, add a scorer for it.
Troubleshooting
Ifpush_dataset refuses the record, check that the session is in the same workspace. For other dataset errors, see Eval errors.
Next steps
- Gate pull requests with evals: Gate every pull request on the regression dataset.
See also
- Create eval datasets: Record fields, provenance, and versions.
- Score production sessions: Find failures in real traffic with a hosted judge.