Module 13 Agentic QA and Evaluation - akash-coded/aws-bedrock-agentcore-strands GitHub Wiki

๐Ÿ”ฌ Module 13 ยท Agentic QA and Evaluation

How you prove an agent works โ€” and block the ones that do not.

Module 13 of 16 ยท track Ship ยท Estimated time: 5โ€“6 hours ยท Prerequisites: Module 06 or 08. Module 11 recommended.

Non-deterministic systems need a different testing discipline. This module gives you golden sets, contract tests, multi-agent tests, a quality gate with real thresholds, and a CI step that actually blocks a bad deploy.

Open the module on GitHub โ†—: the slides, notebooks, exercises and solutions are there. This page is the reading order, with the tutorial and the workbench alongside.

Read first, on the site

The lesson that frames this module is The Agentic PDLC for QA: How to Test Probabilistic Software (6 min): testing software that is right a share of the time. Then try the golden-set confidence calculator in the workbench: the same decision, with your numbers.

What you will be able to do

  • Build a golden set that represents real usage, not happy paths
  • Write contract tests for tool schemas and agent outputs
  • Test multi-agent handoffs where the bug lives between agents
  • Run a quality gate that exits non-zero and blocks promotion
  • Debug a failing agent from CloudWatch traces

Concepts in this module

Portable GenAI concepts AWS-specific surface
Golden sets CloudWatch Logs Insights
Contract testing AgentCore Observability
LLM-as-judge Bedrock model invocation logging
Quality gates
Non-deterministic testing

Portable concepts transfer to any stack. The AWS column is where this module touches the cloud โ€” see docs/concepts/portability-matrix.md.

Run it in this order

# Step What it is
1 ๐Ÿ“– slides/Agentic_QA_Training.pptx Agentic QA
2 ๐Ÿ“– src/golden_set.jsonl The golden set โ€” study its shape
3 ๐Ÿ’ป notebooks/eval_harness.ipynb Evaluation harness
4 ๐Ÿ“– src/test_contracts.py Contract tests
5 ๐Ÿ“– src/test_multiagent.py Multi-agent tests
6 ๐Ÿ“– src/quality_gate.py The quality gate โ€” the file with teeth
7 ๐Ÿ’ป notebooks/debug_walkthrough.ipynb Debugging walkthrough
8 ๐Ÿ”– src/cloudwatch_filters.md CloudWatch filter patterns
9 โœ๏ธ exercises/QA_Exercise_TravelMind.md QA exercise โ€” TravelMind

๐Ÿ“– read   ๐Ÿ’ป run   โœ๏ธ practise   ๐Ÿ“Š workbook   ๐Ÿ”– reference

There is no separate solutions/ folder โ€” the exercise carries its own answer key, and the module's src/ is itself the worked reference: a real golden set, real contract tests, and a quality gate that exits non-zero. Read those after you have attempted the exercise, not before.

Common mistakes

  • A gate that warns instead of failing. Teams learn to ignore it within a week.
  • Golden sets built only from cases you already pass.

When it breaks

Every error anyone has hit in this course is in the Error Index, by the exact string. Model access and region problems are in Model and Region Notes. If it is a question rather than an error, check the answered ones first, then ask in Q&A.

Field guide for this module

Frameworks

Quick reference

Recipes and procedures


โ† Module 12 ยท A2A and A2UI: Agent Interoperability ยท All modules ยท Module 14 ยท End-to-End Production Pipeline โ†’

โœ๏ธ This page is generated from modules/13-agentic-qa-and-evaluation/README.md. To change it, edit the module README: an edit made here is replaced at the next sync.

โš ๏ธ **GitHub.com Fallback** โš ๏ธ