BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Google Open Sources Ambient Quality Agent (AQuA) to Diagnose Production AI Agent Failures

Google Open Sources Ambient Quality Agent (AQuA) to Diagnose Production AI Agent Failures

Listen to this article -  0:00

Google has open-sourced AQuA (Ambient Quality Agent), a reference implementation that analyzes production AI agent sessions, verifies recurring failure patterns, and investigates root causes against deployed source revisions. The tool targets silent quality regressions that conventional infrastructure monitoring can miss, such as agents ignoring user preferences or skipping required tool calls while returning successful responses.

AQuA runs alongside an agent in Google Cloud, outside its request path, reading telemetry from Cloud Trace, Cloud Logging, or BigQuery. It samples up to 1,000 recent sessions per run and processes them through five stages: sampling, reviewing, clustering findings, verifying candidate clusters, and tracking issues. Developers can configure domain-specific quality criteria through a goal.md file and add deterministic custom metrics. AQuA can run on a schedule, after a deployment, or on demand.

For root cause analysis, AQuA compares failing sessions with an immutable source snapshot captured at deployment. Its diagnosis agent identifies relevant code or instructions, cites file and line ranges, and proposes changes when the cause lies in the repository. It can also attribute failures to external dependencies, tool handoffs, or retrieved data. AQuA does not apply fixes or open pull requests automatically.

AQuA sidecar architecture (Source: Google Developer Blog Post)

Google evaluated 32 sessions from a multi-agent travel application, identifying 42 findings grouped into nine candidate clusters. The verifier rejected three unsupported clusters after checking up to three full transcripts per candidate cluster, leaving six verified issues. Two involved bypassing seat availability checks and losing a traveler's vegan preference during delegation.

After developers modified prompts and replayed the sessions, seat-selection bypasses fell from 15 sessions to two, dietary-preference omissions dropped from seven to zero, and sessions passing all checks increased from five to 13. These results came from controlled replay, not production traffic.

The Google blog post states,

An insight is its citations, not a self-reported confidence score.

Findings link to supporting traces, and proposed root causes must reference valid lines in the deployed snapshot. AQuA tracks findings as NEW, RECURRING, or automatically RESOLVED after 14 days without being observed. Sampling can miss rare failures, and replay may not reproduce external state.

Reacting to the announcement on LinkedIn, Dmytro Aprelenko, engineering manager at Redcore, wrote,

Agent orchestration definitely needs better continuous diagnosis to catch these loops early.

AQuA validates source references and links findings to supporting traces. Cluster verification filters false positives, though it cannot confirm every session exhibits the same failure. Google's Agent Platform evaluation service supports regression testing and production quality monitoring, while Arize Phoenix provides open-source tracing and evaluation. AQuA focuses on grouping production failures and linking verified findings to deployed source code.

Google identifies sampling limits and incomplete reproduction of external state as constraints. Its open-source implementation helps teams integrate production agent diagnosis into development and evaluation workflows.

About the Author

Rate this Article

Adoption
Style

BT