Skip to content
Duoduo Mediaevidence to decision

Package 38 · Section 11.9

Agent Evaluation and Operations

Decide whether an agentic system is ready for release and keep it safe in production with traces, budgets, kill switches and incident replay.

Track
I · Agentic decision systems
Level
Advanced
Version
v1.0
Status
In validation · catalog only
Explanation depthDepth

Learning objectives

  • Evaluate plan, tool, evidence, reasoning, decision, execution and system levels separately.
  • Run failure-injection tests and gate releases on critical safety, access and approval results.
  • Operate with traces, version manifests, budgets, circuit breakers, canaries and kill switches.

In brief

Agentic systems fail in more places than single-prompt systems, so they are evaluated level by level: plan, tool, evidence, reasoning, decision, execution and system. Releases are gated on failure-injection results and hard constraints, and production runs with traces, version manifests, budgets, circuit breakers, canaries and kill switches.

Core concepts

38.1Evaluation levels

Plan: validity, coverage and policy violations. Tool: selection, arguments, confirmation and unauthorized calls. Evidence: recall, authority, citations and freshness. Reasoning: assumptions, consistency and calculation accuracy. Decision: constraint compliance, utility, regret and robustness. Execution: idempotency, approval correctness and rollback. System: completion, latency, cost, recovery and business outcome.

38.2Failure injection

Inject malformed tool output, repeated failed steps, instructions in documents, stale approvals, timeouts after commit, out-of-contract actions, unidentified causal models and mid-case budget exhaustion. Each has a defined expected behavior.

38.3Optimize the whole process

The objective is expected decision utility minus retrieval, model, tool, delay, review and failure costs, subject to hard constraints: evidence quality by risk, zero unauthorized actions, approval for all high-impact actions, latency and tail-loss limits.

38.4Production operations

Record trace, versions, evidence, tool, decision, approval and outcome fields for every run. Use per-case budgets, circuit breakers, checkpoints around side effects, replay, shadow and canary comparison, kill switches and incident severity tied to decision impact.

Worked example

Blocking a release that looks better

Situation: A new model raises task completion from 81 to 87 percent on the agent benchmark.

  1. 1Tool-level evaluation shows two unauthorized calls in 600 runs.
  2. 2The hard constraint unauthorized_action_rate == 0 fails.
  3. 3Incident replay traces both calls to a plan that escalated authority after a tool error.
  4. 4A plan validation rule is added and the benchmark is rerun.

Outcome: The release is blocked until the constraint passes; the gain in completion does not offset a safety violation.

Decision rules

  • Measure each level separately; one end-to-end score hides failures.
  • No run is promoted when critical safety, access or approval tests fail.
  • Replay incidents with pinned versions before fixing.
  • Tie incident severity to decision impact, not only availability.

Common pitfalls

  • Optimizing model-call cost instead of decision value.
  • Skipping replay when changing prompts or models.
  • Treating availability as the only incident signal.

Key vocabulary

Failure injection
Deliberately introducing a fault to test the expected system response.
Canary
Routing a small share of traffic to a new version and comparing results.
Kill switch
A control that immediately stops agent execution for a tenant or feature.

Tutorial outline

  1. 38.1Seven evaluation levels and their metrics.
  2. 38.2Agent-specific failure injections and expected behavior.
  3. 38.3Optimizing the whole decision process: decision value minus retrieval, model, tool, delay, review and risk costs.

Required artifacts

Agent benchmark, incident replay and rollout gate.

Evaluation evidence

Per-level metrics, failure-injection pass rate, replay fidelity, cost per decision and incident severity tied to decision impact.