CI Evals vs Production Monitoring

CI evals protect against known regressions before deployment. Online monitoring finds failures in production traffic and estimates how often they occur.

CI / CDOnline monitoringGuardrails
GoalPrevent regressionsDiscover new failures and track performanceEnforce safety, block high-impact errors
WhenPre-merge (pull request)Async (post-response)Synchronous (pre-response)
HowUnit tests / assertions, LLM judgeAssertions, LLM judge, A/B testingAssertions, small classifiers
DataCurated test casesSampled production traffic100% of live traffic
On failureBlock mergeTrigger an alertBlock response, retry, or fall back

Evals in CI

  • Small, purpose-built datasets (often ~100+ examples) covering core features, regression tests for past bugs, and known edge cases.
  • They run often, so cost per test matters. That’s why the set is curated. Favor assertions and deterministic checks over LLM judges.
  • Orchestrate with whatever has the least friction in your stack (GitHub Actions, GitLab pipelines). Store metrics and prompt/test versions outside CI for tracking over time. Rechat used Metabase on top of existing analytics.
  • Pass rate is a product decision. You don’t need 100%.

Online monitoring

  • Sample live traces and run evaluators asynchronously.
  • Production usually has no reference outputs, so you rely more on reference-free evaluators like LLM judges (more expensive).
  • Track confidence intervals. If the lower bound crosses your threshold, investigate. Correct judge rates for known judge error (see Judge Bias Correction).
  • Example: Nova Escola runs a daily eval suite against 2% of production traffic to catch regressions early.

Connect the two

When monitoring (plus Error Analysis) reveals a new failure pattern, add representative examples to the CI dataset. That prevents regressions on newly discovered issues.

Anthropic’s “Swiss cheese” view

No single layer catches everything. A full picture combines:

MethodStrengthWeakness
Automated evalsFast, reproducible, no user impact, run every commitUp-front cost, maintenance, false confidence if unrepresentative
Production monitoringReal behavior at scale, ground truthReactive, noisy, needs instrumentation
A/B testingMeasures real outcomes, controls confoundsSlow, needs traffic, weak on “why”
User feedbackSurfaces the unanticipatedSparse, self-selected, skews severe
Manual transcript reviewBuilds intuition, catches subtle issuesDoesn’t scale, inconsistent coverage
Systematic human studiesGold-standard, handles subjectivityExpensive, slow

Automated evals come first (pre-launch and CI), monitoring post-launch, A/B tests for significant changes, and feedback plus transcript review are ongoing (sample transcripts to read weekly).

Guardrails vs Evaluators · Three Levels of Evaluation · Capability vs Regression Evals · Eval Maintenance and Cadence