agentcore-registry-evaluations.md
| source_path | references/agentcore-registry-evaluations.md |
|---|---|
| source_sha256 | 64b16893f3a7835b75edc1620455bc45821ff8b808ea582f561ce0e6f7da2256 |
| source_url | https://github.com/aws/agent-toolkit-for-aws/blob/903433d67cc4eeab334355620373f33a0c162dd4/skills/core-skills/amazon-bedrock/references/agentcore-registry-evaluations.md |
| supporting_skill_id | 40201 |
| upstream_revision | 903433d67cc4eeab334355620373f33a0c162dd4 |
AgentCore Registry & Evaluations
Table of Contents
- Agent Registry (Preview)
- Evaluations Service
Upcoming namespace migration: The registry namespace is migrating from
bedrock-agentcoretoagent-registry. This will require updates to your endpoints, IAM policies, SDK, and CLI usage. Check the latest AWS documentation for the migration date and status.
Agent Registry (Preview)
Catalog, discover, and govern AI agents and tools across an organization.
Governance Workflow
The key non-obvious behavior — two modes:
| Mode | Behavior | Use For |
|---|---|---|
| Auto-approve | Records become discoverable immediately | Development environments (isolated accounts only) |
| Manual approval | Records require explicit approval before discovery | Production environments |
Status transitions: DRAFT → PENDING_APPROVAL → APPROVED (REJECTED reachable from PENDING_APPROVAL; DEPRECATED is the terminal state)
Common failure: Record stuck in PENDING_APPROVAL — governance workflow is set to manual approval but no one has approved. Check governance configuration or switch to auto-approve for dev.
Registering Resources
Resource types: MCP servers, Agents (A2A agent card), agent skills, custom types.
Constraints:
- You MUST specify resource type, name, description, and invocation endpoint
- You MUST register:
aws bedrock-agentcore-control create-registry-record --registry-id <registry-id> --name <name> --descriptor-type <MCP|A2A|CUSTOM|AGENT_SKILLS> --description "<desc>" - Tags and capabilities metadata improve discoverability
Searching and Discovery
- CLI:
aws bedrock-agentcore-control list-registry-records --registry-id <registry-id> - MCP endpoint: programmatic discovery via MCP protocol
- Filter by resource type, tags, capabilities
Available Regions
Verify availability: aws bedrock-agentcore-control list-registry-records --registry-id <registry-id> --region <region>. Registry is a Preview feature — region availability is expanding.
Evaluations Service
Automated agent quality assessment using LLM-as-a-Judge.
Setup Workflow
Evaluation Setup:
- [ ] Step 1: Instrument agent with OTEL (see [memory & observability](agentcore-memory-observability.md))
- [ ] Step 2: Create evaluators (built-in or custom)
- [ ] Step 3: Configure online evaluation (sampling rate, data source)
- [ ] Step 4: Monitor scores in CloudWatch
Built-in Evaluators
| Evaluator | What It Measures |
|---|---|
Builtin.GoalSuccessRate |
Does the agent achieve the user's goal? |
Builtin.Coherence |
Is the response logically consistent? |
Builtin.Conciseness |
Is the response appropriately brief? |
Builtin.ContextRelevance |
Is the retrieved context relevant to the query? |
Builtin.Correctness |
Is the response factually correct? |
Builtin.Faithfulness |
Is the response grounded in provided context? |
Builtin.Harmfulness |
Does the response contain harmful content? |
Builtin.Helpfulness |
Does the response help the user? |
Builtin.InstructionFollowing |
Does the response follow the given instructions? |
Builtin.Refusal |
Does the response inappropriately refuse a valid request? |
Builtin.ResponseRelevance |
Is the response relevant to the query? |
Builtin.Stereotyping |
Does the response contain stereotyping? |
Builtin.ToolParameterAccuracy |
Are tool call parameters accurate? |
Builtin.ToolSelectionAccuracy |
Is the correct tool selected? |
Refer to the latest AWS documentation on AgentCore Evaluations built-in evaluators for the full current list.
Custom Evaluators
Define your own evaluation criteria:
- Rubric: what constitutes a good/bad response for your use case
- Scoring scale: numeric (1-5) or binary (pass/fail)
- Custom prompt template: the LLM-as-a-Judge prompt
Create custom evaluators: aws bedrock-agentcore-control create-evaluator --evaluator-name <name> --level <TOOL_CALL|TRACE|SESSION> --evaluator-config '{"llmAsAJudge":{"instructions":"<criteria>","ratingScale":{"numerical":[{"value":1,"label":"Poor","definition":"..."},{"value":5,"label":"Excellent","definition":"..."}]}}}'
Online vs On-Demand Evaluation
| Type | When | Use For |
|---|---|---|
| Online | Continuous, samples production traffic | Monitoring quality over time |
| On-demand | Batch, against a test dataset | Regression testing, A/B comparison |
Online evaluation constraints:
- Configure sampling rate — evaluating every invocation is expensive (each evaluation is a model invocation)
- Start with 5-10% sampling, increase if quality issues detected
- Data source: which OTEL traces to evaluate
Monitoring Scores
-
Evaluation scores publish to CloudWatch automatically
-
Create alarms for quality degradation: score drops below threshold
-
Investigate low-scoring sessions: trace → evaluation result → root cause
-
Create quality alarms — first discover the exact namespace (CloudWatch namespaces are case-sensitive):
aws cloudwatch list-metrics --namespace "Bedrock-AgentCore"— if no results, try--namespace "Bedrock-Agentcore"- Use the namespace that returns metrics in subsequent commands:
aws cloudwatch put-metric-alarm --alarm-name <name> --metric-name <metric> --namespace "<discovered-namespace>" --statistic Average --period 300 --threshold <value> --comparison-operator LessThanThreshold --evaluation-periods 3 --alarm-actions "<sns-topic-arn>"
Security Considerations
Registry access control:
- You MUST use least-privilege IAM policies — separate read (
list-registry-records) from write (create-registry-record) permissions. Avoidbedrock-agentcore:* - You MUST use IAM roles (not IAM users) for programmatic registry access
- You SHOULD add
aws:SourceArnandaws:SourceAccountconditions to resource policies on registry resources - You MUST restrict auto-approve governance mode to isolated development accounts — use manual approval in shared or production environments
Evaluation data protection:
- OTEL traces sent to evaluations contain user queries, agent responses, and tool call parameters — these may include PII
- You MUST ensure OTEL trace data is encrypted in transit (TLS) and at rest
- You SHOULD implement PII scrubbing in OTEL instrumentation before traces reach the evaluation service
- You MUST restrict access to evaluation results to authorized personnel only
- Encrypt CloudWatch log groups storing evaluation results with KMS
Monitoring security:
-
You MUST encrypt SNS topics used for alarm actions with KMS
-
You MUST validate that SNS topic subscribers are authorized to receive evaluation data
-
You MUST enable CloudTrail for all
bedrock-agentcore-controlAPI calls — tracks who registered resources, who approved/rejected records, and who modified evaluations -
Refer to the latest AWS documentation on Bedrock AgentCore security best practices.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.