Chapter 4. Evaluation and observability

Learning objectives

  • Design agent evaluations by distinguishing tasks, trials, graders, transcripts, and outcomes.
  • Mix outcome-based evaluation and trajectory evaluation according to goals, and combine code-based, model-based, and human graders.
  • Interpret pass@k and pass^k, as well as capability evaluations and regression evaluations, according to operational conditions.
  • Analyze agent failures step by step using traces and find the first incorrect judgment.
  • Make deployment decisions by grouping quality, safety, cost, and latency metrics.

Introduction

The day before deploying a new version, the team's evaluation dashboard was green. The response quality score had risen from 4.1 to 4.5, and the agent said "Processing has been Completed" with greater confidence. A week after deployment, complaints piled up in customer support saying, "You said it was Completed, but nothing was actually done." The evaluation had measured what the agent said, but did not measure what it did.

There are three reasons why agent evaluation is difficult: outcomes differ every time even for the same input, there are multiple correct paths to the same goal, and outcomes appear not as words but as state changes in the world. This chapter covers terminology, grading outcomes and trajectories, grader calibration, and the interpretation of repeated executions, and then organizes evaluation suite management, failure analysis using tracing, and deployment decisions based on metrics.

Key concepts

Basic evaluation terminology

Anthropic's "Demystifying evals for AI agents" uses the following terms:

Term Meaning
Task A single test with defined inputs and success criteria
Trial A single attempt at a task. It is run multiple times because outcomes differ each time
Grader Logic that scores one aspect of an agent's performance. Multiple graders can be assigned to a single task
Transcript The complete record of a trial (outputs, tool calls, reasoning, intermediate results). Also called a trace or trajectory
Outcome The final state of the environment when a trial ends. Example: Does the reservation actually exist in the database?
Evaluation harness Infrastructure that runs evaluations from start to finish
Agent harness The system that enables a model to act as an agent. Evaluating an agent means evaluating the harness and the model together
Evaluation suite A collection of tasks gathered to measure specific capabilities or behaviors

The most important distinction is between transcripts and outcomes. Even if the transcript contains the sentence "Completed the reservation", if there is no reservation row in the outcome, it is Failed.

Outcome-based evaluation

Outcome-based evaluation grades the final state produced by an agent. Anthropic states that grading outcomes is usually better than requiring a fixed sequence of steps. This is because enforcing an order penalizes even correct solutions that are more efficient or creative. Anthropic's article on research systems also recommends that for state-changing agents, one should focus on evaluating the final state rather than analyzing turn by turn.

Defining outcomes takes more effort than one might expect. You must write down both user-facing deliverables (answers, report files) and system states (ledger rows, configurations) separately as outcomes left in the environment after a trial, distinguish conditions that must be met from nice-to-have conditions, and decide how to count partial success, withheld judgment, and human handoff. Verifying that things that must not happen did not occur is also part of the outcome. The same article also recommends awarding partial credit. If an agent that completed three out of four steps and an agent that failed from the very beginning are both given the same score of 0 points, improvement cannot be seen. However, violations of mandatory conditions are treated as Failed, separately from partial credit.

Trajectory evaluation

Trajectory evaluation looks at the path the agent took, namely the sequence and arguments of tool calls. It is used when there are things that cannot be known from outcomes alone.

When trajectory checks are appropriate Reason
Mandatory and prohibited rules Looking at the outcome alone does not reveal whether 'Always confirm before payment' or 'Do not send externally without customer consent' was observed
Efficiency A version that calls tools 30 times for the same outcome is a matter of cost and latency
Dangerous attempts Even if the outcome is intact, you need to know if the agent attempted to use tools outside its permissions

