1. Home
  2. Journal
  3. AI Agent Evaluation: Metrics, Frameworks and CI Gates

AI Agent Evaluation: Metrics, Frameworks and CI Gates

AI agent evaluation in practice: outcome and trajectory metrics, golden datasets, LLM-as-judge calibration, CI gates and evals as acceptance criteria.

YITEC Research··Updated ·7 min read
Evaluation dashboard showing pass rates, trajectories and cost per task for an AI agent

AI agent evaluation is the practice of measuring whether an agent reaches the correct end state, takes a sound path, uses tools correctly and stays within cost, latency and safety limits, consistently across repeated runs. A working evaluation framework has three parts: a versioned set of real tasks, graders (code checks, calibrated LLM judges and humans), and gates that block a release when scores drop. The step most teams skip is the last one: writing those thresholds into the contract.

The vendor guides that rank for this topic mostly explain their own tool. This one is tool-neutral and comes from running evals on production agents for governments and regulated companies, where "it looked fine in the demo" is not an acceptance criterion.

What is AI agent evaluation, and how is it different from LLM evaluation?

LLM evaluation grades one answer to one input. Agent evaluation grades a process. Anthropic's vocabulary is useful here (Anthropic):

  • Task: one test with defined inputs and success criteria.
  • Trial: one attempt. You run several, because outputs vary.
  • Grader: logic that scores one aspect of the trial.
  • Transcript (trajectory): the full record of tool calls, reasoning and intermediate results.
  • Outcome: the final state of the environment, such as whether the booking exists in the database.

The outcome is the part most chat-era metrics miss. An agent can write a confident "Done, your permit is filed" while the record was never created.

The AI agent evaluation metrics stack

Layer What it answers Example metric How to measure
Outcome Did the job get done? Task success against acceptance criteria Check the end state in the system of record
Trajectory Was the path sound? Unnecessary steps, loops, skipped checks Transcript checks plus human review of samples
Tool use Were the right tools called correctly? Valid arguments on first call Schema validation on every call
Consistency Does it work every time? pass^k over repeated trials Run each task k times
Efficiency Is it affordable and fast? Cost and latency per completed task Tracing with token and time accounting
Safety Did it stay inside its limits? Policy violations, data leaks, injection success Red-team tasks and guardrail logs
Business Does it matter? Hours saved, cases closed, error rate vs baseline Production analytics against a control

Consistency deserves special attention. pass@k (at least one success in k tries) flatters an agent; pass^k (all k tries succeed) tells you whether users can rely on it. A 75% per-trial success rate gives only about 42% for three straight successes (0.75³). The τ-bench authors found function-calling agents succeeded on fewer than half of tasks, and gpt-4o's pass^8 in the retail domain was below 25% (Yao et al.).

Building a golden dataset

Start with 20 to 50 tasks drawn from real failures, as Anthropic recommends, not hundreds of synthetic ones. Then grow the set every time production finds something new.

What goes in

  • Happy-path tasks for each core workflow.
  • Edge cases: missing fields, conflicting records, ambiguous requests, wrong language.
  • Adversarial cases: prompt injection hidden in documents, requests outside the agent's authority.
  • Regression cases: every bug that ever reached a user.

How to keep it honest

  • Version it in Git next to the code and prompts, so a score is always tied to a dataset version.
  • Human-written cases outrank generated ones. When a human-approved case and a generated case disagree, the human case wins.
  • Fix the scorer before the run. In one of our projects, an agent's self-scoring reported 69% and 75%; the official scorer gave 56% and 63%. Only the official numbers count, and a finding must reproduce on fresh, unseen runs.

Deterministic checks vs LLM-as-a-judge

Use code wherever the answer can be checked by code: database state, schema validity, exact figures, whether a test passes. It is fast, cheap and reproducible.

Use a model as judge for what code cannot check: tone, completeness of a summary, whether an explanation is faithful. Strong LLM judges reached over 80% agreement with human preferences in the MT-Bench study, about the level humans reach with each other, but the same study documented position, verbosity and self-enhancement biases (Zheng et al.). So calibrate the judge against human labels before trusting it, and re-calibrate when you change the judge model.

A hybrid we use on government assistants: a deterministic check that every number in an answer traces to a tool result or the user's input. If a figure is untraced, the agent retries; if it is still untraced, the number is masked "[unverified]". No judge model is needed for the part that matters most.

Offline evals as a CI gate, then online sampling

Treat evals like tests. A prompt or model change that lowers quality should fail CI, and each release should be compared with a baseline, not only with a pass/fail floor (Stack Overflow). After release, sample production traffic, grade it with the same graders, and watch cost and override rate on a dashboard.

Two rules from our own pipeline:

  1. Evidence, not status. Never call a feature working from a health check. Our QA agent drives a real browser through every UAT case and saves screenshots, and someone actually opens them.
  2. Gates on what users see. Our open-source visual check, RenderLint, runs in the loop. Across 22 AI coding sessions, the apps built without it had 229 visual defects; the apps built with it had 0.

Benchmarks vs your own evals

Public benchmarks such as τ-bench and SWE-bench are good for choosing a model and tracking the field. They are poor at predicting how an agent will do on your forms, your data and your edge cases. Use them to shortlist models, then decide with your own golden set. If a vendor quotes only benchmark scores, ask for results on your tasks.

