Continuous Evaluation, Statistics and Scorecards

Run the evidence machine on every change, keep watching in production and be honest about how much a number can tell you.

BeginnerIntermediateExpert · 13 min read · Last updated:

In short

Run fast checks on every change and larger suites before release, then sample production and turn failures into new cases. Report pass rates with confidence intervals, compare versions on the same tasks with a paired method, plan sample size before testing and publish a short scorecard that leads to a decision.

What you will learn: an evaluation cadence, production feedback, intervals and significance, sample size, multiple comparisons, scorecards, cost control and how to compare tools.
Prerequisites: Agent Evaluation Framework, Golden Datasets, Synthetic Data and Simulation and Task, Tool and Planning Metrics.

Versions used

The example runs in November 2026 with Python 3.13 and only the standard library. The pass and fail results are invented. Product notices cited here were checked in November 2026.

Beginner A loop, not an event

The continuous loop

Changeprompt, model, tool, data
Testoffline suites and gates
Releasein stages
Observesample real use
Learnfailures become cases
↺ Every lesson changes the next test run
TriggerSuiteTime budget
Each commitCode tests, invariants, a small smoke setMinutes
Prompt, model or tool changeRegression set with repeated trialsTens of minutes
Release candidateFull and held-out sets, safety and recoveryHours
Nightly or weeklySame version rerun to detect outside changeOff-peak
ContinuouslySampled production runsOngoing

The scheduled rerun matters because behavior can change when you changed nothing: a hosted model is updated, a source index is rebuilt or a downstream API alters a response.

Production feedback and online evaluation

SignalValueLimit
Verified outcomesStrongest evidence, such as a reopened ticketOften delayed
Human review of samplesQuality and safety judgmentCostly
Model grading of samplesBroad coverageNeeds calibration
User ratingsDirect reactionFew users respond, and not randomly
BehaviorRetries, edits, abandonmentAmbiguous causes
Escalations and complaintsPoints at serious failuresBiased toward the visible

Combine a random sample, which estimates quality, with a targeted sample, which finds problems. Handle production data under your privacy rules, and remove personal details before a run becomes a test case (Safe Logging, Sampling and Retention). Where it is acceptable and safe, an A/B test or shadow run compares versions on real traffic.

Intermediate How sure are you?

Confidence intervals for pass rates

If 17 of 20 cases pass, the observed rate is 85 percent, but a different 20 similar cases could easily give 75 or 95. A confidence interval expresses that uncertainty. The Wilson interval is a good simple choice for a proportion, and behaves better than the plain "rate plus or minus" formula near 0 or 100 percent and with small counts.

Independent trialsApproximate 95% margin at an 80% pass rate
25About 15 points either way
100About 8 points
400About 4 points
1,600About 2 points

Halving the margin takes about four times as many trials. These figures assume independent trials. Repeating the same ten tasks forty times gives 400 runs but not 400 independent examples of your work, so the uncertainty about other tasks stays large. Treat tasks as the main unit, and use methods that account for grouping when it matters.

NIST AI 800-3 (February 2026) makes a related distinction between accuracy on a fixed set of questions and generalized accuracy across similar questions, and discusses mixed models for estimating the second.

Compare two versions on the same tasks

Run both versions on identical tasks, then look at where they disagree. The exact McNemar test asks whether the split between "newly fixed" and "newly broken" tasks is plausible if neither version were better.

"""Compare two agent versions on the same tasks (invented results)."""
from math import comb, sqrt

# 1 = pass, one entry per task, same task order for both versions
OLD = [1] * 31 + [1] * 3 + [0] * 12 + [0] * 4
NEW = [1] * 31 + [0] * 3 + [1] * 12 + [0] * 4


def wilson(successes, n, z=1.96):
    """95% confidence interval for a pass rate."""
    p = successes / n
    denom = 1 + z * z / n
    center = (p + z * z / (2 * n)) / denom
    half = z * sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / denom
    return center - half, center + half


def mcnemar_exact(only_old, only_new):
    """Two-sided exact test on the tasks where the versions disagree."""
    n = only_old + only_new
    if n == 0:
        return 1.0
    tail = sum(comb(n, i) for i in range(min(only_old, only_new) + 1)) / 2 ** n
    return min(1.0, 2 * tail)


def main():
    n = len(OLD)
    for name, results in (("old", OLD), ("new", NEW)):
        low, high = wilson(sum(results), n)
        print(f"{name}: {sum(results)}/{n} = {sum(results) / n:.0%}  "
              f"95% interval {low:.0%} to {high:.0%}")
    only_old = sum(a and not b for a, b in zip(OLD, NEW))
    only_new = sum(b and not a for a, b in zip(OLD, NEW))
    p = mcnemar_exact(only_old, only_new)
    print(f"fixed by new: {only_new}   broken by new: {only_old}   p = {p:.3f}")
    print()
    gate = [("improvement unlikely to be chance (p < 0.05)", p < 0.05),
            ("no broken tasks", only_old == 0)]
    for text, ok in gate:
        print(f"[{'x' if ok else ' '}] {text}")
    print("decision:", "ship" if all(ok for _, ok in gate)
          else "hold and read the broken tasks")


if __name__ == "__main__":
    main()

Output:

old: 34/50 = 68%  95% interval 54% to 79%
new: 43/50 = 86%  95% interval 74% to 93%
fixed by new: 12   broken by new: 3   p = 0.035

[x] improvement unlikely to be chance (p < 0.05)
[ ] no broken tasks
decision: hold and read the broken tasks

Two lessons appear. The separate intervals overlap, yet the paired test uses the task-by-task information and finds the 12 to 3 split unlikely under no difference. Even so, the release is held, because three tasks that used to work now fail. Statistics answer whether a difference may be chance; they do not say whether a broken task is acceptable. Read those three.

What a p-value is not

It is not the probability that the new version is better, and it says nothing about how large or important the difference is. Report the size of the change and its uncertainty too.

When the question is "not worse"

Switching to a cheaper or faster model rarely needs proof of improvement. It needs evidence that quality has not fallen by more than you can accept. State a margin in advance, for example two points on routine tasks, estimate the difference on paired tasks and accept only if the lower end of the interval for new minus old stays above minus that margin. "No significant difference" is not enough: a tiny test finds no difference between almost anything.

Handle unstable cases

Cause of instabilityHow to tellResponse
Real variation in the agentTranscripts differ in decisionsRun repeated trials and track the rate
Ambiguous taskReviewers disagree on the right resultClarify the task or accept several outcomes
Brittle graderCorrect answers marked wrongFix and regrade stored outputs
EnvironmentTimeouts, leftover state, rate limitsReset state; classify as infrastructure error

Quarantining a flaky case can keep a pipeline usable, but give it an owner and a deadline. A quarantine list that only grows is a way of deleting tests quietly.

Expert Planning and decisions

Plan the sample before you test

  1. Choose the smallest difference that would change your decision.
  2. Estimate the current pass rate and how often versions disagree.
  3. Pick acceptable chances of a false alarm and of missing a real change.
  4. Calculate or simulate the number of tasks and trials needed.
  5. If that is unaffordable, say what the smaller test can and cannot detect.

Small test sets can detect large regressions and will often miss small ones. For rare serious failures, zero events in n independent trials suggests, as a rough 95 percent upper bound, a rate below about 3 divided by n. Reliance on testing alone is therefore weak for rare harms; add controls that prevent the effect.

Worked sample sizes

The table gives approximate numbers of independent tasks per version for an unpaired comparison, using a two-sided 5 percent false alarm rate and an 80 percent chance of detecting the stated change. It is a normal-approximation estimate for planning.

Change to detectTasks per version
80% to 90%About 200
90% to 95%About 440
80% to 85%About 910
80% to 82%About 6,000

Pairing the same tasks often needs fewer, because it removes variation between tasks, with the saving depending on how often the two versions disagree. Either way, a 50-case set cannot reliably confirm a two-point gain.

Statistical traps

TrapRemedy
Testing many variants and announcing the bestConfirm the winner on fresh held-out cases
Checking many slices until one looks significantName primary measures first; correct or confirm the rest
Stopping as soon as the result looks goodFix the sample size or use a method designed for early stopping
Comparing runs from different days and gradersRun both versions together with one grader
Treating repeated runs as new tasksSummarize by task, or model the grouping
Dropping errorsFix the treatment of failures beforehand

Detect drift in production

Online scores move for dull reasons, so alert on changes that are both large enough to matter and unlikely to be noise.

  • Choose a window that contains enough graded items; hourly figures from ten samples will swing wildly.
  • Set a minimum count below which no quality alert fires.
  • Compare with a stable reference period, by slice, so that a change in traffic mix is visible.
  • Require the shift to persist across windows for slow signals, but page at once for safety violations.
  • Mark releases and provider changes on every chart.
  • Keep a fixed canary set running on a schedule to separate changes in the agent from changes in users.

