Shipping changes
Stop a bad release before it merges
One curl against the gate endpoint: 200 when every check passes, 412 otherwise, on interval lower bounds rather than point estimates.
What it costs to not
None of this throws an error
Without a gate, the eval is a dashboard someone remembers to look at. Releases ship on the days nobody looked.
And a gate that reads a point estimate waves through anything that got lucky on a small sample.
How it works
How do I block a bad release in CI?
GET /v1/evals/{id}/gate with the thresholds you want — min_win_rate, min_pass_rate, min_assertion_pass_rate, or noninferiority_margin.
Statistical checks read the confidence interval's LOWER bound. A 62% win rate whose interval reaches down to 51% does not clear a 55% bar.
Assertion rates are deterministic counts and gate exactly: ask for 100% and a single failing case fails the build.
Mint the CI token with the read scope alone. Before scopes existed, the key a pipeline used to read a gate could also repoint production traffic — a gate key leaking from a CI log was a repoint key.
What you end up holding
An HTTP status your pipeline already understands, and a per-check breakdown naming what fell short.
One curl in your pipeline
curl -f "$API/v1/evals/$RUN/gate?min_pass_rate=0.9&min_assertion_pass_rate=1" -H "Authorization: Bearer $ERRORBAR_API_KEY" || exit 1
412 Precondition Failed
{ "pass": false, "checks": [
{ "check": "pass_rate", "model": "Qwen3-30B-A3B",
"required": 0.9, "actual": 0.871, "pass": false },
{ "check": "assertion_pass_rate", "required": 1,
"actual": 0.98, "pass": false } ] }And what it refuses to do
An unfinished or errored run fails the gate closed — a pipeline polls until it gets a verdict. A run whose judge went silent on too many pairs fails rather than scoring the survivors.
Every page here carries this section. A tool that only ever answers is not measuring anything — it is agreeing with you.
The rules underneath
- Statistical thresholds read the interval's lower bound, never a point estimate
- Gates fail closed — an unfinished run is not a pass
- A calibration is bound to the traffic it was measured on, and expires
- Everything excluded is counted, never silently dropped
Teams asking this also ask
Stop a bad release before it merges
Keep the stack you have. Send us the same traces — gateway, your own provider key, OpenTelemetry, or a log export — and measure it on your own traffic.
$5 of credit on a verified email. No card.