Skip to content

Agent Evals & Observability

20 questions
0 of 20 done · 5 unlocked for you
DONEUNLOCKEDLOCKED

Agent Evaluation & Observability Interview Questions

Proving an agent works when it behaves differently on every run. Outcome and trajectory grading, pass@k against pass^k, judges calibrated to people, traces that explain a single bad run, and regressions that appear three times in a hundred.

Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.

You have 5 free answers unlocked here.Sign in free for 1 more · 14 are premium.
01–08Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/8 done
09–15Core questionsthe questions this topic is most often tested on, with full worked answers0/7 done
16–20Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/5 done
PRACTICE TESTStudied this track? Prove it: a timed Agent Evals & Observability test.fresh items every sitting · explanations for every answer · easy items free with an accountStart →

The concepts behind Agent Evals & Observability

Lessons behind these answers. The opening lessons are free; deeper ones are Premium.

Foundational
pass@k and pass^kAgents give different results on the same task from run to run, so a single success rate hides what matters. pass@k, from code-generation benchmarks (Chen et al., 2021), is the probability that at least one of k attempts succeeds, which is the right number when a verifier can pick the good attempt. pass^k, used in agent benchmarks such as τ-bench (Yao et al., 2024), is the probability that all k attempts succeed, which is the right number when every run reaches a user. They move in opposite directions as k grows, and both have unbiased estimators from n runs per task.
Foundational
Outcome and Trajectory GradingOutcome grading checks the world after the run (database rows, files, test results, the message sent) and is robust to the many valid paths an agent can take. Trajectory grading checks the path itself: forbidden actions, required confirmations, order constraints, cost and step counts. Matching a run step by step against a reference trajectory is brittle and penalises valid alternatives, so trajectory checks should be stated as invariants. Code graders handle most of both; model-based graders cover qualities code cannot check, such as whether a reply was clear, and need calibration.
Core
Sign in
Calibrating an LLM JudgeModel-based graders scale evaluation to qualities code cannot check, but they have known biases: preferring longer answers, the first option in a pair, and outputs from their own model family (Zheng et al., 2023). Calibrating a judge means building a human-labelled set, measuring the judge's agreement with people beyond chance (for example with Cohen's kappa), looking at which errors it makes (false passes are usually the costly ones), tightening the rubric into specific, checkable criteria, and re-running the calibration when the judge model, rubric or task distribution changes.
Advanced
🔒 Premium
Tracing AgentsA trace records an agent run as a tree of spans: the run, each turn, each model call and each tool call, with timings, token counts, cache reads, costs, model and prompt versions, and which part of the system made each decision. Good tracing answers operational questions (where did the latency go, what does a task cost) and debugging questions (why did it do that), and it feeds evaluation: failed production traces become regression cases. Standard conventions such as OpenTelemetry's generative-AI attributes (still evolving in 2026) let traces flow into existing tools, and redaction and sampling keep them safe and affordable.
Advanced
🔒 Premium
Regressions in a Non-Deterministic SystemAgent evals are noisy: sampling, tool timing and model serving all vary, and even temperature zero does not guarantee identical outputs. Detecting a regression means separating the change from the noise: record tool responses so the environment is fixed, run each task several times, compare old and new versions on the same tasks as pairs, put an interval on the difference, and size the eval for the smallest drop worth catching. Gates should look at slices and guard metrics, not only the overall rate, and a confirmed regression is triaged by bisecting what changed.
Advanced
🔒 Premium
OpenTelemetry for AgentsOpenTelemetry's GenAI semantic conventions, now maintained in their own repository and still in Development status, define how to trace agents: create_agent and invoke_agent spans (named for the operation and the agent), model-call and tool-execution spans beneath them, and attributes such as gen_ai.operation.name, gen_ai.provider.name, gen_ai.agent.name, gen_ai.request.model, gen_ai.conversation.id and token usage. Message content, system instructions and tool definitions are opt-in because they may hold sensitive data. Because names can still change, teams map their own stable trace schema onto the conventions at export.
Foundational
Reading Agent BenchmarksAgent benchmarks measure different things: SWE-bench Verified (500 human-validated GitHub issues, 2024) tests repository bug fixing; OSWorld (369 tasks across real desktop and web applications, with a 2.0 released in 2026) tests computer use; tau-bench (2024) tests tool use with a simulated user and grades the database end state, and introduced pass^k; METR's time horizon expresses capability as the length of task, in expert human time, an agent completes at a given reliability. Scores depend on the harness, the budget and the trials, carry sampling noise, and saturate. A decision about your agent needs a paired comparison on your own tasks.
Advanced
🔒 Premium
Evaluating Agents in Production: Signals, Sampled Grading and DriftProduction evaluation layers signals by cost and delay: deterministic checks on every run (exit reasons, invariants, errors, cost), implicit user signals (retries, escalations, undo), sparse explicit feedback, sampled grading by a calibrated judge and by people, and lagging business outcomes. Sample by stratum so rare, risky and new traffic is graded. Tag every run with its agent and model versions, watch the input mix and exit reasons against a baseline, and turn graded failures into offline eval cases.
Advanced
🔒 Premium
Golden Tasks and Dataset LintBefore an eval can say anything about an agent, its tasks have to be right, and nothing checks that by default. A golden task carries an input, a checker, a reference answer the checker must accept, and known-bad answers the checker must reject; running the checker against its own references is the cheapest test an eval set has and the one most teams skip. Dataset lint extends that: duplicate and near-duplicate tasks across dev and test sets (which measure memory, not skill), tasks whose checker can never fail, tasks whose reference contradicts their input, tag coverage so every slice the release gate reads has enough items, and provenance so each task says where it came from. Production failures feed the set through the same lint, so a task added in a hurry cannot poison the gate without being noticed. The procedure runs in CI on every change to the dataset, in seconds, with no model.
Advanced
🔒 Premium
Tool-Call Accuracy, DecomposedA single tool-call accuracy number is almost useless for deciding what to fix, because four different failures feed it. Selection errors (the wrong tool, or a tool when none fits) come from overlapping names and descriptions and are fixed in the contract. Schema failures (missing or extra fields, wrong types) come from the schema's shape and the model's reliability at structured output. Value errors (the right field, the wrong content) come from messy inputs and missing normalisation. Each is measured on its own, from a labelled set that includes requests whose correct answer is no tool call at all, with values compared after normalisation so a case or whitespace difference is not a miss. The decomposed scores point at the owner of the fix, and the same set run several times per request turns a flaky failure into a rate.
Advanced
🔒 Premium
Replay Cassettes: Recorded Model Calls for Deterministic Agent TestsA scripted fake model returns replies you invented. A replay cassette returns replies a real model actually gave, recorded once and keyed by a fingerprint of the request: the model, the rendered messages, the tools and the sampling settings, with volatile fields removed. In replay mode a test runs the whole agent loop against the recording, deterministic, offline and in milliseconds, and exercises the harness on the real shapes a provider produces, including the odd ones nobody would think to script. The fingerprint is what makes the technique honest: any change to a prompt, a tool description or a setting changes the key, and in strict mode a miss fails the test instead of calling the provider with no alert. That is the right default, because a silent re-record hides exactly the change the test should make you look at. Cassettes test harness behaviour against real replies; they cannot detect that the model itself has changed, which remains the job of probes and evals run live on a schedule.

FROM THE BLOG

Unlock all 20 answers · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal