Wednesday, November 11, 2026

Ambient Quality Agent

Your agent returns HTTP 200. On top of that, it stays inside its latency budget. No tool call raises an error, either. By every standard health check, then, the system looks fine.

Takeaways 🚀
✅Detects silent failures in production
✅Groups recurring agent quality issues
✅Verifies findings before human action
✅Links failures to code lines
✅Improves agents through feedback loops

Yet the agent still records seat 3A as confirmed without asking the seat-selection sub-agent whether 3A is free. In other cases, it recommends a Florentine steakhouse to a traveler whose profile clearly says vegan.

These are silent failures. In other words, they don’t crash anything or trigger alerts. Instead, they quietly damage the user experience. As a result, traditional monitoring can’t see them.

To address this gap, Google’s Cloud AI team built a tool: AQuA, the Ambient Quality Agent. This article explains the problem it tackles and how it works. It also covers what it found in a real multi-agent test.


The First 80% Is the Easy Part

Teams that run AI agents in production keep asking the same three questions:

  • How is my agent doing?
  • What are its loss patterns, the failures that keep coming back?
  • How do I improve it, confirm the change helped, and stop it from sliding back?

Fortunately, reaching the first 80% of quality is now fairly fast. To get there, you need an evaluation dataset, a coding agent, and a tight loop: run, grade, fix, compare. With this setup, teams often handle known test cases within days.

Then you launch. Soon after, progress stalls.

Why the Last 20% Is Harder

After launch, the ground shifts in two main ways.

First, users change. People discover what the agent can do. Then they start using it in new ways. Before long, live traffic stops matching your original test set.

Second, the system changes. For example, you might upgrade a model, update the orchestration harness, or modify a tool. Everything still runs, and health checks stay green. However, conversation quality can drift. Meanwhile, a standard deploy pipeline won’t warn you.

Four Layers That Look Alike

When a session goes wrong, the cause can sit in one of several layers:

  • The model may invent an argument or forget a constraint from three turns earlier.
  • The orchestration harness may route to the wrong sub-agent or lose state between turns.
  • A tool contract may reject an input because nobody documented its valid values.
  • The instructions or skills may lack a rule nobody thought to write down.

Moreover, each layer can have a different owner and a different fix. A raw trace shows what happened. However, it doesn’t show why. To find the cause, someone must read failing conversations alongside the exact code that produced them.

Dashboards, by comparison, only show that a score moved. Similarly, a coding agent can inspect a trace, but only once you point it there. At production volume, though, no person can read every conversation.


Inner Loop vs. Outer Loop

With that challenge in mind, it helps to think of agent quality work as two loops. Together, they form a quality flywheel.

  • The inner loop happens before launch. During this stage, developers run tests, grade results, fix issues, and compare versions.
  • The outer loop, in contrast, happens in production. It watches real traffic, finds new failure patterns, and then sends them back to the inner loop.

AQuA works the outer loop. Specifically, it turns raw production traffic into diagnosed issues tied to specific lines of code. In addition, it archives failure transcripts that seed new inner-loop tests. Google also released it in the open as building blocks. That way, teams can adapt it to their own stack.


What AQuA Is

Put simply, AQuA is a quality agent that runs around the clock beside your production agent. It lives in your Google Cloud project. From there, it reads production conversations from Cloud Trace, Cloud Logging, or BigQuery. It can run on a schedule, after each deployment, or on demand.

Beyond that, two design choices stand out:

  • Your data stays put. Transcripts, code snapshots, and BigQuery tables remain inside your project.
  • It stays out of the way. AQuA never sits in the request path. Likewise, it never writes back to your agent.

For this reason, the developers describe it as a junior quality engineer doing the first pass. It reads conversations and filters noise. After that, it prepares a case file for whoever is on rotation.


The Five-Stage Pipeline

So how does it actually work? Each AQuA run moves a sample of recent sessions through five stages.

1. Sample

To start, AQuA pulls a random sample of up to 1,000 recent sessions. This cap keeps each run’s cost predictable.

2. Review

Next, a model judge grades each session against a nine-point checklist of common breakdowns. These include procedure, tool selection and arguments, grounding, and task completion. Throughout this step, the judge sees the agent’s instructions and tools. Whenever a session fails, it writes a structured finding. That finding compares what actually happened with what should have happened.

