Google 开源 Ambient Quality Agent(AQuA),用于诊断生产环境中的 AI 智能体故障
原题Google Open Sources Ambient Quality Agent (AQuA) to Diagnose Production AI Agent Failures
推荐理由AQuA 用追踪、聚类和部署源码定位智能体静默质量退化,验证器淘汰无支撑问题;诊断机制有用,但二手报道与较早官方材料使其暂列候补。
读前速览
Google 开源了 Ambient Quality Agent(AQuA),这是一款诊断工具,可分析生产环境中的 AI 智能体会话,识别质量退化,并追溯至已部署的源代码以定位根因。
AQuA 能诊断基础设施监控未能发现的生产环境 AI 智能体隐性质量退化。
传统监控侧重可用性和性能指标,难以发现智能体忽略用户偏好、跳过必要工具调用,却仍返回成功响应等细微故障。
该工具通过五阶段分析,将发现与已部署的源代码进行比对:采样、审查、聚类、验证和跟踪。
AQuA 将失败会话与不可变的源代码快照进行比对,找出相关代码行和文件范围,从而精准归因根因,而不是只报告笼统的错误。
聚类验证会检查完整会话记录以过滤误报,但无法确认每个会话都出现了相同故障。
在测试中,审查会话记录后,AQuA 将 42 项发现筛选为 6 个已验证问题,体现了人在环验证对准确性的重要性。
AQuA 强调通过引用提供洞见,而非使用置信度评分,以便透明地分析根因。
发现必须引用已部署快照中的有效代码行,并链接到相关追踪记录,以确保诊断结论可复现、可审计。
完整摘要
Google 已开源 Ambient Quality Agent(AQuA),这是一款在 Google Cloud 中与 AI 智能体并行运行的诊断工具,可分析生产环境会话,识别传统监控无法发现的质量退化。AQuA 通过采样、审查、聚类、验证和跟踪五个阶段处理会话,使用来自 Cloud Trace、Cloud Logging 或 BigQuery 的遥测数据。它将失败会话与不可变的源代码快照进行对比,精准定位根因,并指出具体的文件和代码行范围。在一项多智能体旅行应用测试中,AQuA 在 9 个类别中识别出 42 项发现;修改提示词后,座位选择被跳过的会话从 15 个降至 2 个,饮食偏好被遗漏的会话从 7 个降至 0 个。该工具将发现标记为 NEW、RECURRING 或 RESOLVED,并提供可将问题关联到相关追踪记录的引用,而非依赖置信度评分。
Google 已开源 AQuA(Ambient Quality Agent),这是一套参考实现,可分析生产环境中的 AI 智能体会话、验证反复出现的失败模式,并结合已部署的源代码版本调查根本原因。该工具旨在发现传统基础设施监控可能漏掉的隐性质量退化,例如智能体忽视用户偏好,或跳过必要的工具调用,却仍返回成功响应。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 与 Google Cloud 中的代理并行运行,不在其请求路径上,而是从 Cloud Trace、Cloud Logging 或 BigQuery 读取遥测数据。每次运行最多采样 1,000 个近期会话,并分五个阶段进行处理:采样、审查、聚类归纳发现、验证候选簇以及跟踪问题。开发者可以通过 goal.md 文件配置特定领域的质量标准,并添加确定性的自定义指标。AQuA 可以按计划运行、在部署后运行,也可以按需运行。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.
为进行根因分析,AQuA 会将失败会话与部署时捕获的不可变源代码快照进行比较。其诊断代理会识别相关代码或指令,引用文件和行号范围,并在问题根源位于代码仓库中时提出修改建议。它也可以将失败归因于外部依赖项、工具交接或检索到的数据。AQuA 不会自动应用修复或创建拉取请求。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.
/filters:no_upscale()/news/2026/11/google-ambient-agent-prod/en/resources/1Screenshot 2026-10-24 at 7.49.44 PM-1792897592075.png)
AQuA 侧车架构(来源:Google Developer Blog 文章)AQuA sidecar architecture (Source: Google Developer Blog Post)
Google 评估了一个多智能体旅行应用中的 32 个会话,发现 42 个问题,并将其归为 9 个候选簇。验证器检查了每个候选簇最多 3 份完整对话记录后,驳回了 3 个缺乏依据的候选簇,最终确认了 6 个问题。其中两个问题分别涉及绕过座位可用性检查,以及在委派过程中丢失旅客的纯素饮食偏好。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.
开发人员修改提示词并重放会话后,选座绕过问题从 15 个会话降至 2 个,饮食偏好遗漏从 7 个降至 0 个,通过所有检查的会话则从 5 个增至 13 个。这些结果来自受控重放,而非生产流量。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.
发现项会链接到支撑性跟踪记录,提出的根因必须引用已部署快照中的有效行。AQuA 将发现项标记为 NEW、RECURRING,或在连续 14 天未被观察到后自动标记为 RESOLVED。采样可能会漏掉罕见故障,重放也可能无法复现外部状态。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.
针对这则公告,Redcore 工程经理 Dmytro Aprelenko 在 LinkedIn 上写道,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 会验证源代码引用,并将发现的问题关联到支撑性追踪记录。聚类验证可过滤误报,但无法确认每个会话都出现了相同故障。Google 的 Agent Platform 评估服务支持回归测试和生产环境质量监控,而 Arize Phoenix 提供开源追踪与评估功能。AQuA 专注于归类生产环境中的故障,并将经过验证的发现关联到已部署的源代码。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指出,采样限制和外部状态无法完整复现是制约因素。其开源实现帮助团队将生产环境中的智能体诊断整合到开发和评估工作流中。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.