AI
Google's Ambient Quality Agent Detects Silent Failures in Production AI Systems
AQuA automatically diagnoses agent problems that standard health checks miss, clustering production failures into verified issues linked to exact code locations.
Google Developers Blog (AI)
The 20% Problem#
Getting an AI agent to handle 80% of known scenarios is relatively fast: an evaluation dataset, automated tooling, and a quick iterative loop can ship working prototypes in days. But production reveals a harder truth. Once real traffic arrives, usage patterns diverge from your test cases, underlying systems change with each model upgrade or tool update, and quality can silently degrade even when every infrastructure health check stays green.
The remaining 20%—and the gap between launch and sustained performance—comes from failures buried inside conversations that no standard monitoring catches. A seat gets confirmed without checking availability. A restaurant recommendation ignores a customer's dietary preferences. The agent still returns HTTP 200 and meets latency targets while making decisions that shouldn't have passed.
Separating Layers of Failure#
Debugging these failures means isolating which layer broke: the language model hallucinated a detail or forgot a constraint from earlier in the conversation; the orchestration harness routed to the wrong sub-agent or lost state between turns; a tool's schema was incomplete; or instructions contained a missing edge case. Without reading transcripts alongside the exact code deployed at that moment, these layers look identical from the outside.
Production volume makes manual inspection impossible. Online dashboards show that a score moved; coding agents can inspect a trace if you know where to look. But nobody can hand-read thousands of conversations.
AQuA: Automated Diagnosis at Scale#
Google has released AQuA (Ambient Quality Agent) as open-source building blocks that teams can run in their own Google Cloud projects. The system works outside the request path, processing production session logs from Cloud Trace, Cloud Logging, or BigQuery on a schedule, after each deployment, or on demand. All session data stays within your project boundary.
Each sweep runs a five-stage pipeline:
- Sample: Pull up to 1,000 recent sessions from your telemetry to keep costs predictable
- Review: Grade each session against a checklist of common failure modes (procedure, tool selection, grounding, task completion) using a single model call per session
- Cluster: Group findings that share the same failure mechanism