3. Cluster

After the review, AQuA groups findings that share the same failure mechanism. Each group then becomes a candidate issue.

4. Verify

At this point, a separate model checks each cluster against up to three full transcripts. If the evidence doesn’t support a cluster, the model throws it out.

5. Track

Finally, AQuA compares surviving clusters with issues it already tracks in BigQuery. It then labels each one NEW or RECURRING. If an issue goes unseen for 14 days, AQuA marks it RESOLVED automatically.

Steering the Review

On top of the default setup, teams can tune the review in two ways:

  • A developer goal. You write a plain-English file (goal.md) that AQuA adds to every review prompt. As a result, the judge focuses on your product’s rules rather than stylistic noise.
  • Custom metrics. Deterministic Python checks run beside the judge. Over time, they track pass rates.

By default, AQuA uses one model call per session. Consequently, scheduled sweeps stay affordable. Alternatively, teams can opt in to managed evaluators that score sessions against standard rubrics.


Root-Cause Diagnosis

Once an issue deserves a closer look, you start a root-cause analysis. You can do this from either the dashboard chat or the command line.

AQuA then reads the failing conversations alongside a snapshot of your source code. Importantly, the system captured that snapshot at deploy time, so nothing can change it afterward.

From there, the next step depends on where the bug lives:

  • If the defect is in your code, AQuA cites the exact file and line range. It then proposes an edit tied to those lines.
  • If the fault lies elsewhere, such as an upstream dependency, a handoff, or retrieved data, AQuA instead points to that step in the conversation. In that case, it doesn’t propose a code change.

Either way, AQuA never applies an edit or opens a pull request by itself. Rather, a human or a coding agent decides what to do.


A Real Walkthrough: The Travel-Concierge Agent

To show AQuA at work, the team tested it on travel-concierge, a sample multi-agent app. This app routes a traveler across specialized sub-agents. These cover inspiration, places, points of interest, planning, flight search, seat selection, booking, and trip support.

Step 1: Deploy and Set a Goal

First, three commands attach AQuA to the project. At the same time, the deploy step saves a fixed snapshot of the agent’s source code, labeled Revision 1.

Next, the team saved a developer goal on the dashboard. This goal focused the review on core product rules. Furthermore, it required every finding to cite a specific turn where an agent broke its instructions.

Step 2: Sweep and Verify

With the goal in place, AQuA reviewed 32 sessions. These were replays of four scripted traveler journeys. Altogether, they produced 1,583 trace spans.

Here are the results:

  • 5 sessions passed cleanly.
  • 27 sessions produced 42 findings.

For example, here is one finding on the planning agent:

Actual: The user picked flight UA204 and asked for seats 3A and 3B in the same turn. The planning agent saved those seats straight to session state. It never asked the seat-selection agent whether they were available.

Expected: The planning agent should ask the seat-selection agent to confirm availability and price before saving any seat.

AQuA then grouped the 42 findings into 9 candidate clusters. After that, the verifier rejected 3 false positives:

  • In two cases, the traveler had explicitly asked to take the first return flight or skip straight to booking.
  • In the third case, clustering had wrongly merged unrelated issues from two different sub-agents.

As a result, 6 verified issues remained. The top three were:

Skipped seat checks (15 sessions). Whenever a traveler named a seat with their flight choice, the planning agent saved it directly. It returned HTTP 200 with zero tool errors. However, it never checked whether the seat existed or was open.

Lost dietary preferences (7 sessions). The inspiration agent knew the traveler was vegan. Even so, it called the place agent without passing that detail along. Consequently, the place agent suggested carbonara and Bistecca alla Fiorentina, a Florentine steak.

Fake links (5 sessions). The point-of-interest agent’s instructions required verified images, maps, and place IDs from Google Maps. Yet the agent had no tools assigned. Because of this, it made up placeholder URLs.

Step 3: Find the Root Cause

Next, the team opened the top issue on the dashboard. There, it showed all 15 linked sessions and the findings behind them.

Clicking Investigate then launched the diagnosis agent against Revision 1’s 33-file source snapshot. In the end, it traced the seat bug to line 93 of the planning agent’s prompt file. The instructions only told the agent to call seat selection when showing a seat map. In other words, they didn’t cover users who name a seat on their own.

