Skip to main contentSkip to user menuSkip to navigation

Agentic AI Evaluation

Master agentic AI evaluation: goal completion, tool efficiency, multi-step assessment, and safety evaluation for autonomous AI systems.

55 min readAdvanced
Not Started
Loading...

What is agentic AI evaluation?

Agentic AI evaluation is the practice of testing an AI system that observes, plans, calls tools, changes external state, and adapts over multiple steps. A normal model evaluation can score one answer. An agent evaluation must score the full trajectory and verify what actually happened outside the model.

It matters because an agent can write a convincing completion message after a tool failed, repeat a payment after an ambiguous timeout, or finish the task by crossing a permission boundary. Core invariant: never accept an agent's success claim without joining it to the task contract, complete action trace, policy decisions, and authoritative external state.

Review AI agents for planning and tool-use foundations, and LLM-as-judge evaluation before delegating rubric decisions to another model.

Evaluate the trajectory, not only the final sentence

Each run should begin with an observable contract and end with an independent state check. Intermediate evidence explains why the run succeeded, failed, recovered, or became unsafe.

  1. 1

    Boundary

    Declare the task contract

    Record the starting state, observable success condition, allowed tools, prohibited actions, budgets, and required approvals.

  2. 2

    Run

    Execute in a controlled world

    Provide stable identities for the agent, prompt, model, tools, environment, and scenario while preserving every observation and action.

  3. 3

    Trajectory

    Score decisions and recovery

    Inspect planning, tool selection, argument validity, evidence use, retries, memory, adaptation, and policy compliance at each step.

  4. 4

    Outcome

    Verify authoritative state

    Check the external system for complete, partial, duplicate, or missing effects instead of trusting the agent's narrative.

  5. 5

    Robustness

    Repeat under variation

    Change requirements, tools, latency, permissions, and adversarial inputs to expose brittle plans and unsafe recovery behavior.

Explore where decisive evidence comes from

Switch among a healthy run, tool failure, blocked action, and false completion. The active path shows which component supplies the evidence needed to score the run honestly.

Keep outcome, safety, efficiency, and recovery independent

A single blended score hides why the agent failed. Release decisions need separate gates because high task completion cannot compensate for unauthorized actions, and low cost cannot compensate for false success.

Verified outcome

Compare the requested state with the authoritative environment. Report complete, partial, duplicate, and falsely claimed outcomes separately.

Policy compliance

Measure attempted and executed boundary violations, approval bypasses, secret exposure, resource abuse, and unsafe escalation behavior.

Trajectory quality

Score planning, tool choice, argument construction, observation use, backtracking, redundant calls, and evidence-grounded stopping.

Recovery behavior

Inject typed failures and ambiguous outcomes. Check whether the agent reconciles state, retries safely, changes plan, or requests help.

Record rates with their denominators

  • Verified completion: runs whose authoritative final state satisfies every required success condition divided by eligible runs.
  • False-success gap: self-reported completion minus externally verified completion.
  • Boundary violation: runs with an attempted or executed prohibited action divided by adversarial and representative runs.
  • Tool error and recovery: failed calls by error type, followed by the fraction recovered without duplicate or unsafe side effects.
  • Trajectory budget: p50 and p95 steps, tool calls, latency, tokens, and cost for completed and failed runs separately.

Turn trajectory evidence into a release decision

Use the scorecard to compare four agent behaviors. Increase the number of evaluation runs to narrow uncertainty, then change the permitted step budget. Notice that more samples cannot average away a systematic false-completion, retry, or permission failure.

Loading trajectory evidence

Preparing scorecard scenarios...

Read the gates in this order

  1. Verify final state. Use a conservative completion bound rather than the agent's point estimate or self-report.
  2. Measure claim reliability. A large false-success gap means completion language cannot be trusted as evidence.
  3. Enforce authorization separately. Treat boundary violations as hard blockers regardless of average task success.
  4. Inspect tool and recovery behavior. Separate provider failures from malformed calls and unsafe retry choices.
  5. Bound the trajectory. Gate p95 steps, latency, cost, and repeated side-effect risk rather than rewarding eventual success at any price.
  6. Grant only bounded exposure. Passing offline evidence earns a canary with abort signals, not unrestricted autonomy.

Build scenarios that expose real decisions

Static question sets underrepresent agent behavior because later observations depend on earlier actions. Use environment-backed scenarios with controlled variation and an evaluator that can inspect both the path and the final state.

A scenario becomes reusable trajectory evidence

Version every stage so a release or incident decision can be reconstructed later.

Contract

Task generator

Creates representative and adversarial goals with initial state, permissions, budgets, and deterministic success checks.

Execution

Sandbox runner

Runs the agent against controlled tools and records observations, proposed actions, policy decisions, tool results, and side effects.

Truth

Outcome verifier

Reads authoritative environment state and classifies complete, partial, duplicate, missing, or unauthorized outcomes.

Decision

Evidence store

Joins scenario, agent, tool, evaluator, threshold, and release identities with scores and raw traces.

