AWS Builder Center

Evaluations that lead to decisions, Part 1: what to measure, how to check it, and when, for AI agents on Amazon Bedrock AgentCore

Turning on every evaluator gives you a dashboard full of scores but very few decisions. This first part of a two-part series shows how to choose only evaluators whose low score leads to a fix, how to work down from the business outcome, how to check each behaviour as cheaply and reliably as possible, and when to evaluate, using Amazon Bedrock AgentCore Evaluations.

Series: Evaluations that lead to decisions (2 articles)

  1. 1
    Evaluations that lead to decisions, Part 1: what to measure, how to check it, and when, for AI agents on Amazon Bedrock AgentCore This article

A two-part series. Evaluating AI agents well is an important topic, and a large one. It covers what to measure, how to check it, when to run each check, how far to trust the scores, what they cost, and how to keep the whole system relevant over time. All of this doesn't fit into a single post on this platform because of its length limit, so we have split it into two parts that build on each other:
  • Part 1 (this post): the core rule that turns scores into decisions, what to measure, how to check it, and the three loops in which you evaluate.
  •  Part 2 : golden datasets (starting without one, and growing it from production failures), how to set the sampling rate for online evaluation, what drives cost, and how to keep improving.
We recommend reading them in order.  Part 2  opens with a short recap, so it also works on its own.
Switching on an LLM evaluator takes a few clicks. Amazon Bedrock AgentCore Evaluations offers many built-in evaluators for correctness, faithfulness, goal success, tool use and safety, plus third-party evaluators from DeepEval and AutoEval, plus your own custom and code-based evaluators. So teams often switch on everything that sounds relevant, build a dashboard and wait for insight.
What arrives instead is a wall of numbers. Some never move. Some jump around between identical runs. Some measure things nobody acts on. And every LLM-as-a-judge call costs tokens, whether or not anyone looks at the result.

This post is about getting out of that situation. It describes a framework for evaluating AI agents built on one idea: an evaluation is only worth running if it can change a decision. That covers what to release, what to fix, whether to adopt a new model, and what to stop paying for. The framework is tool-agnostic, but at each step we show how to implement it with  Amazon Bedrock AgentCore Evaluations .

Other related AWS posts. This post builds on, and links to, other AWS posts about AgentCore Evaluations:

What you will learn in Part 1:
  • the one rule that turns evaluation scores into decisions
  • what to measure: working down from the business outcome to a few actionable evaluators
  • how to check it: the method ladder, from preventing a failure to code checks and LLM judges
  • when to evaluate: while building, before release and in production, and the AgentCore mode for each

Coming in  Part 2 : how to start without a golden dataset and grow it from production failures, how to set the sampling rate of online evaluation with a ready-to-use lookup table, what drives cost, and how to keep it all working as a routine.

Contents (Part1)


Terms used in this post

Each term below is introduced once and used with exactly the same meaning throughout. Section 7 adds a few statistics terms.

Term
Plain-language meaning
Session
One end-to-end request to the agent, e.g. processing one invoice
Trace
One turn or agent step inside a session, e.g. the extraction step
Tool call
A single tool invocation inside a trace, e.g. "look up purchase order"
Evaluator
Anything that scores a session, trace or tool call: returns a score, a label and an explanation
Code check
An evaluator written as ordinary code (in AgentCore: a code-based evaluator on AWS Lambda). Exact and cheap
LLM judge
An evaluator in which a language model grades the agent against a rubric. Flexible, but its verdicts vary
Ground truth
The known correct outcome for a test case you prepared. Live production sessions have none
Test case
A prepared input plus its ground truth
Golden dataset
Your curated collection of test cases, used to test every change and release
Quality dimension
One part of what "success" means for your agent, e.g. "totals reconcile"


A running example

To keep things concrete, we use one fictional agent throughout: an invoice-processing agent. It reads a supplier invoice (a PDF or an email) and extracts the fields. Then it matches the invoice to a purchase order, applies the company's approval policy, and either posts the invoice to the finance system or escalates it to a person.

Example of a fictional invoice-processing agent that will be used throughtout the blogpost


It combines what most real agents combine: exact rules (approval limits), judgement (an unusual invoice layout), tools (purchase-order lookup) and an end result in another system (the posting). Replace it with your own agent as you read.





1. The problem: lots of scores, very few decisions