Google ADK handles both axes together. tool_trajectory_avg_score checks the exact match of the tool call trajectory with a default threshold of 1.0, and response_match_score is the ROUGE-1 similarity against the reference response with a default threshold of 0.8. Because ROUGE-1 is a metric that measures how much two texts overlap in words, it can rate correct answers that merely differ in phrasing lower; in Korean, where postpositions and endings attach to words, this tendency can be even greater, so verify threshold values against samples before using them. ADK also provides criteria for checking semantic match via LLM judgment, criteria for checking response quality and tool use quality using custom rubrics, and criteria for checking ungrounded content (hallucination) and safety. Efficiency metrics such as token usage or tool call count are reported as values only and do not determine pass or fail.

Caution

If you apply exact trajectory matching to every task, a flood of failures saying "different path" will occur every time you change the model or prompt. Keep them separated by applying trajectory checks to tasks with mandatory or prohibited rules, and outcome checks to all tasks.

Three types of graders and their combination

Type Examples Strengths Weaknesses
Code-based String matching, unit tests, static analysis, state checks, tool call verification Fast, cheap, objective, and reproducible Marks correct answers with slightly different formatting as Failed
Model-based Rubric grading, natural language assertions, pairwise comparison, multi-judge consensus Flexible, scalable, and captures nuances Non-deterministic, expensive, and requires calibration against human standards
Human Expert review, sample spot-checks, A/B testing Ground truth for quality, used to calibrate model graders Expensive, slow, and difficult to scale

In practice, they are mixed. Whether data changed is checked with code, whether a report is useful is checked with a model using a rubric, and whether that model grader is trustworthy is checked with human samples. The center of gravity also differs for each agent type. According to Anthropic's evaluation article, coding agents are well suited to deterministic grading such as whether tests pass; research agents use rubrics evaluating groundedness, comprehensiveness, and source quality, calibrated against expert judgment; and agents that operate screens verify whether intended outcomes such as files, databases, or orders occurred in real or sandbox environments.

Making model graders trustworthy

Scores from model graders are also measurements that must be verified. Calibrate them using the following procedure:

  1. Divide dimensions into areas such as accuracy, groundedness, and tone, and write observable criteria and point-deduction examples for each dimension. If multiple dimensions are lumped into a single score, you cannot know what the problem is.
  2. Allow the grader to choose "Unknown" if there is no basis for judgment. Anthropic explains that this reduces grader hallucination.
  3. Create a sample directly graded by experts and measure agreement with the grader's judgments. Read discrepant examples and revise the rubric.
  4. Periodically draw new samples to see if agreement is maintained.

Also check for commonly known biases. These are tendencies to favor longer answers, prefer whichever option appears first during comparison, or grade answers from the same model family as the grading model more generously. If it is a pairwise comparison, grade twice by swapping the order, and verify through examples whether criteria are applied regardless of length. In Anthropic's research systems, grading by making a single call with a single prompt containing a rubric (factual accuracy, citation accuracy, completeness, source quality, tool efficiency) to produce both a 0.0–1.0 score and a pass/fail judgment was the most consistent and closest to human judgment. Note that even when grading in one pass, the items in the rubric were separated.

pass@k and pass^k

  • pass@k: The probability of succeeding at least once in k attempts. It is meaningful when a human can choose among multiple candidates or retry.
  • pass^k: The probability that all k trials succeed. It measures consistency under operational conditions where the agent must get it right in a single attempt every time.

Assuming the success rate per trial is p and trials are independent of each other, pass@k = 1 − (1 − p)^k, and pass^k = p^k. As an example from the same article, if the success rate is 75% per trial, the probability of succeeding all 3 times is 0.75³, or about 42%. As k increases, pass@k approaches 100% and pass^k drops to 0%. When the two diverge significantly, the agent is in a state of "knowing how to do it, but unable to be trusted." Because actual trials on the same task are often correlated with each other, use the formula as an interpretive guide and measure the actual value through repeated executions.

Capability evaluations and regression evaluations

Capability evaluations ask "What is this agent good at?" and should start from a low pass rate. Regression evaluations ask "Does it still do what used to work?" and must maintain an almost 100% pass rate. Tasks that stabilize at a high pass rate in capability evaluations are graduated to the regression suite and run continuously.

