Google open-sources AQuA to diagnose failures in AI agent sessions that appear successful

On November 25, 2026, InfoQ reported that Google had open-sourced AQuA (Ambient Quality Agent), a reference implementation for diagnosing recurring failures in production AI agent sessions. It targets problems that infrastructure monitoring can miss: an agent may return a successful response even though it skipped a required tool call or ignored a user’s preference.

AQuA runs alongside an application’s agents on Google Cloud, outside the request path. On each run, it samples up to 1,000 recent sessions from Cloud Trace, Cloud Logging or BigQuery. It reviews the sessions, groups observations into candidate failure patterns, checks those patterns against full session records and tracks verified issues. Developers can define quality criteria in goal.md, add deterministic metrics and run the analysis on a schedule, after deployment or on demand.

For diagnosis, AQuA links observations to their traces and compares anomalous sessions with an immutable snapshot of the source code captured at deployment. If it identifies a cause in the repository, it must cite valid file and line references from that snapshot. It can suggest a change to code or a prompt, but it neither edits code nor opens pull requests. It can also point to causes outside the repository, such as an external dependency, a tool handoff or retrieved data.

What Google’s test showed. In a test of 32 sessions from a multi-agent travel application, AQuA grouped 42 observations into nine candidate patterns. The verifier checked up to three full session records per candidate and rejected three patterns it could not substantiate, leaving six confirmed issues. Two involved agents bypassing seat-availability checks and losing a traveler’s vegetarian preference during a handoff.

After developers changed the prompts and replayed the sessions, the number of sessions that skipped seat checks fell from 15 to two. Missed dietary preferences fell from seven to zero, and the number of sessions passing every check rose from five to 13. These were controlled replay results, not measurements of improvement in live traffic.

Google noted that sampling can miss rare failures and that replay may not reproduce the original state of external systems. That distinction matters for issue tracking: AQuA labels findings NEW or RECURRING and marks an issue RESOLVED after 14 days without an observed recurrence. The label reflects what AQuA has seen, not proof that the failure cannot recur.