Define the unit of comparison
The first design choice is what constitutes a comparable evaluation run. At minimum, retain:- dataset and example versions;
- prompt, model, retrieval, and tool configuration versions;
- evaluator and rubric versions;
- sampling rules and random seeds when applicable;
- environment and dependency versions;
- the segment attached to every example.
Segment before aggregating
Global averages are useful for orientation but weak for release safety. An internal assistant may improve overall while failing on one document family, language, integration, or high-risk workflow. A useful segmentation model can include:| Dimension | Example segments |
|---|---|
| Intent | Lookup, comparison, explanation, action request |
| Risk | Informational, sensitive, approval required |
| Evidence | Strong source, conflicting sources, insufficient source |
| Integration | Retrieval only, one tool, multi-tool workflow |
| User context | Language, business unit, permission level |
| Failure history | Stable flow, recent incident, known weak area |
Use different detectors for different signals
Not every metric should use the same alert rule. Deterministic failures such as invalid tool arguments or missing required citations can block a release as soon as they appear in a critical case. Continuous metrics such as groundedness or task completion need a baseline, a minimum sample size, and a tolerance that reflects evaluator noise. For production signals, compare distributions and rates over an appropriate window rather than reacting to one request. Consider traffic volume, seasonality, and changes in user mix. A sudden rise in fallback usage may indicate a source outage, but it may also reflect a new category of questions. The alert should trigger investigation, not automatically prescribe the cause. The important distinction is:- release regression: a candidate version performs worse than its reference on comparable cases;
- production drift: live behavior or input distribution moves away from the validated operating range;
- evaluation drift: the dataset, rubric, or judge changes enough to invalidate the comparison.
Design alerts that carry a diagnosis
An actionable regression alert should include:- the candidate and reference versions;
- the affected metric and segments;
- the absolute and relative change;
- the number of evaluated examples;
- representative failed cases and trace links;
- the last known good version;
- the owner and expected decision.
Connect alerts to release and rollback policy
The response to a regression depends on its severity and reversibility. A candidate can be blocked when a critical policy case fails, while a lower-risk quality movement may require review and a staged rollout. Production alerts may pause traffic expansion, route users to a safe fallback, or return to the last validated configuration. The policy should be explicit before an incident:- which failures block deployment;
- who can approve an exception;
- which configuration can be rolled back independently;
- how the safe fallback is verified;
- what evidence is required to close the incident.