Agent evaluation tools

Tool Type Typical use
Langfuse Open source, self-hostable Tracing, cost tracking, datasets and scores
Arize Phoenix Source-available, self-hostable Tracing, evaluation and observability
MLflow Open source Experiment tracking with GenAI evaluation
DeepEval Open source Test-style eval cases with built-in metrics
Ragas Open source Retrieval and RAG quality metrics
OpenAI Evals Open source framework Defining and running eval suites
LangSmith Commercial (LangChain) Tracing, datasets and evaluators
Braintrust Commercial Eval experiments and production logging

The tool matters less than the dataset and the gate. For sovereign or government work, prefer tools you can self-host so transcripts never leave the client's infrastructure.

Evals as contract acceptance criteria

This is where agent evaluation becomes a procurement tool. Instead of "the system shall use AI to assist officers," a statement of work can say:

Acceptance item Example threshold Evidence delivered
UAT pass rate 100% of approved cases, 0 open failures Case-by-case report with screenshots
Numerical grounding 100% of figures traced or masked Automated trace check log
Consistency Agreed pass^k on critical tasks Repeated-trial results per task
Security 0 open high or critical findings Audit report and scan output
Parity (for migrations) All agreed scenarios match the old system Side-by-side scenario results

We deliver to these terms. On a national data-integration gateway, every UAT case was an automated test ("a case without a test is not done"); more than a thousand cases passed with none open, and every audit finding was fixed before go-live. Before swapping the prototype engine for one in a production language, we required the parity scenarios to match; the new engine then ran about 10 times faster.

This approach fits the measurement function of the NIST AI Risk Management Framework and gives a buyer something concrete to sign off.

Eval maturity model

  1. Level 0, vibes: manual spot checks in a demo.
  2. Level 1, golden set: 20 to 50 real tasks, run by hand before releases.
  3. Level 2, CI gate: evals run on every change and block regressions against a baseline.
  4. Level 3, production loop: sampled live traffic graded continuously; failures flow back into the golden set.
  5. Level 4, contractual: thresholds written into acceptance criteria, with evidence packs delivered per release.

How YITEC does it

Evaluation is built into our AI Software Factory, not added at the end:

  • Each UAT case becomes a named browser test, so the regression suite grows with every feature. On the Resolution 57 KPI platform that produced about 850 end-to-end browser tests and 1,143 test files in seven weeks.
  • Our AI QA bot ran 13,491 test-case executions and filed 1,006 issues, 603 of them security findings, before users saw them. The approved UAT workbook grew to 6,021 cases.
  • On a US healthcare prior-authorization platform, prompts live as versioned files with their own evaluation sets, backed by about 18,800 automated tests. Langfuse traces every model call with its reasoning trail, cost and evaluation score, so a regression shows up as a number, not a complaint.
  • Our probes sign in as real test users for every role and walk the pages those users open. Component health checks alone once reported 14 of 14 green while testers were locked out; we explain that failure in AI agent orchestration in production.

For more on how evals fit agent design, read agentic AI development and multi-agent system architecture. To set acceptance thresholds for your own agent, see our services or contact us.

FAQ

What is AI agent evaluation?
AI agent evaluation measures whether an agent reaches the right end state, takes a sensible path to get there, uses tools correctly, stays within cost, latency and safety limits, and does so consistently across repeated runs. It combines automated checks, model-based graders and human review, and it runs both before release as a gate and in production on sampled traffic.
How is LLM evaluation different from agent evaluation?
LLM evaluation scores a single response to a single input, for example accuracy, relevance or tone. Agent evaluation scores a multi-step process: the tools called, the arguments passed, the intermediate decisions and the final state of the environment, such as whether a record was actually created. Agents also need repeated trials, because a task that succeeds once may fail on the next run.
What are the most common AI agent evaluation metrics?
Teams usually track task success against acceptance criteria, tool-call accuracy, trajectory efficiency such as steps per task, cost and latency per completed task, consistency across repeated trials such as pass^k, safety violations, and a business KPI like time saved or cases closed. The right mix depends on the risk of the workflow, with stricter consistency targets for customer-facing and government agents.
How many test cases do I need to evaluate an agent?
Start small and real. Anthropic recommends 20 to 50 simple tasks drawn from real failures, because early changes tend to have large effects that a small set detects. Grow the set every time production shows a new failure. For acceptance testing on a regulated system, expect hundreds to thousands of cases tied to requirements; our national gateway UAT ran more than a thousand.
How do you use LLM-as-a-judge reliably?
Use a written rubric, ask for a score with a short justification, and calibrate the judge against human labels on a sample before trusting it. Watch for known biases: position, verbosity and self-preference. Re-check agreement whenever you change the judge model or rubric, and prefer deterministic checks wherever the answer can be verified by code.

Sources

  1. Demystifying evals for AI agents (Anthropic, 2026)
  2. τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains (arXiv 2406.12045)
  3. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (arXiv 2306.05685)
  4. Production-grade LLMs and agents: a field guide (Stack Overflow Blog, 2026)
  5. AI Risk Management Framework (NIST)
Your move

Bring us the problem everyone else quoted a year for.