When a capability evaluation passes all solvable tasks, it reaches saturation. Improvements cannot be seen with a saturated suite, creating an illusion where the score remains the same even though performance has actually improved. When saturated, create new and more difficult tasks to update the capability suite, and move existing tasks to the regression suite to monitor for regressions. Judgments in the regression suite must also account for stochastic fluctuations. Rather than raising an alarm immediately upon a single failure, judge based on repeated executions and the severity of the failure.

Building evaluation suites

There is no need to collect hundreds of cases from the beginning. Anthropic notes that 20 to 50 tasks extracted from real failures are enough to get started, and its research systems also began with about 20 queries representing actual usage patterns. Early on, the effect of changes is large, so differences are visible even with a small suite. However, when determining deployment based on small differences, increase tasks and trials (Going deeper). The conditions of a good task are as follows:

  1. Unambiguous: Two experts in the relevant field can make the same pass/fail judgment.
  2. Has a reference solution: There is a solution confirmed to pass all graders, showing that the task and the grader themselves are valid.
  3. Balanced: Include both cases where an action should happen and cases where it should not happen. Otherwise, one-sided optimization, such as searching for anything and everything, occurs.
  4. Comes from real operations: Turn user reports and operational failures into tasks to keep the suite anchored in reality.

The same article states that for tasks with a 0% pass rate even after multiple trials, one should suspect defects in the task or grader before suspecting agent incompetence. Because modifying prompts and tools to fit an evaluation suite can lead to overfitting to that suite alone, separate development and validation suites, and use the validation suite only when making decisions.

Isolation and reproducibility of evaluation environments

Each trial must start in a clean environment. If files, data, and records left by a previous trial make the next trial easier, scores are inflated. Anthropic cites as a warning an example where an agent found answers by reading the Git history of a previous trial. Conversely, if a trial fails because shared resources are lacking, scores will be artificially low.

To achieve reproducibility, trial conditions must be recorded. Record the model and version, versions of prompt and tool definitions, external inputs such as timestamps and search results, and whether mock tools or real connections were used. Evaluation with mock tools is fast and safe, but because it cannot reflect the latency, errors, and data changes of actual APIs, check once more in an environment close to reality before deployment.

Tracing

A trace represents a single workflow from start to finish and is made up of spans, which are units of work with start and end times. Spans are connected in parent-child relationships, forming a tree shape where model generations and tool calls hang beneath the agent run.

The OpenAI Agents SDK has tracing enabled by default and records agent runs, LLM generations, function tool calls, guardrails, and handoffs each as spans.

Setting Effect
OPENAI_AGENTS_DISABLE_TRACING=1, set_tracing_disabled(True) Disable globally
RunConfig.tracing_disabled Disable for a single run
Wrapping with trace() Group multiple runs into a single trace
group_id Link multiple traces from the same conversation
trace_include_sensitive_data Whether to collect potentially sensitive data such as LLM and tool inputs and outputs. Default is True
add_trace_processor() / set_trace_processors() Add processor to default exporter / Replace default processor

The documentation states that this tracing cannot be used in organizations that use the OpenAI API under a zero data retention (ZDR) policy. If handling sensitive data, configure processors to retain the structure while omitting or masking inputs and outputs before export.

MCP reserves the traceparent, tracestate, and baggage keys in the request's _meta for passing OpenTelemetry trace context, with traceparent and tracestate following the W3C Trace Context format and baggage following the W3C Baggage format. Using these, you can link the agent and the MCP server into a single distributed trace.

Deciding what to record starts from the questions you want to answer. If you record identifiers for tasks, runs, steps, and tool calls; links between parallel branches and handoffs; retries and approval waits; and versions of models, prompts, tools, and policies, you can answer, "When, in which version, and at which step did this failure begin?" Anthropic writes that while attaching full tracing to production environments, it observed the agent's decision patterns and interaction structures rather than individual conversation content. Also establish the collection scope and retention period for observability data.

Analyzing failures step by step

Agent failures usually surface in the final step, but begin earlier than that. An initial judgment that misinterprets a date surfaces three steps later as a completely wrong reservation, for instance. If you fix only the final symptom, the cause remains and recurs in a different form. Perform analysis in the following order:

  1. Collect failure transcripts and classify them by outcome (what went wrong).
  2. Read each transcript from the beginning to find the first incorrect judgment.
  3. Classify that judgment into a step: goal interpretation, planning, search/tool selection, argument generation, tool result interpretation, verification, response.
  4. Hypothesize the cause as one of: model, prompt, tool design, external environment, or policy.
  5. Change only one element at a time, rerun on the same task, and verify whether the hypothesis is correct.
Step of first error Common cause Where to look first
Tool selection Similar names and descriptions Tool definitions (Chapter 2)
Argument generation Parameters with ambiguous units or formats Schema and poka-yoke (Chapter 2)
Result interpretation No truncation notice, ignored errors Result format and isError handling
Planning Failure to judge effort scale Delegation instructions, stopping conditions
Verification Declaring completion without verification Completion criteria, outcome checks

Evaluating metrics to make deployment decisions

Determining deployment by a single average score masks critical regressions. Construct the deployment decision table with the following tiers:

Tier Example Decision
Must pass 0 prohibited actions, compliance with mandatory approval steps, at or above regression suite criteria Do not deploy if even one is violated
Comparative metrics Outcome-based success rate, pass^k, success rate by task type Improved or equivalent compared to existing version
Operational constraints Cost per successful task, latency to first response, number of tool calls Within contract and budget ranges
Judgment withheld Sample is too small, difference is within margin of fluctuation Increase trials and remeasure

Automated evaluation is merely one layer of defense. Anthropic likens this to the Swiss cheese model. Automated evaluations give false confidence if misaligned with actual use, production monitoring alerts you only after an incident occurs, user feedback is rare and biased, and human transcript review takes a lot of time. Because no single layer is perfect, overlap multiple layers so that they fill each other's gaps.

Standard attributes for generative AI traces

For observability tools to interpret traces with the same meaning, attribute names and definitions must be identical. That standard is OpenTelemetry's GenAI semantic conventions. As of 2026-11-01, these conventions have left the main repository and are maintained in open-telemetry/semantic-conventions-genai. Because the old opentelemetry.io page retains only a move notice, check the definitions in the new repository.

There are three rules directly tied to evaluation and cost:

Attribute Rule If missed
gen_ai.usage.input_tokens Contains all input tokens, including cached tokens (SHOULD) Cached tokens are added again in aggregation, double-counting costs
gen_ai.input.messages, gen_ai.output.messages, gen_ai.system_instructions Opt-in because they easily contain personal information When enabled, raw conversation text and system instructions go to the collector
gen_ai.agent.id Uses a stable identifier. In-memory instance IDs are not recommended Aggregated as a different agent on every restart

If you enable content attributes, mask them before exporting. The Langfuse Python SDK recommends mask_otel_spans when configuring new masking. The legacy mask parameter handles only data passed through the Langfuse SDK API, so spans created by other instrumentation libraries are not masked.

The Birch Logistics team put a new UUID into gen_ai.agent.id every time the dispatch agent launched. On the dashboard intended to compare before and after deployment, dozens of "Different agents" accumulated. Only after fixing the identifier to dispatch-agent were they able to view success rates and token costs across versions side by side.

Traces in the Claude Agent SDK are sent by the CLI

The Claude Agent SDK does not generate telemetry directly. The Claude Code CLI, spawned by the SDK as a child process, exports it to the collector. Configuration is also applied via CLI environment variables. As of 2026-11-01, the conditions required by the documentation are three:

  1. Tracing is in beta and disabled by default. Turn on both CLAUDE_CODE_ENABLE_TELEMETRY=1 and CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1, and specify OTEL_TRACES_EXPORTER.
  2. There is no default OTLP protocol. For each enabled otlp exporter, define OTEL_EXPORTER_OTLP_PROTOCOL (grpc, http/json, http/protobuf) or signal-specific protocol variables.
  3. Do not use the console exporter when running with the SDK. This is because the SDK uses standard output as its message channel.