If the canary set holds steady while production scores fall, look at the incoming requests and data. If both fall, look at the model, prompts, tools and dependencies (Promotion, Feature Flags, Rollback and Drift).

Scorecards and reporting

A scorecard is one page that a busy owner can use to decide. Keep the layout stable so that readers learn where to look.

SectionContents
DecisionShip, hold or reject, with the reason and approver
What changedVersions of agent, model, prompts, tools, data and graders
OutcomesSuccess by slice with counts and intervals
SafetyViolations, refusals and open findings
ComparisonFixed and broken tasks against the current release
EfficiencyLatency percentiles and cost per success
LimitsWhat was not tested and known weaknesses
NextActions, owners and dates

Show trends over releases, and mark where the dataset or grader changed so that a step in the line is not mistaken for progress.

Illustrative scorecard summary

Decision: hold release candidate 14.
Why: overall success rose from 34 to 43 of 50 on paired tasks, but three previously passing tasks failed, one involving a refund limit.
Safety: no completed forbidden actions in the tested set.
Not tested: languages other than English; peak load.
Next: owner reviews the three transcripts, fixes, and reruns the full set and fresh held-out cases.

Evaluation tools compared

Tools differ in where tests live, who can read them and how they connect to traces. Compare by need rather than popularity.

ApproachExamplesSuits
Code-first frameworkInspect, from the UK AI Security InstituteReproducible research-style and agent evaluations
Configuration and command linePromptfooPrompt and agent checks in build pipelines
Tracing platform with datasetsHosted or self-hosted observability productsLinking production traces to cases and scores
Cloud or data platform serviceEvaluation features of your providerTeams already building there
Your own scriptsTest runner plus gradersSmall suites and special environments
Hosted features can be withdrawn

OpenAI announced on June 3, 2026 that its Evals platform is being deprecated: existing evaluations became read-only on October 31, 2026, and the dashboard and API are scheduled to shut down on November 30, 2026. Keep cases, graders and results exportable.

  • Can you export datasets, graders and raw results in open formats?
  • Can it run in your pipeline and in an isolated environment?
  • Does it record versions of everything that affects a score?
  • Where is data sent and stored, and for how long?
  • Can it grade state and actions, not only text?

Keep a portable record

Whatever tool you choose, store each result with enough detail to reread it elsewhere: case identifier and version, agent and model versions, the output and final state, each grader's verdict with its version, time, cost and run identifier. A plain structured file or database table is enough. With that record you can move tools, regrade old outputs with a better grader and answer an auditor's question about why a release was approved.

Control cost and time

Order checks from cheap to expensive and stop early on hard failures. Cache results only when every input, including model and grader versions, is identical, and never cache when the aim is to measure variation. Run cases in parallel within rate limits, keep an evaluation budget per release and track which suites actually find problems.

Ownership and routine

CadenceActivity
DailyCheck gate failures and production alerts
WeeklyReview sampled failures and add cases
MonthlyCompare human checks with automated grades
QuarterlyRevisit thresholds, slices, held-out cases and cost

Common mistakes

MistakeBetter approach
Reporting a percentage without a countShow counts and an interval
Declaring a two-point gain on 50 casesCheck detectable difference first
Evaluating only before launchSample production and rerun on schedule
Ignoring newly broken tasks when the average risesReview every critical regression
Thresholds nobody ownsName an owner and the action on failure
Locking test data inside one productKeep portable copies

Continuous evaluation checklist

  • Each trigger has a defined suite, budget and owner.
  • Unchanged releases are rerun to detect outside changes.
  • Random and targeted production samples are reviewed separately.
  • Pass rates carry counts and intervals.
  • Version comparisons use the same tasks and graders.
  • Sample size and primary measures are chosen in advance.
  • A one-page scorecard records the decision and limits.
  • Datasets, graders and results can be exported.

Frequently asked questions

Is a p-value below 0.05 enough to ship?

No; also check the size of the change, critical regressions, safety results, cost and whether the test reflects real use.

Should tests call a live model in the pipeline?

Use recorded replies for logic tests and a controlled set of live trials where model behavior is what you are checking.

How much production traffic should be reviewed?

Enough random items to estimate quality at the precision you need, plus the risky and flagged cases your team can handle.

Why did scores change when nothing changed?

Sampling variation, a hosted model update, new data, a dependency change or a grader change can each cause it.

References and further reading

Next steps