Here is what typically happens when evaluation starts from the catalog rather than from a goal:

The typical problem with evaluations


Five symptoms show up again and again:

Symptom
What it looks like
Metrics that never move
Always 1.0 or always 0.0
Metrics that move for no reason
Two identical runs give very different scores
Metrics that measure the wrong thing
Scores about the agent's words, while what matters is the action it took or the artifact it produced
No clear next step
A score drops and nobody knows what to change
Cost without benefit
LLM judges run on every session
None of these is a tooling problem. They're design problems of the evaluation pipeline, and they share one root cause.





2. The core idea: an evaluator earns its place only if a low score leads to a fix

Think of evaluators as blood tests. A good doctor doesn't order every test available. Each test is ordered because if it comes back abnormal, there is a clear next step. Ordering everything adds cost and false alarms, and buries the results that matter.

An evaluator earns its place only if a low score leads to a fix


In practice, the decisions evaluations should drive come down to a short list:
  • Release or block a change to prompts, tools or orchestration.
  • Fix a specific defect, and know when it's fixed.
  • Upgrade or switch models. New model versions arrive constantly. Evaluations turn "should we move?" into evidence: run the same test cases on both models, compare quality within the margin of error (section 7.5 in Part 2), and weigh it against cost and latency.
  • Stop paying for checks that never drive any of the above.

Everything that follows comes from that idea: for every evaluator, you should be able to say why it exists, what it checks, how, where it runs, and what you will do when it fails. Section 9.1 in Part 2 turns that into a one-page plan.





3. The framework in one picture

The framework answers five questions, in order:
The proposed framework for adopting evaluations

This post, Part 1, covers questions 1 and 2, what to measure and how to check it, and introduces question 3, when: the three evaluation loops. Part 2 completes question 3 with golden datasets, and covers questions 4 and 5: how far to trust the scores, what they cost, and how to keep improving.





4. What to measure

4.1 Work down from the business outcome, not up from evaluator names

The most common mistake is to start from the evaluator list: "Helpfulness sounds useful, let's turn it on". Instead, start from what success means for the business, and work down to evaluators. This is also the core advice of  The agent evaluation playbook .

  1. Write one sentence of business success. For the invoice agent: "Every valid invoice is posted correctly and quickly without human effort. Anything that breaks policy, or that the agent isn't sure about, goes to a person. Nothing is invented, and the cost per invoice stays acceptable."
  1. Break it into behaviours you could observe in a session. These are your quality dimensions.
  1. Pick one evaluator per quality dimension, and decide at which level it runs (section 4.3).
The following example graph shows this approach for the hypothetical invoice processing agent.

Example of applying the proposed approach on the hypothetical invoice processing agent.


Green: a code check is enough. Blue: needs an LLM judge (D4 needs both). Amber: needs a data check outside the agent's session.

Most of the quality dimensions can be covered by code checks. That's typical for agents that take actions or produce artifacts, and it matters a lot for reliability and cost (section 5).


4.2 Measure what the agent delivers, not what it says about it

Many evaluation setups score the agent's final message, because that's what the built-in judges read most naturally. However, in many cases, the agent's output is not a text but rather an automation. For example, the hypothetical invoice agent doesn't deliver a message. It delivers an action (a posting) and a result in another system (data in the finance system). A coding agent delivers code; a reporting agent delivers a report.
Measure what the agent delivers, not what it says about it


The further right you measure, the closer you are to business value. A well-written message about a wrong posting is still a failure.


4.3 Levels: what an evaluator sees, and how often it runs

Every evaluator scores at one of three levels ( how AgentCore Evaluations works ):

Different levels of what an evaluation sees and how often it runs


Level
Runs
Use it for
Session
Once per request
Outcomes: was the goal met? Was the policy respected?
Trace
Once per trace (agent step)
Step quality: was this response faithful to what the tools returned?
Tool call
Once per tool call
Tool choice and parameters. Use sparingly; it runs many times per session

The level matters twice. It decides what evidence the evaluator sees, and, as we'll see in section 8 of Part 2, it multiplies cost.


4.4 The rule: "If this score drops, what exactly will we change?"

Here is the core idea turned into a test you apply to every candidate evaluator:

How to think about selecting evaluators


Applied to the example invoice agent:

Evaluator
"If it drops, we will…"
Verdict
Fields match the schema (code check)
…find the failing field and fix the extraction
✅ Keep
Faithfulness
…read the judge's explanations and fix what the agent claims
✅ Keep
Approval policy (code check)
…stop and investigate: this is a policy incident
✅ Keep
Correctness without an expected answer
…do the same as for Faithfulness
❌ Redundant
Conciseness
…nothing: the agent's final message is a fixed template
❌ Don't add
Harmfulness, on a back-office agent
…not know what to change; it never moves
❌ Usually not worth it

Two practical habits make the rule stick:
  • Start small. Begin with the two or three evaluators that best show whether the outcome was reached, as the  playbook  also recommends. Add another only when you find a failure your current set missed (section 6.3 in Part 2).
  • Decide per agent, not per tool. Harmfulness and Refusal matter a lot for a public-facing chat assistant, and very little for a back-office automation that never talks to customers.





5. How to check it

5.1 Climb the method ladder only as far as you need

Once you know what to guarantee, choose the cheapest reliable way to guarantee it. Think of it as a ladder. Start on the bottom rung, and only climb when the rung below can't do the job.

Climbing the ladder of evaluator complexity


Each rung up is more flexible, but less consistent and more expensive. Climb only when the rung below genuinely can't do the job.


5.2 Enforce what you can, evaluate what you can't

This is rung 1 of the ladder. If a rule is fully deterministic, preventing a violation inside the agent beats detecting it afterwards with an evaluator. A light code check can still confirm that the enforcement works.

For the example invoice agent:

Rule
Where it belongs
"Never post before the purchase-order match succeeds"
Enforce: fixed step order in the orchestration
"Invoices over the approval limit always go to a person"
Enforce: a hard rule in code, orchestration or a policy engine
"Only these tools for this invoice type"
Enforce: give the agent only those tools
"At most N retries or tool calls"
Enforce: the cap, and monitor it with a code check
How to extract a messy layout
Leave to the agent, and evaluate the result
Was the escalation reason sensible?
Evaluate with an LLM judge

For tools called through AgentCore Gateway, a policy engine such as  AgentCore Policy  can enforce rules like these on every tool call, outside the model.

Why not make everything deterministic? Then you wouldn't need an agent. Agents are worth it where inputs vary and judgement is needed: unusual layouts, ambiguous vendors, missing fields. Enforce the boundaries, let the agent work inside them, and evaluate what it does there.


5.3 Record the evidence, and calibrate every judge

Two conditions make the ladder work in practice.

Code checks can only check what the trace contains. AgentCore Evaluations reads the OpenTelemetry spans your agent emits ( how spans are read across frameworks ). Make the agent record the facts you want to check, typically as span attributes: for the invoice agent, the extracted fields, the policy decision and its reason, its confidence, and the final action. In AgentCore, a code check is a Lambda function that receives the session's spans (plus your ground truth in on-demand and batch runs, in  evaluationReferenceInputs ) and returns a label, an optional score and an explanation ( docs ,  walkthrough ).

What code checks look like in practice. Each example names the facts the agent records in its trace, and the exact rule the code check applies. None of them needs an LLM:

Agent
Record in the trace
Code check
Explanation it returns on failure
Invoice agent
Extracted line items, tax and total
The line items plus tax equal the total, within 0.01
"Line items and tax sum to 1,180.00, but the total is 1,280.00"
Travel-booking agent
The traveller's requested city and dates; the parameters of the booking tool call
The booked city and dates equal the requested ones
"Requested 12–14 March in Lisbon; booked 13–15 March"
Analytics agent
The generated SQL and the columns it returned
The SQL parses and is read-only, and the result has the columns the question needs
"Result is missing the column  region "
Research assistant (retrieval-augmented)
The IDs of the documents it retrieved, and the IDs it cites in the answer
The answer cites at least one source, and every cited ID was actually retrieved
"Cites doc-417, which was never retrieved"

Two things make these checks valuable. They give the same answer every time, so a drop is always a real change. And the explanation points straight at the fix.

LLM judges only see what's in the trace. When the evidence is missing, a judge may take the agent's word for it. Before you trust an LLM judge, calibrate it: label 30–50 sessions yourselves, let the judge score the same sessions, and compare. If agreement is low, add the missing evidence to the trace, tighten the rubric, or replace the judge with a code check.