To fix this, the agent proposed a one-line change. In the same way, it traced the vegan bug to line 23 of the inspiration agent’s prompt file.

Step 4: Fix and Re-Test

In addition to the dashboard, a coding agent can pull the same issue data from the command line. It can then run the diagnosis and apply the fix on a branch. After that, it can replay the failing session locally. That way, it confirms the fix before anyone opens a pull request.

Following this process, the team applied both one-line fixes and deployed Revision 2. Then they replayed the same 32 sessions:

  • Seat-check failures dropped 87%, from 15 sessions to 2 edge cases.
  • Vegan omissions dropped from 7 sessions to 0.
  • Fully passing sessions more than doubled, from 5 of 32 to 13 of 32.
  • The fake-link bug remained in the queue, since nobody had fixed it yet.

Building Findings You Can Trust

Of course, an agent that judges another agent will sometimes be wrong. After all, model judges carry that risk. For that reason, AQuA’s designers set one core rule: an unverified guess must never look like a verified finding.

To that end, they applied the rule in four ways:

  • Clusters stay claims until verified. The verifier checks each cluster against full transcripts first. For instance, in one internal benchmark, it rejected 4 of 24 candidate clusters.
  • Evidence replaces confidence scores. AQuA has no “confidence” field. Instead, every issue links to real session IDs, and every root cause cites file and line ranges. Moreover, the server rejects any citation to a file or line that doesn’t exist.
  • Gaps stay visible. AQuA records rejected clusters, skipped work, and errors on the run. Therefore, it never counts them as clean sessions.
  • Intended behavior stays dismissed. Once you dismiss a finding, future sweeps won’t reopen it.

What It Costs

Cost is another key factor. Fortunately, AQuA caps its work to keep costs steady. Each run verifies up to 50 clusters on up to three transcripts each.

For reference, here are sample costs at standard Gemini pricing:

  • Simple single-agent sweep (96 sessions): about $0.70 total, or roughly $0.007 per session.
  • Travel-concierge multi-agent sweep (32 sessions): about $3.76 total, or roughly $0.12 per session. By comparison, these sessions averaged about 50 spans each.
  • Root-cause diagnosis: runs only on demand. Depending on how many conversations it reads, it costs $0.33 to $2.47 per issue.

Open Problems

Despite this progress, the developers point out several hard problems that remain.

Choosing which sessions to read. Deep reviews cost far more than status checks. For now, random sampling works. Still, catching a silent bug that affects 1% of a key workflow, among 50,000 daily sessions, remains difficult.

Matching expert judgment. Goals and custom metrics certainly help. Nevertheless, getting model judges to agree with domain experts takes real work.

Very long conversations. Full transcripts work well for ten-turn chats. In contrast, coding or research agents may run hundreds of turns. As a result, those need smarter compression to spot where things went wrong.

Reproducing failures. Replaying recorded user turns works when tools behave the same way each time. However, it breaks down when outside data has changed. Similarly, it fails when a later turn depended on an earlier reply.

Where It Could Go Next

Looking ahead, the team is exploring several directions:

  • Combining signals. Teams could pair trace reviews with user feedback, cost spikes, and expert ratings. In turn, they could find the same defects in sessions where users quietly gave up without complaining.
  • Sandboxed test cases. Verified failures could become isolated tests with mocked tools and simulated users.
  • Fleet-wide monitoring. Rather than one agent at a time, a single quality agent could watch dozens of production agents at once.
  • Managed agents. For declarative agents, the search narrows to instructions, tool schemas, and skills. As a result, diagnosis becomes simpler.

The Bottom Line

Ultimately, green dashboards don’t guarantee good conversations. An agent can pass every infrastructure check. Even so, it can still book an unavailable seat or serve steak to a vegan.

AQuA offers one approach to this blind spot. First, it samples real traffic. Then it groups failures and verifies them against evidence. Finally, it links root causes to exact lines of code. Throughout the process, humans stay in control of every fix.

Overall, the travel-concierge results show the potential. Just two one-line prompt fixes cut major failures sharply. On top of that, they more than doubled the number of clean sessions. Google has released AQuA in the open. It now invites teams running agents in production to try it and help shape its future.

More articles

- Sponsor - -spot_img

Latest Marketing News

- Sponsor - -spot_img

MarTech Tool Reviews

- Sponsor - -spot_img