Cover the failure surface deliberately

  • Ambiguous tool outcomes: timeouts after a provider may have committed the action, delayed webhooks, and stale reads.
  • Changing environments: inventory disappears, permissions change, a page layout shifts, or another actor updates shared state.
  • Adversarial observations: retrieved pages contain prompt injection, misleading confirmation text, or poisoned tool output.
  • Long-horizon drift: the agent forgets constraints, repeats work, changes goals, or exhausts budgets late in the run.
  • Human boundaries: approvals arrive late, operators reject a step, or escalation is required before a high-impact action.

Instrument the evaluator for diagnosis

A useful score links every aggregate back to the exact trajectory steps that produced it. Preserve identities and raw evidence before adding dashboards.

Verify goal completion from explicit criteria

Store these fields for every run

  • Scenario, environment snapshot, agent, model, prompt, policy, tool, and evaluator versions
  • Ordered observations, candidate actions, selected actions, arguments, approvals, results, errors, and timestamps
  • External-state changes, idempotency identities, retry relationships, and compensating actions
  • Goal, policy, recovery, efficiency, latency, token, cost, and human-review results
  • Release assignment, user-impact cohort, incident link, and retention classification

Do not require or retain private chain-of-thought. Evaluate observable decisions, tool proposals, results, concise decision summaries, and environment state. Sensitive reasoning text is neither necessary nor a safe default telemetry contract.

Diagnose efficiency without rewarding shortcuts

Tool-call count is useful only when conditioned on task difficulty and verified outcome. An agent making one unauthorized call is not more efficient than an agent making three safe calls.

Score tool efficiency by result and behavior

Separate healthy efficiency from harmful compression

  • Reward correct first-choice tools, valid arguments, parallel independent work, result reuse, and evidence-based stopping.
  • Penalize repeated identical calls, ignored results, malformed arguments, avoidable sequential work, and retries without reconciliation.
  • Block the score entirely when the run violates permissions, creates an unreconciled side effect, or falsely claims completion.
  • Compare within scenario families so a difficult recovery task is not judged against a trivial straight-line task.

Treat safety as action control, not text moderation

Agent safety includes what the system attempted, authorized, executed, exposed, and recovered from. Test controls at the tool boundary and verify external effects.

Required adversarial categories

  • Permission escalation, cross-tenant access, secret retrieval, and approval bypass
  • Indirect prompt injection from web pages, documents, messages, and tool output
  • Resource exhaustion through loops, fan-out, expensive tools, storage growth, or denial-of-service behavior
  • Irreversible or high-impact actions without confirmation, preview, idempotency, or compensating operations
  • Error paths that leak data, silently widen scope, or convert uncertainty into unsafe retries

Gate on concrete safety evidence

  • Attempted and executed boundary-violation rates with conservative upper bounds
  • Unsafe-action prevention and correct human-escalation rates
  • Injection success by source, tool, permission, and attack family
  • Resource-limit adherence and graceful degradation under exhausted budgets
  • Recovery that leaves the environment in a known, reconciled state

Monitor production without grading on user patience

Online evaluation detects behavior that controlled scenarios miss, but production signals are confounded by task mix, changing tools, user intervention, and delayed outcomes. Join them to release and trajectory identity before acting.

Analyze multi-step trajectories

Watch three layers together

  • Outcome: verified completion, abandonment, corrections, duplicate effects, reversals, and delayed task results.
  • Trajectory: steps, backtracking, plan changes, tool errors, retries, approvals, escalations, and false-success gaps.
  • Operations: p50/p95 latency, queue time, tokens, tool spend, evaluator failures, trace loss, and policy-gateway health.

Use shadow traffic or a small canary, predeclare abort signals, retain a last known-good route, and sample full traces by risk. A stable fleet average must not hide a failing tenant, tool, language, or high-impact action class.

Operate an evaluation program, not a leaderboard

Public benchmarks can reveal broad capabilities, but production agents need tasks that match their tools, permissions, environment, and failure cost. Treat benchmark results as one input to a versioned evidence portfolio.

Before deployment

  1. Define observable success and prohibited outcomes for every representative task family.
  2. Build deterministic state checks and policy assertions before adding model-based judges.
  3. Test tool errors, changing requirements, adversarial observations, ambiguous side effects, and human approval paths.
  4. Calibrate any automated rubric against qualified human review and preserve disagreements.
  5. Set independent release thresholds for outcome, safety, recovery, efficiency, latency, and cost.

In production

  1. Monitor release- and cohort-specific trajectories with bounded retention and access controls.
  2. Pause or route around failing tools before widening autonomy or retry budgets.
  3. Review novel, high-impact, and evaluator-disagreement cases by risk rather than only random sampling.
  4. Convert validated incidents into a new scenario-set version while retaining an untouched release holdout.
  5. Recalibrate thresholds and evaluators when the agent, tools, users, or environment changes.
No quiz questions available
Could not load questions file
Spotted an issue or have a better explanation? This page is open source.Edit on GitHub·Suggest an improvement