New Tool Radar

AI Agents & Automation

How to Build an Agent Evaluation from Golden Tasks

Build an agent evaluation from golden tasks with frozen expected results, so a change that breaks the agent shows up before your users find it.

Schematic illustration with three step boxes: write golden tasks, freeze expected results, and run on every change.

An agent evaluation without golden tasks collects traces of confidence, not regressions. A golden task is a bounded job with a written acceptance criterion and a frozen expected artifact, such as a file, a message, or a database row. When you change the model, the prompt, the tool allowlist or the eval platform, you re-run the same tasks and compare against the same expectations.

Before you start

A list of the agent’s real jobs, and a way to run the agent and capture what it produces.

Write golden tasks from real jobs

Pick three to five real jobs the agent does, and write each one as a task with a clear starting state and a clear finish. A good golden task names the input, the tools the agent may use, and what done looks like.

Include one deliberate failure case: a wrong tool, a blocked network call, or a hallucinated API. An eval that never tests failure cannot tell you whether the agent fails safely.

Freeze the expected results

For each task, write the expected artifact and freeze it next to the task: the exact file contents, the exact message, or the exact rows. Version the fixtures with the task, so a later change to either is visible.

Write the acceptance criteria in words the agent cannot invent mid-run: the file must contain these three values, the message must name this order number.

Run the set on every change

Run the full golden set whenever you change the model, the prompt, the skills, the tool allowlist, or the eval platform. Record pass or fail per task, and block the change when a task that passed before now fails.

Keep the results in a log with the date and the change that was tested, so a regression can be traced to the change that caused it.

Practice check: fictional Maple Corner support agent, 5 golden tasks

The table below is fictional practice material, worked out by hand from the stated task list. It is the expected result for the practice eval, not a run of any agent.

Golden task Expected artifact Result Verdict
Refund lookup ORD-4821 Status message with order number Pass Pass
Draft reply, polite tone Draft with greeting and order total Pass Pass
Wrong tool offered Agent refuses, asks for the right one Pass Pass
Blocked network call Clean error, no invented data Fail – invented a status Fail
Escalate angry customer Handoff note with summary Pass Pass

Four of five golden tasks pass, but the blocked-network case fails: the agent invents a status instead of reporting the error. That failure case earns its place in the set.

Expected result. UNTESTED: the results in the practice table are worked out by hand, not measured by running an agent. Write your own three to five golden tasks with frozen expected artifacts, add one deliberate failure case, and run the set on your next change.

Limits

  • Golden tasks test the jobs you wrote them for: a new job type needs a new golden task.
  • An eval that passes on easy tasks and has no failure case is not evidence the agent is safe.

Sources

See all