The SDK injects TRACEPARENT and TRACESTATE into the child process environment to pass the W3C trace context. Because the agent execution sits inside the application's trace, everything from the user request to tool calls is read as a single tree. This operates on the same principle as the trace context in MCP's _meta.

The settlement team at Zelkova Trading enabled only CLAUDE_CODE_ENABLE_TELEMETRY=1 and waited, but no traces arrived at the collector. The beta variable, trace exporter specification, and protocol were all missing. When they set console to view it on screen, this time the telemetry output mixed into the SDK's message channel. The team fixed the necessary variables in their deployment template.

When evaluation harnesses and models change

Tasks, reference solutions, graders, and past results must outlive any specific service. On 2026-06-03, OpenAI announced the deprecation of the Evals platform (dashboard and API). Existing evaluations became read-only as of 2026-10-31, and the platform is scheduled to shut down on 2026-11-30. The recommended migration paths are Datasets and Promptfoo. If graders ran inside it, exporting only the data is not enough. Migrate the grading logic as well to verify that it matches past judgments on the same tasks.

Inspect uses an agent bridge to run agents from other frameworks or CLI agents inside a sandbox within evaluations. As of 2026-11-01, the latest version, v0.3.287 (2026-10-31), blocks writable host mounts in Docker sandboxes by default. This aligns with the principle of providing a clean environment for each trial.

Anthropic recommends integrating automated evaluations into CI/CD and running them whenever the agent is modified or the model is upgraded. When upgrading models, unspecified default values often change as well. A request that omitted effort ran as high on Claude Opus 5, but runs as medium on Claude Opus 5.5. Thinking is adaptive, so the model determines whether to think and how much to think based on effort, and there is no thinking token budget. Manual extended thinking using budget_tokens was deprecated in Opus 4.6 and Sonnet 4.6, and subsequent models do not accept it.

If Birchwood Labs saw its regression suite pass rate drop after moving to Opus 5.5 without specifying effort, remeasure with effort fixed to high before blaming the model. Record effort as a trial condition, just like the model version.

Going deeper

What to suspect first when scores move

When scores drop or rise suddenly, suspect the measurement before the agent. If a score dropped, look at whether a rigid grader marked an alternative correct answer as Failed, or whether the external environment (API responses, search results) changed. If a score rose suspiciously, check whether traces leaked between runs, or whether the evaluation set was exposed during training or prompt editing. If a score did not change, suspect saturation. Regardless of which way the score moved, read the transcripts directly. Anthropic emphasizes that reading transcripts and scoring across many runs is the way to verify that graders work properly and failures are judged fairly. People who tested research systems found that early agents tended to pick content farms at the top of search results over authoritative sources; such problems do not show up well through automated grading alone.

Consider sample size as well. A difference of 4 percentage points across 25 tasks may be the chance result of a single task. Run the same tasks multiple times, use the same task set across versions, and confirm that the difference is larger than the run-to-run variation before drawing conclusions.

Evaluating conversational agents

Agents that work over multiple turns, such as customer support agents, suffer many failures that single-turn evaluations cannot catch. Examples include cases where a user changes a request midway through or contradicts an earlier statement later on. Anthropic views the success of such agents as multidimensional—combining state checks, turn limits, and rubric scoring for tone and quality—and introduces methods where another LLM simulates the user. Google ADK also provides user simulation and multi-turn evaluation criteria where AI models generate user utterances dynamically to test conversation scenarios; since conversations differ every time, ADK notes that simulations do not support exact matching against reference trajectories or comparing against reference responses, but do support criteria such as multi-turn task success and trajectory quality. You must also measure the quality of simulated users. If a simulator is too cooperative, the test becomes easier than reality.

Building regression cases from production

When an evaluation set remains static, it drifts further and further from actual production use. Regularly extract cases from production where failures, human handoffs, or rework occurred, remove personal information, reconstruct them, attach reference solutions and graders, and add them to the regression set. At this point, distinguish between shifts in input distribution (increases in new types of requests) and performance degradations (increases in failures on the same types of requests). The former is a signal to expand the capability set; the latter is a signal to fix regressions.

At work

Maple Rental: The agent that said 'Completed'

The cancellation consultation agent at the home appliance rental company 'Maple Rental' handles cancellation requests and schedules technician visits for product returns. In the new version, response quality evaluated by an LLM grader rose from 4.1 to 4.5 out of 5 points. However, during a pre-deployment sample audit, checking 200 consultation logs against the reservation ledger revealed that in 6% of conversations where the agent said "Return visit reservation is completed," no actual reservation existed, and in 2% of conversations, two reservations were scheduled for the same date.

Reading the traces from the beginning revealed the initial incorrect judgment. In cases with missing reservations, the reservation tool rejected relative dates such as "next Tuesday" and returned a tool execution error (isError, Chapter 2), but the agent ignored this and declared completion. In duplicate cases, the reservation tool timed out, after which the agent resent the same request.

The team's first proposed alternative was to add "penalize unsubstantiated completion declarations" to the grading prompt, but they rejected it. Graders still look only at the conversation and cannot measure state. Instead, they built an outcome grader in code. It verified in the ledger whether a reservation existed, whether the date matched the date requested by the customer, and whether there were no duplicates; any completion declaration inconsistent with state was treated as a critical failure regardless of other scores. Tone continued to be monitored using the existing model grader, but kept separate from outcome grading. The reservation tool was modified to accept dates only in ISO format, and the error message was updated so that the agent queries reservations first after a timeout. Thirty reconstructed failure cases were added to the regression set.

The next version was deployed with a response quality score of 4.4 and an outcome-based success rate of 99%. The team wrote measuring "completion declarations" and "ledger state" separately as the very first line of their evaluation principles.

Ash Tree Research: Well-written reports and weak grounding

At the industrial research firm 'Ash Tree Research', a new version of the reporting agent produced longer outputs with smoother sentences, significantly raising scores from the model grader. However, when two In-house researchers read a sample of 20 reports, sentences where cited sources did not support claims were more numerous than in the older version.

The team abandoned relying on a single score and split evaluation across dimensions: claim-level groundedness (whether the relevant portion of the cited source supports that claim for each sentence), comprehensiveness, source quality, and sentence quality. For the groundedness grader, they added an option to select "unable to judge due to insufficient evidence." Next, they expanded the sample to 40 reports, which the two researchers graded directly to measure agreement with the grader; for groundedness criteria where agreement was low, they revised the rubric twice by adding penalized examples.

The deployment rubric was structured into must-pass conditions (unsupported claim rate of 2% or less, 0 forbidden source citations), comparative metrics (per-task success rate, pass^3), and operational constraints (cost per report no more than 1.3 times the older version). Although the new version led in sentence quality, it failed to deploy because it was caught by the groundedness check. In the root-cause analysis, the first step that went wrong was 'Proceeding to the writing phase without cross-checking source summaries against claims'. The subsequent version, which added a phase pairing claims with supporting sentences before writing, passed all tiers.

The rejected alternative was "deploy if the average score across the four dimensions is higher than before." Averaging allows major improvements in sentence quality to conceal degradations in groundedness.

