# Evaluation tests for releases

> I use a fixed set of evaluation tasks in continuous integration, with an explicit pass threshold.

Source page: https://alexcinovoj.dev/proof/ai/evals
Markdown: https://alexcinovoj.dev/llms/proof/ai/evals.md

## How do evaluation tests check a release?

I use a fixed set of evaluation tasks in continuous integration, with an explicit pass threshold. A release stops when results fall below it.

## About this method

I use a fixed set of evaluation tasks in continuous integration, with an explicit pass threshold. A release stops when results fall below it. The suite only covers its chosen tasks and cannot establish how every future run will behave.

## Steps

1. Freeze a golden suite of tasks drawn from real workflows, with expected outputs reviewed by a human once.
2. Run the suite in its own CI workflow, separate from unit tests, so a slow eval does not block ordinary commits.
3. Add adversarial cases: prompt injection, contradictory instructions, missing tools, truncated context.
4. Record per-task cost and latency alongside pass/fail so a regression in spend is visible.
5. Set an explicit threshold and fail the workflow below it.

## Checks to try

- Introduce a known-bad change and confirm the eval workflow fails.
- Check that the run cost is recorded per task and trending.

## What can go wrong

- A suite containing only passing cases can miss failures outside its coverage.
- An unenforced threshold allows a release with failing evaluation results.
- Updating expected outputs without review can conceal a regression.
