How Do You Run Online Evals on a Live AI Agent?
I'm Mahmoud Zalt, an independent AI architect, and I founded Sista AI to take teams' AI systems from prototype to something they can measure in production.
An online eval scores real agent work as it happens, on a sample, with deterministic checks first and an LLM judge only where a rubric is needed. The scores go into one store keyed by release, so you can alert when quality drifts and when a specific release made things worse. Two design decisions matter more than the judge prompt: who decides what gets sampled, and who pays for each check. Get those wrong and you either burn your customers' budget or end up with alerts that go quiet the moment customers turn checks off.
What follows is the online eval layer I built for the agents behind Sistava, now live in production: an evaluator registry, a two-draw sampler, four customer presets, a bounded correction loop, and drift alerts. Our offline results and the status of each layer are published in How We Evaluate AI Employees.
Why Offline Evals Are Not Enough
Offline suites run on a fictional company with known answers. They tell you how the agent should behave. They cannot tell you how it does behave on a real customer's documents, tone and edge cases, and they only run when you run them. Online evals close that gap on live traffic.
They are not a replacement. Offline evals are where you get precise, repeatable numbers and where a release gets blocked. Online evals are where you discover the cases your offline set does not hold, and every interesting online failure should become a new offline case. I covered the offline trajectory layer in how to evaluate AI agents on real multi-step tasks and the attack side in prompt injection in AI agents.
Declare Every Evaluator as Data
The first thing I would do again: one registry where every evaluator is a declaration, not a bespoke pipeline. Each entry states its subject, when it fires, its metrics with direction and targets, its judge prompt if it has one, which customer modes it offers and which is default, the platform monitoring share, who pays, and its caps. Adding an evaluator is one entry plus, if judged, one prompt.
| Evaluator | Scores | Judge? |
|---|---|---|
| Knowledge answer | Faithfulness to sources, context relevance, answer relevance | Yes |
| Agent turn | Task success, instruction following, tool use | Yes |
| Deliverable | Outbound email, files, tasks, posts against an editable rubric | Yes |
| Harness | Completion, tool errors, loops, limits hit, latency, credits per task | No, deterministic |
| Retrieval | Hit rate and top score from the run trace | No, deterministic |
| Feedback and outcome | Thumbs up and down, follow-ups that suggest the problem was not solved | Only for the follow-up review |
| Safety | Counts of what the defences saw | No, free |
One hook calls them after every finished turn, with a snapshot of the turn. It never touches the reply already delivered. A post-delivery evaluator that can mutate output is a correction loop pretending to be a metric, and it should be built as one, explicitly, which I come to below.
Sampling: Two Independent Draws
Each finished turn goes through two draws, in this order:
- Platform monitoring draw. A fixed share of every subject, on our money, regardless of what the customer chose. This keeps drift alerts fed even if every customer turns their checks off.
- Customer draw. The workspace's chosen mode for that evaluator: off, a spot check share, or every one, charged to that workspace's credits.
def draw(evaluator, modes, rng=random.random):
if evaluator.platform_rate and rng() < evaluator.platform_rate:
return "free" if not evaluator.uses_judge else "platform"
rate = MODE_RATES.get(modes.get(evaluator.name), 0.0)
if rate and rng() < rate:
return "customer"
return None # not evaluatedThe order is the point. If both draws would pick the same turn, it is evaluated once, on the platform's money. A customer never pays for a check we would have run anyway. And a deterministic evaluator costs nothing to run, so its platform draws are recorded as free rather than charged to anyone.
Current defaults in our configuration: a spot check scores 10% of subjects, which is the one in ten knowledge answers the report describes. The platform share is 3% for judged evaluators like knowledge answers and agent turns, 25% for the free deterministic harness and retrieval measures, and every run that produces a safety signal. The rates are configuration, not code, so they can move without a release.
One subtle rule: a missing preference resolves to the evaluator's declared default, never to off. Absence of a setting should not silently switch monitoring off, the same way a null should never reach a destructive branch.
Four Presets, and the One That Changes Behaviour
Customers do not want sampling rates. They want a choice they can reason about. So each kind of check gets one setting:
| Preset | Rate | When it runs | Fits |
|---|---|---|---|
| Off | 0 | Never | Low-stakes internal work |
| Spot check | A sample | After delivery | Routine work where a trend is enough |
| Check every one | All | After delivery | A new agent, or the weeks after a prompt, tool or model change |
| Check before sending | All | Before the side effect | Customer-facing output where one bad message costs more than the check |
Not every evaluator offers all four. A knowledge answer offers off, spot check and every one, and defaults to spot check. Deliverables offer before sending, every one and spot check.
The first three only observe. Check before sending is a different animal: it is a pre-commit gate. Before a tool commits, its proposed arguments are judged; before a reply is saved, the reply is judged. Below the pass line, the tool handler is not called and the reply is not saved. The judge's feedback goes back into the same agent run as a correction, with at most two attempts. If it still fails, a safe fallback asks the human for missing details instead of sending, and the failure becomes a durable health record rather than a hidden third retry.
Ordering matters here too. Correction runs before the deterministic approval step, so when an action needs human sign-off, the human approves the corrected proposal, not the draft the judge rejected. The correction loop never approves or executes anything itself.
Designing the Judge, and Its Biases
The judge follows the G-Eval pattern from Liu and colleagues: a written rubric, a score from 0 to 1, and a reason. Knowledge answers use RAGAS-style measures: did the answer stay within its sources, were the sources relevant, did it answer the question. A few decisions keep it honest.
- Deterministic first. Anything a string or state check can decide, it decides. The judge only scores what no check can see.
- Different model from the agent. In our offline runs the judge was a different model family from the agent it graded. A model grading its own family's output is the textbook setup for self-preference bias.
- Narrow input. A reply check sees the latest request and the reply, never a hidden reference answer or the tool outputs. That keeps it cheap and prevents it from grading against facts it cannot verify. The flip side is a hard limit: we do not offer a generic factual correctness check, because without a reference contract the judge would be guessing.
- Reasons are part of the output. A score without a reason cannot be audited, and a customer cannot fix an instruction from a number.
- Calibrate against false positives. In the red team, three misses were the judge being wrong, not the agent. I tightened those rubrics and still reported the original scores. A judge that cries wolf teaches everyone to ignore it.
The usual judge biases still apply: preference for longer answers, leniency, sensitivity to wording. The defences are the ones above, plus publishing the sample size next to every judged number so nobody mistakes a dozen judgments for a measurement.
What Online Evals Cost, and Who Pays
Every judged check is an extra model call, so it is not free. The principle I settled on: customers pay for the checks they chose and for checks on their own work, and nothing else.
- Each judge call has its own provider receipt. Distinct checks and correction attempts are charged separately, so three enabled reply checks on one reply are three checks, and a corrected retry is checked again. Replaying the same receipt is deduplicated.
- Sampled knowledge answer checks and follow-up reviews of likely unresolved conversations use a small amount of credits. A thumbs rating is free.
- Paused, archived and out-of-credit workspaces are skipped, never charged.
- Platform monitoring, deterministic evaluators and safety signals are ours to pay for.
- Every runner enforces daily caps, and the knowledge answer judge has a platform-wide daily safety cap on top, so a traffic spike cannot become a surprise bill on either side.
Every check is listed in the customer's usage. Two numbers on the settings page deliberately never share a name: reviews on record, and reviews billed. They agree in a healthy workspace, a regression test asserts it, and if they ever disagree you want to see both rather than one smoothed over.
Drift and Per-Release Regression Alerts
A single bad score is noise. What you want to catch is a shift. Every evaluation run is stored with its subject, funding, agent model, release identifier and cost, plus one row per metric with value and reason. Because the release is on every row, two kinds of alert become simple:
- Score drift: a metric moving against its own history.
- Build regression: a metric worse on the current release than on the previous one, checked every N runs of a release rather than on a timer, so quiet periods do not produce false alarms.
- Target breach: a metric below its declared target.
Dashboards plot scores per model and per release with deploy markers, so a drop lines up with the change that caused it. Live scores are compared before and after each release and over the following 24 hours. Safety signals have their own alerts, because conditional counts are noise in a drift chart.
This is all live in production now. The report does not yet contain live aggregate numbers; those will be published in a later issue rather than shown as an empty chart.
Where Online Evals Fall Short
- Judges make mistakes. Read reasons, not only scores, and keep deterministic checks in charge of anything they can decide.
- Observation cannot undo. Spot check and every one score work after it is delivered. Only a pre-commit gate can stop a bad output.
- No reference, no fact check. A reply judge without ground truth can catch unsupported claims, not wrong facts.
- Sampling hides rare failures. A 10% spot check will miss most one-off errors. That is a choice about cost, and customers should make it knowingly.
- Coverage costs money. More checks means more spend. The presets exist to make that trade explicit, not to hide it.
Frequently Asked Questions
What is the difference between offline and online evals?
Offline evals run fixed test sets with known answers before and between releases. Online evals score a sample of real production work. Offline blocks releases; online finds the cases offline did not anticipate.
What sampling rate should I use for online evals?
Separate the question into two: a small platform share you always pay for, to keep alerts working, and a customer-chosen rate for the checks they care about. Our spot check default is 10%.
Should the LLM judge be the same model as the agent?
Preferably not. A different model family reduces self-preference bias. Keep its input narrow and its rubric written down.
Can an online eval fix a bad reply?
Only if it runs before the side effect. A pre-commit check can block, request a bounded correction and fall back to asking the human. Post-delivery checks only observe.
How do I stop online evals from becoming a cost problem?
Make every check an explicit opt-in with a visible per-check cost, deduplicate by receipt, skip inactive workspaces, cap daily spend, and pay for your own monitoring sample.
Three Things to Take Away
One. Decide who pays before you decide what to judge. A two-draw sampler, platform first, keeps your alerts alive and never charges a customer for a check you would have run anyway.
Two. Keep observation and correction separate. Post-delivery evaluators score; a pre-commit gate with a bounded retry and a human fallback is the only thing that should change output.
Three. Store every score with its release. That one column turns a pile of judgments into drift and regression alerts you can act on.
If you are designing evals for an agent in production and want a review of the sampling and judge design, that is part of my agent development engagements. The offline numbers that sit underneath all this are in How We Evaluate AI Employees.








