M2 Evals as engineering
Error analysis, judges, agreement, CI gating.
Lessons
Section titled “Lessons”- 01 Error analysis first
- 02 Judges and agreement
- 03 Datasets and contamination
- 04 Agent evals
- 05 CI gating and tracking
- 06 Evals for code agents
- 07 Interview angle
Exercise
Section titled “Exercise”M2 evals lab: build the eval loop for a coding agent’s traces, from loading and labelling them to a trusted judge, a regression gate and a score history, with tests and hints.
01-trace-loader: load the recorded traces and render one as numbered lines for a human or a judge.02-labels-and-agreement: a labels file that rejects unknown traces and categories by line, and Cohen’s kappa between two labellers.03-judge-interface: the judge protocol, a fake judge with recorded answers, and an agent judge bound to a JSON schema.04-trust-gate: TPR, TNR and kappa against gold labels decide whether the judge can be trusted.05-regression-gate: a CLI gate that fails a run against the stored baseline and says why.06-score-history: an append-only history of run summaries with a trend over the last runs.07-hand-labels: label 40 traces yourself with evidence notes (judgment stage).08-live-judge: the agent judge on 20 traces against the real Agent SDK (needs a Claude login).