AI quality and observability

How do you evaluate and monitor an AI agent in production?

Define “good” on representative work before launch, inspect how the agent reached each result, and monitor quality, exceptions, reliability, cost, and business outcomes after launch. Evals tell you whether behavior is acceptable; observability helps explain why it happened.

By Naman Kumar · Updated October 29, 2026

Short answer: build a versioned test set from real cases and edge cases; define pass, fail, and escalation criteria; record full workflow traces; sample production outcomes; capture human corrections; alert on material drift; and connect technical metrics to the operational number the workflow is meant to improve.

A completed evaluation you can inspect

The implementation test record separates expected behavior from observed passes: a stale edit must preserve newer state; retrying an already-applied request must not create another write; unauthorized access must fail. The supplied excerpts show the assertions. Read the associated case for the business problem and bounded retrieval result.

Which metrics belong in an AI agent scorecard?

Layer Questions Example measures
Task quality Was the result correct, complete, grounded, and useful? Acceptance rate, factual error, citation validity, rubric score.
Decision safety Did the agent stay within policy and escalate when required? Unauthorized-action attempts blocked, escalation recall, approval compliance.
Execution reliability Did every step complete once and leave a usable result? Completion, timeout, retry, duplicate, recovery, and fallback rates.
Human burden How much review and correction does an accepted result require? Review minutes, edit distance, override rate, exception queue age.
Economics What did it cost to reach an accepted outcome? Model and tool cost, attempts, cost per accepted result.
Business outcome Did the workflow improve the intended operating constraint? Cycle time, capacity, conversion, leakage, service level, risk events.

How do you set up agent evaluation and monitoring?

Representative test set

Use real, anonymized or synthetic-equivalent cases spanning common work, edge cases, conflicts, missing data, policy boundaries, and known failures. Freeze versions so changes are comparable.

Explicit evaluator

Choose deterministic checks where possible, expert rubrics where judgment is needed, and model-based graders only after calibrating them against human decisions.

Workflow trace

Capture retrieved sources, model and version, instructions, tool calls, intermediate state, latency, policy decisions, approvals, action receipts, and final outcome.

Production sampling

Review a risk-weighted sample of completed work plus every serious exception. Feed corrections and new failure modes back into the test set.

Drift and alerts

Watch changes in inputs, sources, model versions, tools, acceptance, cost, latency, and escalation. Set alerts for changes that require investigation or action.

Decision cadence

Name who reviews the scorecard, how often, and which threshold pauses, rolls back, limits, or expands the system.

Which evaluation mistakes create false confidence?

A polished demo is not a test set. A model score is not a business result. An average can hide a dangerous subgroup. User satisfaction cannot prove factual correctness. Logs are not useful observability unless someone can reconstruct the work and make a decision from them. And a test set decays when the workflow, sources, policies, or customer mix changes.

OpenAI describes built-in evaluation and optimization loops as a way to see what works and improve agents over time; its investment guidance recommends real-task evals, edge cases, an agreed “good enough” threshold, and full cost of acceptance. Google Cloud’s agent observability guidance places agent traces and telemetry within the broader production monitoring system. See OpenAI Frontier, OpenAI’s investment guidance, and Google Cloud agent observability.

When should you pause, roll back or expand an agent?

Suppose a support agent answers routine requests well, but a release gives it access to the wrong customer’s record. Pause the affected access immediately, preserve the trace and test the fix before restoring it. A strong average acceptance rate does not cancel that failure. If accuracy is stable but review time rises, investigate the changed cases before expanding volume. Those are different decisions and need different alerts.

A dashboard is not a monitoring system until thresholds lead to action. Define which failure pauses the workflow immediately, which trend triggers investigation, which regression rolls back a version, and which sustained improvement permits broader volume or authority. Keep the decision, evidence, owner, and follow-up in the same operating record.

Compare every release against the current production version on the same frozen set, then add newly discovered failures without rewriting historical results. Segment results by risk, customer type, language, source quality, and workflow branch when averages might conceal harm. Review human corrections as evidence: repeated edits can reveal a missing rule, weak context, a bad evaluator, or work that should remain with a person.

Finally, verify the business measure on its own cadence. A technically better agent can still worsen the operation if it creates new review queues, shifts work downstream, or optimizes the wrong unit.

Validate the intended use and identify unsafe behavior.

Required featureEvidence producedRequired outcome
Intended-use validation planApproved purpose, population, environment, risk analysis, acceptance criteria, prohibited uses, and accountable sign-off.The system is validated for the job it performs, not for a generic benchmark.
Representative and adverse testingNormal cases, edge cases, affected groups, missing and conflicting data, prompt attacks, unsafe requests, tool failures, and misuse scenarios.Known limitations, differential failures, security weaknesses, and escalation needs are measured before scale.
Independent review where warrantedQualified reviewer, separation from the builder, reproducible test package, findings, disposition, and residual-risk acceptance.High-consequence releases are not approved solely by the team that built them.
Production traceabilityVersioned model, prompt, policy, source references, tools, approvals, output, action receipt, reviewer, and outcome.A material result can be reconstructed and attributed after the fact.
Drift, subgroup, and control monitoringQuality, safety, overrides, complaints, latency, cost, unauthorized attempts, source changes, and performance by relevant segment.Degradation and uneven harm are detected before averages conceal them.
Incident and change responseAlert thresholds, stop criteria, rollback, notification, root cause, corrective action, revalidation, and closure evidence.Material failures lead to controlled response and verified prevention of recurrence.

A regulated validation package should be proportionate to consequence. It may need privacy, security, accessibility, fairness, safety, records, clinical, financial, or other domain review. The page describes an operating baseline, not a certification or substitute for sector expertise.

The NIST AI RMF applies trustworthiness throughout design, deployment, use, testing, and evaluation. Its Generative AI Profile adds governance, pre-deployment testing, provenance, and incident considerations; ISO/IEC 42001 adds continual management review and improvement.

Inspect a scoped-retrieval evaluation

The agent-coordination case includes a three-size retrieval check, the Python runner and its dated results. It measures returned context and checks that the relevant completed work and evidence remain available.