AI agent evaluation framework: how to design evals that hold up
An AI agent evaluation framework is the system that tells you whether your agent is getting better or worse. Here is how to design one: what to measure, how to score it, and how often to run it.

In this article
Short answer
An AI agent evaluation framework is a repeatable system for judging agent quality: a fixed dataset of real tasks, a written scoring rubric for what counts as a pass, automated checks where answers are exact, human or model grading where judgement is needed, and a regular schedule that reruns the same tests after every change.
Key takeaways
- A framework is not a pile of tests. It is four parts that work together: a dataset, a rubric, a way of scoring, and a schedule for running it.
- Golden datasets come from real work, not invented examples. Start with 20 to 50 real tasks, including the failures, and grow the set from production every week.
- Score in layers: exact checks for facts and tool calls, rubric grading for quality, and human review for the small share of cases where judgement is genuinely hard.
- Offline evals run before a change goes live. Online evals watch real traffic after it does. You need both, because each catches failures the other cannot see.
- The cadence is the framework. A suite that runs on every model or prompt change, and is reviewed monthly, keeps its value. A suite built once and forgotten does not.
Most teams judge their AI agent the way they judge a new hire in week one. They watch a few interactions, form an impression, and move on.
That works until the first change lands. A new model version arrives, a prompt gets edited, a connected system changes its format. Now nobody can say whether the agent got better or worse. There is no baseline, and there is no agreed test.
An evaluation framework fixes that. It is the standing system that answers one question at any moment: is this agent doing the job, at the level we agreed?
This piece covers the framework itself: how to design it, what goes in it, and how to run it. The hands-on side, meaning test data, test cases, and failure modes, lives in our companion playbook on AI agent testing and evaluation.
The four parts of the framework
A framework is four parts. Leave one out and the rest wobble.
- The dataset. A fixed set of tasks the agent must handle, with the correct outcome recorded for each one.
- The rubric. A written definition of what counts as a pass, a partial pass, and a fail.
- The scoring. The method that applies the rubric: automated checks, model grading, human review, or a mix.
- The cadence. The schedule and triggers that decide when the tests run and who reads the results.
Think of it as an exam system for the agent. The dataset is the exam paper. The rubric is the marking scheme. Scoring is the marking. The cadence is the exam timetable. A school with only an exam paper and no marking scheme cannot tell you who passed.
Step 1: Design the eval around decisions
Start from the decisions the framework must support. Most teams have three:
Can this change go live?
Is the agent better or worse than last month?
Where is it failing, so we know what to fix next?
Each decision needs a different cut of the same results. The go-live decision needs a clear pass mark. The trend decision needs scores stored over time, in the same format. The fixing decision needs failures grouped by type, not one long list.
Designing backwards from decisions stops the common failure: a dashboard full of numbers that nobody uses to decide anything.
Step 2: Create the golden dataset
The dataset is called golden when its answers are treated as the reference standard. People who know the work have checked each outcome, and the set changes only through deliberate review.
Where the tasks come from matters more than how many there are. Anthropic's guidance on evaluating AI agents makes the same point we make to clients: start with real tasks, including real failures, rather than polished invented examples.
A practical way to assemble the first version:
Take 20 to 50 real requests from logs, tickets, or transcripts.
Cover the routine work first. It is most of the volume, so it is most of the risk.
Add the known hard cases: missing records, ambiguous requests, and requests the agent should hand to a human.
Record the correct outcome for each task before the agent ever runs it.
Remove or replace personal data, keeping the shape of the request intact.
Then grow it on a rule, not on enthusiasm. Every production failure that teaches you something new becomes a task. Tasks that stop matching real use get retired at the monthly review. A dataset that only grows becomes slow and stale. A dataset that is pruned stays honest.
Step 3: Write scoring rubrics people can apply the same way
A rubric turns "that answer looks fine" into a judgement two people would make the same way. For each task type, write down:
Pass. The outcome is right and complete. Nothing needs fixing.
Partial. The outcome is usable but something is missing, clumsy, or one step short.
Fail. The outcome is wrong, incomplete in a way that matters, or unsafe.
Add one line per grade with a real example. Examples do more work than definitions. "Partial: found the right order, quoted the old delivery date" teaches a scorer more than a paragraph of principles.
Two rubric rules save pain later. First, score the outcome and the path separately when the agent acts on real systems: a right answer reached by touching the wrong record is a fail, not a pass. Second, decide in advance which failures are blockers. A wrong price and a slightly stiff tone should never carry the same weight.
Step 4: Match the scoring method to the task
Not every task needs the same kind of marking. Use the cheapest method that is still trustworthy for that task.
| Task type | Scoring method | Why |
|---|---|---|
| Facts, figures, record lookups | Automated exact checks | The answer is right or wrong. No judgement is needed. |
| Tool use and record changes | Automated checks on the final state | What matters is what changed, not how the reply reads. |
| Drafts, summaries, replies to customers | Rubric grading, by a model or a person | Quality has degrees, and the rubric defines them. |
| Sensitive or high-cost decisions | Human review | The cost of a wrong pass is too high to automate. |
Model grading, often called LLM-as-judge, earns its place in the third row. It is fast enough to score every run. It is only trustworthy when it applies your written rubric and when you spot-check its marks against human marks regularly. If the model grader and your reviewers disagree often, the rubric is unclear. Fix the rubric first.
Step 5: Run offline and online evals for different jobs
Offline and online evals are not rivals. They answer different questions.
Offline evals run the agent against the golden dataset in a test setting. Nothing touches real users. This is the gate before a change goes live: same tasks, same rubric, new version. If scores drop, the change waits.
Online evals watch the live agent. They use signals from real traffic: how many tasks finish without a human taking over, how often users correct or repeat themselves, and sampled human review of real conversations. The LangChain State of AI Agents survey found 89% of teams running agents have observability, while only 52% have evaluation. Watching live traffic is the observability half. Scoring it against a standard is the evaluation half.
Offline evals cannot see real user behaviour. Online evals cannot rerun the same task twice. A framework needs both, with the results read side by side.
Step 6: Set the cadence, then protect it
Frameworks decay quietly. The dataset ages, the rubric drifts from the product, and runs get skipped when the team is busy. A written cadence is the defence.
Whenever a change could alter behaviour: the full offline suite runs. Model version, prompt, or connected tool, it makes no difference. If it can change an answer, it gets tested.
Weekly: a sample of live conversations gets human review against the rubric. New failure types found here become dataset tasks.
Monthly: the framework itself gets reviewed. Retire stale tasks, check the model grader against human marks, and look at the trend line, not just the latest score.
Quarterly: re-check the pass mark. As the agent improves, a threshold that once stretched it may now be too easy to mean anything.
One named owner protects the cadence. That person can block a release that fails the suite, the same way a finance lead can block an unsigned contract. Without that standing, evals become advice, and advice loses to deadlines.
What this looks like in a real engagement
At RaftLabs, evaluation is part of the agent work itself, not an add-on after launch. When we design an agent under our AI agent development service, the golden dataset and rubric are agreed with the client before the agent handles real traffic. The client owns the standard, in plain language, so their team can argue with a score and win when the rubric is wrong.
That ownership matters for the same reason it matters in our wider AI development work: clients own 100% of the code, and the eval suite is part of what they own. When a model changes next year, they can prove what the agent does, without calling us first.
Projects at RaftLabs start from $10K with a fixed scope and price agreed up front. If your agent is already live and quality is a matter of opinion in your team, the framework above is the fix, and it is mostly writing, not tooling.
The bottom line
An evaluation framework is a dataset, a rubric, a scoring method, and a cadence, owned by one person with the standing to act on the results. Create the dataset from real work. Write the rubric so two people mark the same way. Run offline evals before changes and online evals after them. Review the framework itself every month.
Do that, and "the agent feels worse" becomes a sentence your team never has to say again.
Ask an AI
Get an instant summary of this post from your preferred AI assistant.
Frequently asked questions
Straight answers to what buyers ask before they scope. Still stuck? .
- It is the organised system a team uses to judge whether an AI agent is doing its job well. It combines a fixed set of test tasks, a written definition of a good result, a scoring method, and a schedule for rerunning the tests. Without it, quality judgements rest on impressions from a handful of chats.
- A golden dataset is a fixed set of tasks with agreed correct outcomes, used as the reference standard. Golden means the answers were checked by people who know the work, and the set only changes through deliberate review. Teams usually start with 20 to 50 real tasks and grow the set as new failure types appear in production.
- Offline evals run the agent against a stored dataset in a test setting, before a change reaches users. Online evals measure the live agent on real traffic, using signals such as task completion, handovers to humans, and sampled human review. Offline evals are controlled and repeatable. Online evals show what real users actually do.
- Run the full offline suite on every change that could alter behaviour: a new model version, a prompt change, or a change to a connected tool. Sample live traffic continuously for online signals. Then review the whole framework monthly: retire tasks that no longer match real use, and add tasks for the failures users actually hit.
- One named person, usually the person accountable for the agent in production. Evaluation fails when it belongs to everyone in general. The owner keeps the dataset honest, rules on disputed scores, and has the standing to block a change that fails the suite.
