Evals
Suites of cases with scorers, run against a version, decide whether a release is allowed and whether live quality is drifting.
On this page
An eval answers one question: is this version at least as good as what is running? Argus makes the answer a gate rather than a habit.
Suites, cases and runs
An eval suite has a name, a description, scorers and cases. A case is an input with an optional expected output or properties to check. You can write cases by hand or promote them from a real run. Running a suite against one agent version produces an eval run: a result per case with its cost and latency, a pass rate, and a verdict from the suite's threshold. Runs can be listed by agent, version, suite and status.
Fixing a case, removing a case or a suite
A case can be read, replaced and deleted by its id (GET, PUT and DELETE /v1/projects/{project}/eval-suites/{namespace}/{name}/cases/{case}), or by its name when exactly one case of the suite carries it. A replace takes the whole case and keeps its id and origin. A suite can be deleted with its cases (DELETE .../eval-suites/{namespace}/{name}) unless the project's eval gate floor or an agent version's evals.suite names it; the answer is a 409 that says which. The same people can do it as for adding a case: a member, and only an admin for the floor's suite or an admin-owned one (each such write is recorded). Every write carries an idempotency key.
Past runs are not rewritten. A run keeps a copy of each case as it was when the run was created, so a case you fixed or deleted afterwards still shows what that run asked and how it scored. Changing a case moves the suite's revision, so gate evidence from before the change no longer counts for a floor suite: run it again. argus eval import FILE updates a case whose name matches and whose content changed, creates the new ones and leaves the rest. argus eval case delete SUITE CASE and argus eval suite delete SUITE remove one.
Scorers
A run can score with:
- an LLM judge, which is another agent applying a rubric;
- code checks that run on the output;
- tool checks that look at which tools were called.
Every verdict records which judge answered.
The gate
An agent's definition names its suite and the gate:
evals:
suite: showcase/writer-checks
gate:
min_pass_rate: 0.8
max_regression: 0Moving a gated label such as production to a version is refused unless that version's latest completed run passes, and its pass rate has not fallen more than max_regression below the latest run, on the same suite, of the version the label holds now. A refusal carries the numbers. In the Studio the Ship page runs the suite for you, shows the verdict in words, and refuses to ship while the gate is blocking. See Versions, labels and releases.
The definition's gate numbers can only tighten the project's eval gate floor, which a project admin sets (PUT /v1/projects/{project}/eval-gate-floor, audited with a reason, and with a fresh sign-in in the Control Center). With no floor set, the bar is the suite's own verdict and no regression. A min_pass_rate adds to the suite's verdict and never replaces it. A max_regression above the floor's has no effect, and leaving out pairwise does not drop a pairwise requirement the floor sets. An admin can also name the suite in the floor (suite). Every gated move is then judged on that suite, whatever the version's evals.suite says, and only a project admin may change that suite or add cases to it; each such write is recorded. Without a floor suite, once the secure default is on (until then Argus only reports), a move of production, or of a label that takes traffic, counts only runs of an admin-owned suite for that agent (the suite's agent) started since an admin took it over (admin_owned: true on the suite). The candidate's author cannot choose or write the suite that judges it. A project admin takes a suite over; from then on only admins change it or add cases, and each such write is recorded.
Pairwise comparison
A pass rate counts cases; it does not say whether one version's answers are better than another's. A pairwise comparison puts two completed runs of the same suite side by side: for every case both runs scored, a judge reads the two answers to the same input and says which is better, or that it is a tie. Nothing is run again; the comparison reads the sessions the two runs already hold.
- The judge is the LLM judge the scorers use, asked "Which answer is better: A or B or tie?".
- The order is random. The judge sees the candidate as "A" in some cases and as "B" in others. The LLM judge costs tokens and is asked once.
- The result is the candidate's wins, losses and ties, each rate with a 95% Wilson interval, and the net loss: the share of cases the candidate loses minus the share it wins. A small suite gives a wide interval, so read the interval before the point.
- The spend is the LLM judge's model calls, and it is in the ledger for the candidate's agent and version, so it counts in usage and against budgets.
Open a completed run and use Pairwise comparison to pick another run of the suite. The page shows the outcomes as bars, the rates with their intervals, and a row per case: who was better, what the judge saw in each order, and its reason. From the command line, argus eval compare CANDIDATE_RUN BASELINE_RUN waits and prints the same; --max-net-loss 0.1 exits with code 9 when the candidate loses by more.
A definition can make this part of the gate:
evals:
suite: showcase/writer-checks
gate:
min_pass_rate: 0.8
pairwise:
max_net_loss: 0.1With pairwise set, moving a gated label off another version also needs a completed comparison of the candidate's latest run against the version the label holds, in which the candidate loses by no more than max_net_loss (the net loss; 0 means it must win at least as often as it loses). Without one the move is refused and the answer says to run it. A rollback does not need a comparison. The Ship step in the Studio states the criterion, shows the comparison and starts one for you.
Online evals and drift alerts
A label can also have an online eval: a sample of its completed runs is scored after each run, off the run's path. If the pass rate of the latest window drops by more than the configured amount below the window before it, or under a floor, a drift alert opens. It resolves when the pass rate recovers or the label is rolled back. This is how you catch a release that passed its suite and still got worse on real traffic.
Operator verdicts
You can record a verdict on any run (correct, partial or wrong) with a note. The verdict is stored with the run.
Where evals live in the product today
The Evals page in the app (/evals) lists your suites with their case count, last run and trend. Open a suite to see its runs across versions and a comparison of a candidate version against production, and to start a run. Open a run to see each case with every scorer's verdict, score and reason, failed cases first; a run in progress updates as it goes. Until you have a suite, the page points to the command line and the Studio.
The Ship step in the Studio also runs and reads evals. Suites and cases are still created, fixed and deleted through the API and the command line (argus eval suites import, then run and show); the Evals page does not create them.
In CI
argus eval run SUITE --version N --fail-under 0.9 exits with code 9 when the pass rate is below the bar, so a pipeline can stop on a regression. argus eval compare CANDIDATE_RUN BASELINE_RUN --max-net-loss 0.1 does the same for a pairwise comparison.