For narrow, repeatable yes/no questions,  Use decision models with Amazon Bedrock AgentCore Evaluations  shows an alternative to a general-purpose judge. It returns calibrated probabilities over a fixed set of answers.


5.4 The AgentCore evaluator catalog at a glance


Option
What it is
When to use it
Built-in
 docs 
AWS-authored LLM judges (e.g.  Correctness ,  Faithfulness ,  GoalSuccessRate , tool and skill evaluators), plus programmatic trajectory matching against an expected tool list
General quality dimensions
Third-party managed
 docs 
DeepEval (e.g.  TaskCompletion ,  ConversationCompleteness ,  KnowledgeRetention ,  PIILeakage ) and AutoEval (e.g. Security, Possible), run by the service
When one matches a behaviour in your plan. Validate on your own traffic first
Custom LLM judge
 docs 
Your instructions, rating scale and model
Domain-specific judgement
Multi-dimension
 docs 
One judge call scores several named criteria separately
Several criteria judged from the same evidence; cheaper than separate judges
Derived
 docs 
A built-in or third-party evaluator's logic, run on a model and inference you control
Data-governance requirements
Code-based
 docs 
Your Lambda function: the code checks in this post
Anything exact

For agents that load skills,  Evaluate skill-equipped agents with Strands Evals and AgentCore  covers the skill-selection and skill-instruction-following evaluators.





6. When and where to evaluate

6.1 Three loops, each with different information

You evaluate at three moments, and each one has different information available. The key difference is ground truth: a known correct answer exists only for test cases you prepared, never for live traffic.

The 3 loops of agentic evaluations



Inner loop
Outer loop
Production loop
When
During development
On every change, and before each release
Continuously
Ground truth?
✅ Yes
✅ Yes: the golden dataset
❌ No; fixed rules still apply
Typical size
A few runs
Smoke set (a small subset): 5–10 test cases × 3 runs. Full golden dataset: every test case × 10–20 runs
Code checks on every session; LLM judges on a sample (section 7 in Part 2)
Evaluators
Anything that helps debugging
Code checks, LLM judges with ground truth, trajectory checks
Code checks, plus LLM judges that need no ground truth
What happens with the result
The developer fixes and retries
Release blocked or allowed
Alarm, triage, new test case
AgentCore mode
On-demand
On-demand + batch
Online + periodic batch audits

AgentCore Evaluations has a mode for each loop ( evaluation types ). On-demand scores the sessions you choose and returns results immediately. Batch scores many sessions as one background job and returns averages and insights. Online continuously evaluates a sample of live sessions and writes results and metrics to Amazon CloudWatch.

For a complete CI/CD example, including a quality gate that fails the build, see  Automated agent evaluation with Amazon Bedrock AgentCore and GitHub Actions . For combining local tests with production monitoring and shadow mode, see  Evaluating AI agents: a production blueprint with Strands and AgentCore .





Part 1 in summary, and what comes next

So far we have covered the first three questions of the framework:
  1. An evaluator earns its place only if a low score leads to a fix. Test every candidate with "If this score drops, what exactly will we change?"
  1. What to measure: start from one sentence of business success, break it into quality dimensions, measure what the agent delivers rather than what it says, and pick the right level for each evaluator.
  1. How to check it: climb the method ladder only as far as you need. Prevent what you can inside the agent, use code checks for anything exact, and use LLM judges, calibrated against your own labels, only where judgement is needed. Make the agent record the evidence in its trace.
  1. When to evaluate: in three loops. The inner loop while building, the outer loop before each release, and the production loop after release. Ground truth exists only for the test cases you prepared, never for live traffic.

You now have a short list of evaluators, each with a reason to exist.  Part 2  turns that list into a working system:
  • No golden dataset yet? Start with parity, and turn every production failure into a new test case
  • How to set the sampling rate for online evaluation, with a ready-to-use lookup table
  • What drives evaluation cost, and the levers to control it
  • How to keep improving: the one-page evaluation plan, the routine, and the common traps

👉 Continue with  Part 2 .




Further reading

Series: Evaluations that lead to decisions (2 articles)

  1. 1
    Evaluations that lead to decisions, Part 1: what to measure, how to check it, and when, for AI agents on Amazon Bedrock AgentCore This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article