Most teams inherit the same eval gate. It has a pass rate of 90%, a number nobody remembers choosing. It has no named owner for the override, no price attached to either kind of error, and no evidence the suite measures anything real about production. So the gate gets one of two treatments: ignored, or obeyed as theatre.
That produces a strange sprint. The same team ships broken behaviour on Tuesday and blocks a safe change on Thursday, and nobody can say what either error cost.
Treat every setting on the gate as a decision you can price. The threshold number comes from the cost of each error direction. The reliability bar for each level of autonomy follows from the same pricing. The override belongs to a named human, and the suite has to be validated against ground truth before it certifies anything. The CI budget needs a cap, and the build-vs-buy choice needs total cost of ownership. Once the pricing is done, the rest falls out. Those settings resolve together in the decisions hub.
How Do You Decide the Right Pass-Rate Threshold for an Eval Gate?
Start from your stakeholders’ risk tolerance. A threshold is a decision boundary on a continuous score, and the starting input is what your business is willing to accept, as the methodology in this statistical treatment of threshold selection sets out. The team translates risk appetite into an acceptable rate of each type of error, then finds the cutoff that matches.
The reason 90% feels safe is that it looks like a target. Every step up in the pass rate cuts false passes and inflates false fails, and every step down does the reverse.
The Google Machine Learning Crash Course captures the intuition in a sentence: a mid-point cutoff seems sensible until one error type costs more than the other, or the classes are imbalanced.
Derive the number from the cost curve. The cost-derived decision threshold is where marginal false-pass cost meets marginal false-fail cost. You locate it on labelled data with precision, recall and ROC AUC, so the cutoff comes from evidence. A documented gate scored 22 fixed benchmarks and passed on a 90% threshold, which lets two of them fail. Twenty of 22 is about 91%, so the build went green. But the single number can’t say which two failed, or whether they broke for the same reason. If the two failures were both in the schema check, the parser was emitting output no device could run, and the gate still said fine.
Then split the number in two. A hard requirement is a release-blocking floor. An ideal is a steering target. One number cannot block and steer at the same time, and a weighted average lets a candidate buy back a hard failure with a soft win.
One caveat worth flagging: a well-set fixed floor still misses slow drift. That’s the case for catching drift with online evals, which covers the leaks a static threshold can’t see.
How Do You Price a False Pass vs a False Fail in a Release Gate?
Setting a threshold means putting a price on both error directions. A false pass carries incident cost, churn, support load, and in regulated settings, fine exposure. A false fail costs engineer-hours burned, release delay, and lost opportunity.
The Openlayer analysis of false positive rates frames the choice as which costs more: missed threats or wasted investigation capacity. Their numbers show how lopsided this gets. In fraud prevention, false positives account for 19% of the total cost of running the system, against 7% from actual fraud losses. In anti-money-laundering, 95% of flagged alerts are false positives. Once you see that, a symmetric accuracy target looks naive.
Cost-weighted risk compares the two error rates by what each one costs the business. A false pass is a Type I error and a false fail is a Type II error, and every threshold trades one rate against the other. The operating point worth choosing is the one with the lowest total expected loss, where each error rate is weighted by the cost of the outcome it produces.
Put a rough price on each direction. The exercise of naming which error your business can least afford matters more than the exact figure.
Repeat that pricing for each capability. As the AI Pattern Book’s evaluation gate chapter puts it, a refund agent deserves a stricter bar than a draft summariser. A $4,000 charge to the wrong customer, a real failure shape documented by Red Hat, is not the same event as a clumsy meeting summary.
How Much Reliability Does Augmentation vs Full Automation Actually Need?
A false pass costs more when no human is there to catch it, and that single fact changes the number. In an augmented workflow, a human reviews before anything reaches a customer, so the reviewer absorbs the gate’s false passes, and the floor can sit lower. In a fully autonomous agent, a gate miss becomes shipped behaviour, so floors on safety-critical slices sit near the ceiling.
Blast radius decides it, meaning how hard an action would be to reverse. Oversight is a spectrum too, from approve-before-execution through monitor-and-intervene to audit-after-the-fact, and each position tolerates a different error rate.
Human-in-the-loop systems commonly escalate 10-15% of decisions, and financial services commonly push confidence thresholds to 90-95% because of regulatory scrutiny. The floor rises with the consequence of an error, and it also has a cost: a 20-30 second validation step per transaction adds thousands of hours of manual effort across a year’s volume.
So lower the pass floor only where the review loop is real. If the review is nominal, the “assisted” workflow is carrying autonomous risk with a friendlier label. Each autonomy level changes what a green check certifies.
Who Owns the Override When a Gate Blocks a Release?
A priced number still needs a human to hold it. The override is a governance control, and it belongs to a named human. The owning engineering lead or CTO holds it, logs it, and answers upward for what the gate certified. Assigning it to a tool default or to whoever is in the room during a release is how the bar drops.
Version the threshold like code. Every loosening becomes a reviewed diff with a rationale attached, and threshold changes happen only with new evidence. The AI Pattern Book names the failure mode precisely: teams watch the bar fail and lower it until delivery feels easy again, and the cure is governance, where changes are reviewed, justified and visible in the same history as the code. The second failure mode is gate capture, where agents get tuned to please the judge.
Practically, separate the owner from the operator. The owner holds the decision rights over the number. The operator wires the CI job. This split mirrors how change control boards work elsewhere in regulated engineering, where someone is given defined authority, the evidence owed is written down, and there is a path for escalation. Keep a record of who owned each risk decision, which gates ran, and which exceptions were granted.
Does Your Eval Suite Actually Measure Real Quality?
An owned gate is only as good as the suite behind it. A green gate certifies nothing unless the suite has been validated against ground truth. That means auditing it like any classifier: precision, recall and ROC AUC against a golden dataset of known-good and known-bad cases.
Recall is where gates fail. A suite with a high pass rate and low recall waves through bad behaviour it cannot see. Or as Replicant’s work on agent evaluation metrics frames it, a metric that correlates only 70% with production success caps your achievable alignment at 70%, however good the system is.
Judges need the same audit. MLflow’s continuous evaluation guide, drawing on Airbnb’s practice, recommends a golden set of 50 to 100 examples including bad cases, with judge agreement against human labels tuned into the high 80s or 90s before the judge earns a place in CI. An uncalibrated judge is a second black box stacked on the first.
Keep the set fresh, because a golden set that never absorbs new failures measures the problems you had last quarter. Feed production failures and shadow-eval findings back in. Gate per slice as well, because a 99% overall can hide a 70% slice. A rising pass rate can still hide an unreliable agent, and the judge needs the same calibration, which is what why rising pass rates hide unreliable agents and validating the LLM judge cover.
How Do You Budget Eval Latency and Cost Inside CI?
An eval that takes longer than the release it guards is a dead gate. Teams route around slow, expensive, flaky checks, and the gate silently stops binding.
The two dials to watch are cost per run and wall-clock latency, and both need a cap matched to your CI cadence. A per-run spend limit stops a runaway judge from burning the budget on every change. The vendor reference cuts both ways. Anthropic writes openly about its own eval practice, and after models were found to have reached the live internet from a misconfigured evaluation environment, it disabled live internet access across its internal evaluations. Vendors revise gates under evidence too.
Scorers should be tiered by criterion, because not every check deserves the expensive judge. Deterministic code checks are free and exact, which makes them the default for anything they can express. Specialised classifiers come next: a small entailment model or toxicity classifier is smaller, faster and cheaper than a general-purpose judge. The LLM-as-a-judge sits at the top and is reserved for qualities code cannot express, because its tokens are spent on every change and compound into real money. A chain-of-thought evaluation of 1,000-2,000 tokens per call reaches tens of thousands of dollars a month at million-conversation volume for a single metric.
Caching responses, running a smoke subset on every commit, and the full suite only on merge are all ways of keeping the gate inside the release window. When the work can’t fit, durable workflow infrastructure such as Inngest runs the evals off the CI hot path, so the worker isn’t blocked and nothing times out.
Build vs Buy Eval Infrastructure: Which Fits?
Build when control over custom scoring and data residency dominate. MLflow gives you open-source evaluation and tracking, and Inngest gives you the durable workflow layer to run evals reliably.
Observability and time-to-value favour the buy side. Arize/Phoenix covers LLM tracing, debugging and offline or online evaluations, which is faster to stand up than a bespoke harness. The buy side is consolidating, with Dynatrace acquiring Arize, so weigh platform stability and lock-in alongside the subscription.
The weighing framework is control plus custom scoring versus speed plus observability, with data residency and total cost of ownership as tie-breakers. A build-first bias is a legitimate starting posture for a team that prefers to build, but it deserves revisiting as judge calibration and drift detection get expensive to run yourself.
Decide per layer. Plenty of teams buy the observability plane and keep their scorers in-house.
Every one of these settings is now defensible to a CFO or a board, and re-derivable the moment your business, the autonomy level or the data moves. All five decisions resolve together in the full gate overview.
Frequently Asked Questions
What is an eval gate, and how is it different from a normal CI check?
An eval gate is a release-blocking check that scores an AI system’s behaviour against known-good and known-bad examples, not just whether the code compiles. A normal CI check verifies build and unit tests; an eval gate judges whether the behaviour is safe to ship. Because it certifies behaviour rather than code, the threshold, the override, and the suite’s validity all become governance decisions instead of engineering defaults.
What’s the difference between precision and recall when auditing an eval gate?
Precision measures how many of the behaviours the gate flags as bad are actually bad, while recall measures how many of the truly bad behaviours the gate manages to catch. A gate can pass 99% of cases and still have low recall, waving through failures it cannot see. You need both, plus ROC AUC, to confirm the suite separates good from bad rather than merely tallying green ticks.
Can I trust an LLM to judge another LLM’s output?
Only after you calibrate it against human labels. An LLM-as-a-judge is a flexible scorer, but it is also the costliest and least predictable tier, so you validate it against a human-labelled sample and target high-80s to low-90s agreement before it earns a place in CI. Until then, treat its scores as a signal, not a verdict.
Should I set one threshold for the whole product, or one per capability?
Set thresholds per slice, not once for everything. A global pass rate can hide a failing capability, because a 99% average quietly absorbs a 70% slice. Price the false pass differently for each behaviour: a refund agent that wrongly approves a payout needs a far higher floor than a draft summariser. Gate per slice so the costlier errors get the stricter bar.
What’s a reasonable starting threshold if I have no historical data yet?
Start from the costlier error direction, not a number. Ask which mistake the business can least afford, a false pass shipping broken behaviour or a false fail blocking safe change, then set a deliberately conservative floor and loosen it only with evidence. Label a small golden dataset early, because without ground truth every threshold is a guess wearing a green check.
What do I do when the gate blocks an urgent hotfix?
Log an override with a named human, never silently bypass it. The owning engineering lead or CTO approves the override, records the reason, and answers for it afterward, because a hotfix is exactly when threshold theatre starts. Loosen the bar only as a reviewed, versioned change, then close the loop by feeding the missed failure back into the golden dataset.
How often should I revisit the pass-rate threshold?
Whenever the business, the autonomy level, or the data changes, not on a calendar. If you raise autonomy, add a customer tier, or ship a new capability, the cost of a false pass has moved, so re-derive the number. Also re-tune when the golden dataset learns from production failures, otherwise the threshold keeps pricing last quarter’s problems.
What happens if my team just ignores or bypasses the gate?
The gate stops being a gate. Teams route around evals that are slow, expensive, or ignored, and the same sprint then ships broken behaviour while blocking safe changes, with nobody able to say what either error costs. An unowned threshold quietly drifts downward under release pressure, so the green check becomes theatre that certifies nothing.
How do I build a golden dataset when I’m starting from scratch?
Start small and deliberately mixed: gather known-good and known-bad cases from past releases, then keep adding every production failure and shadow-eval finding. The goal is a labelled reference that separates good from bad, not volume. Without a fresh golden dataset, the suite measures a museum of last quarter’s problems, whatever the pass rate says.
Do small teams need a named override owner too?
Yes, arguably more. A small team is the likeliest to let the override default to whoever is in the room during a release, which is how the bar quietly lowers. Name one human, the lead or CTO, to hold the override, log every bypass, and answer upward for what the gate certifies. Ownership is a control, not a headcount luxury.