AI Agent Failure Detection and Root Cause Analysis with Strands Evals
AWS•How-to••by Po-Shin Chen, Aaron Farntrog, Abhishek Kumar, JJ Cho, Muhyun Kim and Ninad Kulkarni•AWS Artificial Intelligence Blog
In this post, we walk you through calling the detector functions to diagnose real agent failures. You learn how to interpret their structured output: categorized failures with confidence scores, causal chains linking root causes to downstream symptoms, and fix recommendations specifying whether a change belongs in your system prompt or tool definitions. You also learn how to integrate detection into your evaluation pipeline for automated diagnosis on every test run.
Strands Evals detectors diagnose agent traces by listing categorized failures with confidence scores, then linking root causes to fixes in the system prompt or tool descriptions.
Who it is for
Teams running Strands agents on Bedrock that need to find why test runs fail, not just that they fail.
Key points
Failure detection and root cause analysis are separate functions; diagnose_session runs both together.
DiagnosisConfig with ON_FAILURE trigger runs diagnosis only on failing test cases in CI/CD.
Detector calls use Amazon Bedrock inference and CloudWatch Logs, both of which incur charges.
AI:Both analyze agent traces to group recurring failures so teams know what to fix first; AWS does it via open-source Strands Evals, Microsoft via a managed Foundry feature.
AI:LoanPro's multi-agent assistant on Bedrock AgentCore summarizes borrower account data and suggests next actions for servicing agents, now running in production.
AI:A three-phase maturity roadmap (governance foundation, pilot deployment, evaluation and hardening) maps AWS Responsible AI Lens pillars to agentic AI platform work, with a companion assessment skill.
AI:AWS walks through how Natera built SWARM, an agentic system on Bedrock AgentCore that turns lab-engineering knowledge into automated diagnostic reports for Jira tickets.