Common mistakes

  1. "The agent said it was completed, so it must be a success." Looking only at the conversation makes it seem certain, but transcripts record the process, while outcomes record the state after completion. For state-changing agents, inspect the outcomes.
  2. "Evaluation scores dropped, so the new model must be worse." Clear numbers tempt quick conclusions, but a rigid grader may have marked an alternative valid path as a failure. Never draw conclusions before reading the transcripts.
  3. "A high pass@k is sufficient for production." High numbers look reassuring, but in production settings without retries or candidate selection, pass^k is closer to actual user experience.
  4. "An evaluation set is meaningful only if it contains hundreds of cases or more." Larger sets seem more reliable, which leads to postponing evaluation, but 20 to 50 real failure cases are enough to reveal significant shifts early on. Check for representativeness, balance, and lack of ambiguity first.
  5. "Model grader scores are objective numbers." Automatic outputs appear objective, but graders are measurement instruments that also require calibration. Validate them through agreement with human samples.
  6. "Multiple metrics can simply be averaged into a single number." Averaging makes reporting convenient, but it conceals critical regressions. Keep must-pass conditions separate from averages.
  7. "Tracing cannot be used when sensitive information is present." It may seem risky enough to turn off entirely, but you can retain the structure while disabling or masking input and output collection before exporting.
  8. "A task with a 0% pass rate is work the agent cannot do." This is the easiest interpretation, but check first whether the task or grader itself is broken. Verify using reference solutions.

Summary at a glance

  • Transcripts record the process; outcomes record the state after completion. Grade state-changing agents by outcomes.
  • Reserve trajectory checks for required or forbidden rules and efficiency. Do not apply exact matching to every task.
  • Code checks state, models check nuance, and humans provide reference points for model graders.
  • Model graders: separate dimensions, provide an 'unable to judge' option, and verify agreement against expert samples.
  • pass@k requires passing at least once; pass^k requires passing every time. The independence-assumption formula is only a guide.
  • Capability sets start low; regression sets aim for nearly 100%. Graduate items when stable, and renew them when saturated.
  • Evaluation sets require 20 to 50 real failure cases, reference solutions, balance, and separation between development and test sets.
  • Ensure a clean environment for every run, and record conditions and versions.
  • For failure analysis, identify the first incorrect judgment and change only one factor at a time.
  • Structure deployment into tiers: must-pass → comparative metrics → operational constraints → withhold judgment.

Check the official docs

Self-check

4-1. Using an agent that makes reservations on behalf of a user as an example, explain what the transcript and the outcome record, respectively.

4-2. Provide one case where trajectory inspection should be applied and one case where it should not, and state the reasons for that judgment.

4-3. Assume that the success rate per trial is 0.9 and that the trials are independent of each other. Calculate pass@3 and pass^3, and explain what the difference between the two values indicates.

4-4. Write the three-step procedure for calibrating a model grader against human judgment.

4-5. Explain the relationship between traces and spans, and give at least three types of spans that can occur in a single agent run.

4-6. Why is it necessary to distinguish between the first faulty decision and the observed symptom in a Failed transcript?

4-7. Design a deployment decision table for a new version of an agent in production. Be sure to include at least one pass condition, comparison metric, operational constraint, and decision-deferral condition each.

Hands-on tasks

Exercise

A small evaluation set starting from actual failures (60 minutes)

  1. Select 15 Failed cases and 10 normal cases from production logs. Include at least 5 cases where no action should take place.
  2. For each task, write outcome criteria (the final state or key elements of the answer) so that they can be checked with code, and attach trajectory inspection only to tasks with mandatory or prohibited rules.
  3. Create one reference solution for each task and verify whether it passes the grader.
  4. Run 3 trials for each task to calculate pass@3 and pass^3, and read the transcripts of 5 Failed trials to verify whether the grader's judgment was correct.

Done when: There is a reference solution for every task, there are sentences interpreting the two metrics in light of operational conditions (whether retries are possible), and if any grader misjudgment was found, its correction has also been incorporated: Completed.

Exercise

Failure Stage Analysis Table (45 minutes)

  1. Select 10 recent Failed traces.
  2. Read each trace from the beginning and mark the span where the first faulty decision occurred.
  3. In the table, record the failure number, the observed symptom, the first faulty stage (goal interpretation, planning, tool selection, arguments, result interpretation, verification, response), the hypothesized cause, and one element to change.
  4. Select the single most frequent stage, change only that element, and rerun the same 10 cases.

Done when: In every row of the table, the symptom and the first faulty stage are recorded separately, and the rerun results after changing only one element (how many cases were fixed) are recorded: Completed.