Google has open-sourced Ambient Quality Agent, or AQuA, a reference implementation for examining AI agent sessions in production. Rather than checking only whether a service is up or returns a successful response, it looks for quality regressions that conventional infrastructure monitoring can miss. Examples include an agent forgetting a user preference or reporting success without making a required tool call.
How AQuA works
AQuA runs alongside a business agent as a sidecar, outside the request path. It reads telemetry from Cloud Trace, Cloud Logging, or BigQuery and samples up to 1,000 recent sessions per run. Its workflow moves through sampling, review, cluster discovery, candidate-cluster verification, and issue tracking. Teams can define domain-specific quality standards in a goal.md file and add deterministic metrics. Runs can be scheduled, triggered after a deployment, or started on demand.
For root-cause analysis, AQuA compares anomalous sessions with an immutable source snapshot captured at deployment. Its diagnostic agent can identify relevant code or prompts, cite files and line ranges, and suggest changes when the cause lies in the repository. But an issue may instead stem from an external dependency, a tool handoff, or retrieved data. AQuA does not change code or create pull requests automatically.
Google tested the system on 32 sessions from a multi-agent travel application. It produced 42 observations grouped into nine candidate clusters. The verification stage examined up to three complete session records for each candidate, rejected three clusters it could not substantiate, and confirmed six issues. Examples included bypassing a seat-availability check and dropping a traveler’s vegetarian preference during a task handoff.
In controlled session replays after prompt changes, sessions that bypassed the seat check fell from 15 to 2, while missed dietary preferences fell from 7 to zero. Sessions passing all checks rose from 5 to 13. These figures come from controlled replays, not real production traffic. AQuA links observations to traces, requires root-cause citations to match valid lines in the deployed snapshot, and labels issues NEW, RECURRING, or RESOLVED. An issue is marked resolved after it has not recurred for 14 days.
Why it matters—and what it cannot do
AQuA connects production observations, issue clustering, and source-level investigation in one open-source reference implementation. Its emphasis is on linking verified production failures to the deployed version, rather than merely collecting traces or running regression tests. Still, sampling can miss rare failures, and replay may not reproduce external state. Verification can filter unsupported clusters, but it cannot establish that every session shares the same failure. For engineering teams, AQuA is best viewed as a complement to quality monitoring and debugging workflows, not an automated repair system.
Comments
Checking sign-in status...
Loading comments...