你的智能体返回了 HTTP 200,保持在延迟预算之内,且没有任何工具调用引发错误。然而,它仍然记录了座位 3A 已确认,却从未询问负责选座的子智能体 3A 是否可用;或者向一位个人资料显示为素食主义者的旅行者推荐了一家佛罗伦萨风味的牛排馆。
前 80% 是相对容易的部分
我们合作的每一个在生产环境中运行智能体的团队都在试图回答同样的三个问题:我的智能体表现如何?它的失败模式是什么,即那些反复出现的故障方式?我该如何提升:改变某些内容,确认它确实有效,并防止其倒退?
让智能体达到前 80% 的水平——即处理你预期的测试用例——在今天可能相对直接且快速。一个评估数据集、一个编码智能体,以及运行、评分、修复和比较的紧密内部循环,通常能在几天内让你实现已知场景的任务成功。然后你上线,质量曲线却趋于平缓或下降。
图 1. 智能体质量在上线前迅速攀升,随后在生产环境中波动。
使剩余 20% 变得更难的原因是,上线后情况不断变化。随着用户发现智能体实际能做什么,使用模式会发生转变,实时流量也不再像初始的评估数据集。同时,底层系统也在发生变化:当你升级模型、更新编排框架或更改工具或技能时,一切仍在运行,健康检查保持绿色(图 2),但对话质量和任务成功率可能会以标准部署管道从未警告过的方式发生偏移。
图 2. 所有基础设施健康检查均保持绿色。故障是无声的,发生在对话内部。
而当会话确实出错时,找出原因意味着分离几个从外部看几乎相同的层次。例如:
模型可能幻觉出了一个参数,或丢弃了三轮之前的某个约束条件。
编排框架可能路由到了错误的子智能体,或在轮次之间丢失了状态。
工具契约可能拒绝了输入,因为其有效值从未在模式中记录。
指令或技能可能仅仅缺少一条没人想到写下来的规则。
这些故障模式可能有不同的责任人和不同的修复方案。原始轨迹记录了接下来发生了什么以及相邻的事件,而非因果关系。区分这些层次需要将失败的轨迹与产生它们的精确代码版本一起阅读。在线评估仪表板会告诉你分数发生了变化,而编码智能体可以在你知道查看何处后检查追踪记录,但在生产规模下,没有人能手动阅读每一段对话。
图 3. AQuA 运作生产环境的外部循环,并将发现的内容反馈回你的内部循环。
在我们的六月文章中,我们完整走过了 travel-concierge 的上线前内部循环。本文介绍外部循环,作为可组合的构建块开源发布,你可以在自己的项目中运行它,适应你的技术栈,并帮助我们在探索团队如何在生产中持续管理智能体质量的过程中塑造它。
AQuA 是什么:一个全天候的质量智能体,在关闭笔记本电脑时监视、聚类并诊断生产故障
AQuA(环境质量智能体)在你的 Google Cloud 项目中与你的智能体并行无监督运行,按照计划、每次部署后或在你关闭笔记本电脑时按需从 Cloud Trace、Cloud Logging 或 BigQuery 中收集生产轨迹。原始会话记录、源代码快照和 BigQuery 表保留在你的项目边界内,AQuA 从不位于请求路径中,也不向你的智能体写回数据。
图 4. AQuA 在 Google Cloud 项目中与你的智能体并行运行,在请求路径之外读取轨迹和部署时的源代码快照。
每次运行都会读取一批近期会话样本,并通过五阶段管道进行处理:
图5. 五阶段扫描流水线将原始的生产会话转化为经过验证的洞察,根因诊断则针对已部署的源快照按需运行。
采样(Sample)。从您的遥测数据(Cloud Trace / Cloud Logging 或 BigQuery)中抽取最多1,000个最近的随机会话样本(设置上限以保持运行成本可预测)。
审查(Review)。结合代理的指令、工具以及可选的 goal.md,根据包含常见故障点的九点清单(流程、工具选择及参数、事实依据、任务完成度及其他项)对每个会话进行评分。当会话未通过时,它会写入结构化的实际结果/预期结果发现。
聚类(Cluster)。将具有相同故障机制的会话发现分组为候选问题簇。
验证(Verify)。一个独立的模型针对最多三个完整转录本检查每个候选簇,并剔除证据不支持的簇。
追踪(Track)。将幸存的簇与 BigQuery 中已跟踪的开放洞察(跨运行跟踪的已验证问题)进行匹配,标记为 NEW(新)、RECURRING( recurring )或在14天内未再出现后自动标记为 RESOLVED(已解决)。
可以将其视为一名初级质量工程师执行首轮检查:阅读对话、过滤噪音,并为轮值人员准备包含证据会话的案件档案。
为了让第二阶段适应您的领域,您需要编写一个纯英文的开发者目标(goal.md),该目标会追加到每次审查提示中;确定性的 Python 自定义指标(eval_config.yaml)会与裁判模型并行运行以追踪通过率趋势。默认情况下,AQuA 使用单遍会话审查裁判(session_review judge),它针对该清单评估对话,每个会话仅需一次模型调用(从而保持定期扫描的经济性,并生成驱动聚类的实际/预期差异)。您还可以选择加入 Gemini 平台的托管轨迹自动评分器(task_success、tool_use_quality、trajectory_quality),它们运行专用的单指标评估器(例如,如果您希望根据标准化的开箱即用量规对会话进行评分,或将指标与离线评估对齐)。
当某个洞察值得调查时,您可以通过仪表板 Chat 或 agents-cli aqua run 触发根因分析。AQuA 会读取失败的轨迹以及部署时捕获的不可变源快照:如果缺陷位于您的代码库中,它会引用 <路径>:<起始行>-<结束行> 并提出基于快照行的编辑建议;如果故障位于您的代码之外(上游依赖、交接环节或检索到的负载),它会将失败归因于轨迹中的该步骤,而不提出代码差异。它绝不会自行应用编辑或打开拉取请求。
它存在于您现有的循环之间:离线评估根据已知测试用例对候选构建进行评分,在线评估监控生产环境中的通过率趋势,编码代理或专用优化器则编辑提示和代码。AQuA 将原始的生产流量转化为经过诊断、锚定代码的洞察以及归档的失败转录本,从而为您的内部循环提供种子数据。
在 travel-concierge 上执行多代理扫描
让我们以 travel-concierge(google/adk-recipes)为例进行演示,该应用通过 memorize(key, value)(travel_concierge/tools/memory.py)将工作行程存储在会话状态中,并在子代理(inspiration_agent、place_agent、poi_agent、planning_agent、flight_search_agent、flight_seat_selection_agent、booking_agent 以及 pre_trip / in_trip / post_trip)之间路由旅行者。
将 AQuA 附加到 travel-concierge 项目需要三个 agents-cli 命令:
agents-cli extension add "${AQUA_CHECKOUT}"
agents-cli infra single-project --project="${GOOGLE_CLOUD_PROJECT}" --apply
agents-cli deploy --project="${GOOGLE_CLOUD_PROJECT}" --region us-east1
除了 AQuA 的运行器、BigQuery 数据集和 Cloud Run 仪表板(位于身份感知代理之后)外,agents-cli deploy 还会将 travel-concierge 的源树不可变快照写入 Cloud Storage,并以部署修订版本(Revision 1)作为键。
在仪表板的“配置”页面中,我们保存了一个开发者目标(goal.md),以引导审查聚焦于高层产品不变量,并抑制风格性噪音(同时仍要求每一项发现都必须引用具体的交互轮次,其中智能体或子智能体违反了其指令或工具状态):
目标:帮助旅客从行程灵感过渡到具体的行程规划,并在我们的子智能体之间实现确认的预订。每一笔确认的航班、酒店、座位和推荐都应以工具结果和旅客档案为依据。
需要确保覆盖的故障模式:
- 对话中途的变更(这是发布前测试中的一个薄弱环节):如果用户在初始计划后更新了目的地、日期或航班/酒店选择,请确保后续的子智能体工具调用和状态更新反映这一变更。
- 在 inspiration_agent、planning_agent 和 booking_agent 之间交接或委派时丢失上下文(例如旅客档案偏好或之前的选择)。
忽略:语气、问候语、闲聊,或用户浏览选项但未进行预订的会话。
纯文本
如果您还希望在 eval_config.yaml 中提供一个确定性的 Python 评分标准以追踪通过率随时间的变化,您可以使用 agents-cli aqua metrics publish 命令将其与扫描(sweep)一起发布。
在涉及 32 个会话的多智能体扫描中(重放四个脚本化的旅客旅程各 32 次,在 travel_concierge 及其子智能体之间产生了 1,583 个 OpenTelemetry span),有 5 个会话顺利通过,其余 27 个会话产生了 42 项结构化发现,每项发现均按 span 范围限定,指向特定子智能体的孤立指令和工具声明。以下是关于 planning_agent 的一项发现:
实际结果:当用户在同一个交互轮次中选择去程航班 UA204 并要求座位 3A 和 3B 时,planning_agent 直接将这些座位号保存到会话状态中,而未调用 flight_seat_selection_agent 来检查 3A 和 3B 是否可用。
预期结果:planning_agent 应在将去程或回程座位号保存到会话状态之前,调用 flight_seat_selection_agent 来验证座位可用性和价格。
聚类算法将这 42 项发现归为 9 个候选集群。验证器(Gemini 3.7 Flash)针对每个集群检查最多三个完整转录文本以及每个子智能体的定义,并拒绝了 3 个假阳性集群:其中两个案例中,旅客明确要求乘坐第一个回程航班或直接进入预订环节;在第三个案例中,聚类算法将来自两个不同子智能体(flight_search_agent 和 inspiration_agent)的不相关提示-工具不匹配合并在了一起。这留下了 6 个已验证的问题,主要包括:
当用户主动提供座位时绕过座位可用性检查(15 个会话,planning_agent):当旅客在做出航班选择的同时(或在旅途中途切换目的地后立即)指定座位时,planning_agent 直接将座位写入会话状态(返回 HTTP 200 且无任何工具错误),而未调用 flight_seat_selection_agent 来检查该座位是否存在或可用。
在子智能体边界间丢失饮食限制(7 个会话,inspiration_agent → place_agent):inspiration agent 的提示词中包含了旅客档案(food_preference: vegan),但 place_agent 被封装为一个孤立的工具,其提示词从未接收过该档案。当 inspiration_agent 向 place_agent 询问美食旅行建议但未在请求中传递“vegan”时,place_agent 推荐了意大利面 Carbonara 和佛罗伦萨牛排 Bistecca alla Fiorentina 。
poi_agent 中的提示词与工具集矛盾(5 个会话,poi_agent):该兴趣点子智能体的提示词要求提供来自 Google Maps Grounding Lite 的已验证图片、地图和地点 ID 字段,但该智能体被声明为空工具列表(tools=[]),因此它生成了占位符 https://example.com/... URL。
图 6. 按受影响会话数排名的旅行管家扫描已验证洞察。
打开仪表板中的首要洞察(Insight)会显示该集群的完整细分信息:匹配会话的数量(15 条追踪记录)、验证摘要,以及带有触发该洞察的确切发现的 15 个链接会话追踪记录:
图 7. 仪表板中的洞察详细信息视图,显示了失败摘要和 15 个链接会话追踪记录。
从洞察卡片点击“调查”(Investigate)按钮,会针对 Revision 1 的 33 个文件源代码快照启动根因诊断代理(Gemini 3.8 Flash)。通过将 15 条失败的追踪记录与代码库目录树进行交叉引用,该代理将 bug 定位到 travel_concierge/sub_agents/planning/prompt.py 的第 93 行:航班搜索指令仅指示 planning_agent 在为用户展示座位地图时调用 flight_seat_selection_agent,却遗漏了用户直接提供座位号的情况。它在聊天中提出了基于代码行的修复建议(同样地,将素食资料交接 bug 追踪到 travel_concierge/sub_agents/inspiration/prompt.py 的第 23 行):
图 8. 仪表板聊天中的根因诊断,将提议的指令修复锚定到已部署的源代码快照。
该洞察负载(包括其锚定的 edits[] 和 occurrences[].rubrics[].trace)可通过 agents-cli aqua get-insight 获取。编码代理(使用 agents-cli-aqua 和 google-agents-cli-eval 技能)可以无头触发诊断、在分支上应用编辑、将失败会话的用户输入提取到本地重放文件中,并在打开拉取请求之前验证修复效果:
# 1. 获取影响 >= 10 个会话且尚无根因的新洞察
agents-cli aqua list-insights --status NEW --root-cause false \
| jq -r '.insights | sort_by(-.trace_count) | .[] | select(.trace_count >= 10) | "\(.insight_id) \(.label)"'
# 2. 无头触发根因分析并获取锚定编辑 + 证据追踪记录
agents-cli aqua run 'Diagnose insight 220d9209e27d4e16a73b4ad4741caa81. What is the root cause, and how would you fix it?'
agents-cli aqua get-insight 220d9209e27d4e16a73b4ad4741caa81 > insight.json
# 3. 从 insight.json 中附加的追踪记录提取用户轮次,用于本地重放(或添加到评估集)
jq '{state: {}, queries: [.occurrences[0].rubrics[0].trace[] | select(.role == "user") | .content]}' \
insight.json > ./b4b38471-inputs.json
adk run --replay ./b4b38471-inputs.json travel_concierge
应用两处单行提示修复(planning/prompt.py:93 和 inspiration/prompt.py:23)并部署 Revision 2 后,在相同的开发者目标下对 Revision 2 重放相同的 32 个会话,结果显示:
座位选择绕过率下降 87%,从 15 个会话减少到 2 个边缘情况会话。
素食资料遗漏从 7 个会话减少到 0。
完整会话通过率翻倍以上,从 5/32 增加到 13/32。
未受影响的 5 个会话的 poi_agent 缺陷(tools=[])仍保留在队列中跟踪。
值得你信任并采取行动的发现
诊断你代理的代理有时也会出错。这是将模型用作裁判所固有的特性。在设计 AQuA 时,核心工程要求是确保未经验证的假设看起来绝不会与已验证的发现相同:
集群只是声明,直到针对完整转录记录进行验证。对每个集群抽查最多三个完整转录记录,可在失败模式进入你的队列之前验证其真实性(在包含 87 条追踪记录的内部基准测试中,验证器拒绝了 24 个候选集群中的 4 个),而集群的追踪记录数量为你提供的大致优先级排序,而非验证每个成员会话。
洞察即其引用,而非自我报告的置信度分数。该模式没有置信度字段:每个出现次数都链接到 Cloud Trace 中的会话 ID,且每个根因都引用了 <路径>:<起始>-<结束> 范围,服务器会针对该修订版的快照对其进行验证。任何对不存在文件或行的引用都会被拒绝。
跳过或失败的工作会显示在运行记录中。被拒绝的集群、超过50个集群验证上限的集群、评分标准错误以及空或未捕获的追踪窗口,会在运行中明确记录,而不是计为有效会话。
按设计的行为可以被永久忽略。一旦你
Your agent returns HTTP 200, stays inside its latency budget, and no tool call raises an error. Yet it still records seat 3A as confirmed without ever asking the seat-selection sub-agent whether 3A is free, or recommends a Florentine steakhouse to a traveler whose profile says vegan.
The first 80% is the relatively easy part
Every team we work with that runs an agent in production is trying to answer the same three questions: How is my agent doing? What are its loss patterns, the ways it fails that keep coming back? And how do I climb: change something, know it helped, and keep it from sliding back?
Getting an agent to the first 80%, where it handles the test cases you anticipated, can be relatively straightforward and fast today. An evaluation dataset, a coding agent, and a tight inner loop of run, grade, fix, and compare usually get you to task success on known scenarios in days. Then you launch, and the quality curve flattens or degrades.
Figure 1. Agent quality climbs quickly before launch, then fluctuates in production.
What makes the remaining 20% harder is that the ground moves after launch. Usage shifts as users discover what the agent can actually do, and live traffic stops resembling your initial eval set. At the same time, the system underneath also changes: when you upgrade a model, update your harness, or change a tool or skill, everything still runs and health checks stay green (Figure 2), but conversation quality and task success may shift in ways a standard deploy pipeline never warns you about.
Figure 2. Every infrastructure health check stays green. The failure is silent and happens inside the conversation.
And when a session does go wrong, working out why means separating several layers that can look nearly identical from the outside. For example:
The model may have hallucinated an argument or dropped a constraint from three turns earlier.
The orchestration harness may have routed to the wrong sub-agent or lost state between turns.
A tool contract may have rejected an input because its valid values were never documented in the schema.
The instructions or skills may simply be missing a rule nobody thought to write down.
Those failure modes can have different owners and different fixes. A raw trajectory records what happened next to what, not what caused what. Telling those layers apart requires reading the failing trajectories alongside the exact code revision that produced them. Online evaluation dashboards tell you that a score moved, and a coding agent can inspect a trace once you know where to look, but at production volume nobody can read every conversation by hand.
Figure 3. AQuA works the production outer loop and feeds what it finds back into your inner loop.
In our June post , we walked that pre-launch inner loop end to end on travel-concierge. This post covers the outer loop, released in the open as composable building blocks you can run in your own project, adapt to your stack, and help us shape as we explore how teams run continuous agent quality in production.
What AQuA is: a 24/7 quality agent that watches, clusters, and diagnoses production failures while your laptop is closed
AQuA (Ambient Quality Agent) runs unattended beside your agent in your Google Cloud project, sweeping production trajectories from Cloud Trace, Cloud Logging, or BigQuery on a schedule, after each deployment, or on demand while your laptop is closed. Raw session transcripts, source snapshots, and BigQuery tables stay inside your project boundary, and AQuA never sits in the request path or writes back to your agent.
Figure 4. AQuA runs beside your agent in your Google Cloud project, reading trajectories and deploy-time source snapshots outside the request path.
Each run reads a sample of recent sessions and puts it through a five-stage pipeline:
Figure 5. The five-stage sweep pipeline turns raw production sessions into verified insights, with root-cause diagnosis running on demand against the deployed source snapshot.
Sample. Pulls a random sample of up to 1,000 recent sessions (capped to keep run cost predictable) from your telemetry (Cloud Trace / Cloud Logging or BigQuery).
Review. Grades each session against a nine-point checklist of common breakdowns (procedure, tool selection and arguments, grounding, task completion, and others) with the agent's instructions, tools, and optional goal.md in view. When a session fails, it writes a structured actual / expected finding.
Cluster. Groups session findings that share the same failure mechanism into candidate issue clusters.
Verify. A separate model checks each candidate cluster against up to three full transcripts and discards clusters the evidence does not support.
Track. Matches surviving clusters against open insights (verified issues tracked across runs) in BigQuery as NEW , RECURRING , or auto- RESOLVED after 14 days unseen.
Think of it as a junior quality engineer doing the first pass : reading conversations, filtering out noise, and preparing the case file with evidence sessions for whoever is on rotation.
To steer Stage 2 toward your domain, you write a plain-English developer goal ( goal.md ) that is appended to every review prompt; deterministic Python custom metrics (eval_config.yaml) run alongside the judge to trend pass rates. By default, AQuA uses the single-pass session_review judge, which evaluates the conversation against that checklist in one model call per session (keeping scheduled sweeps economical and producing the actual / expected diffs that drive clustering). You can also opt in to the Gemini platform's managed trajectory AutoRaters ( task_success , tool_use_quality , trajectory_quality ), which run dedicated per-metric evaluators (for example, if you want to score sessions against standardized out-of-the-box rubrics or align metrics with offline evaluations).
When an insight is worth investigating, you trigger root-cause analysis from the dashboard Chat or agents-cli aqua run . AQuA reads the failing trajectories alongside the immutable source snapshot captured at deploy time: when the defect is in your repo, it cites
It sits between the loops you already have: offline evals grade a candidate build against known test cases, online evals monitor pass-rate trends in production, and coding agents or specialized optimizers edit prompts and code. AQuA turns raw production traffic into diagnosed, code-anchored insights and archived failure transcripts that seed your inner loop.
Walking a multi-agent sweep on travel-concierge
Let's walk a run on travel-concierge ( google/adk-recipes ), which routes a traveler across sub-agents ( inspiration_agent , place_agent , poi_agent, planning_agent , flight_search_agent , flight_seat_selection_agent , booking_agent , and pre_trip / in_trip / post_trip ) and stores the working trip in session state via memorize(key, value) ( travel_concierge/tools/memory.py ).
Attaching AQuA to the travel-concierge project takes three agents-cli commands:
agents-cli extension add "${AQUA_CHECKOUT}"
agents-cli infra single-project --project="${GOOGLE_CLOUD_PROJECT}" --apply
agents-cli deploy --project="${GOOGLE_CLOUD_PROJECT}" --region us-east1
Alongside AQuA's runner, BigQuery dataset, and Cloud Run dashboard (behind Identity-Aware Proxy), agents-cli deploy writes an immutable snapshot of travel-concierge 's source tree to Cloud Storage keyed by the deployment revision ( Revision 1 ).
On the dashboard's Configuration page, we save a developer goal ( goal.md ) to steer the review toward high-level product invariants and suppress stylistic noise (while still requiring every finding to cite a concrete turn where an agent or sub-agent violated its instructions or tool state):
Goal: Help travelers move from trip inspiration to a concrete itinerary and confirmed bookings across our sub-agents, with every confirmed flight, hotel, seat, and recommendation grounded in tool results and the traveler's profile.
Failure modes to make sure we cover:
- Mid-conversation changes (a weak spot in pre-launch testing): if a user updates destination, dates, or flight/hotel choices after an initial plan, make sure subsequent sub-agent tool calls and state updates reflect the change.
- Dropped context when handing off or delegating across inspiration_agent, planning_agent, and booking_agent (such as traveler profile preferences or prior selections).
Ignore: tone, greetings, small talk, or sessions where the user browses options and leaves without booking.
Plain text
If you also want a deterministic Python rubric in eval_config.yaml to trend pass rates over time, you can publish it alongside the sweep with agents-cli aqua metrics publish .
Across a 32-session multi-agent sweep (32 replays of four scripted traveler journeys, producing 1,583 OpenTelemetry spans across travel_concierge and its sub-agents), 5 sessions pass cleanly and 27 produce 42 structured findings, each scoped by span to the specific sub-agent's isolated instructions and tool declarations. Here is one finding on planning_agent:
actual: When the user selected outbound flight UA204 and requested seats 3A and 3B in the same turn, planning_agent saved those seat numbers directly to session state without calling flight_seat_selection_agent to check whether 3A and 3B were available.
expected: planning_agent should call flight_seat_selection_agent to verify seat availability and pricing before saving outbound or return seat numbers to session state.
Clustering groups those 42 findings into 9 candidate clusters. The verifier (Gemini 3.7 Flash) checks each cluster against up to three full transcripts and each sub-agent's definition, and rejects 3 false-positive clusters : in two, the traveler had explicitly asked to take the first return flight or jump straight to booking; in the third, clustering had merged unrelated prompt-tool mismatches from two different sub-agents (flight_search_agent and inspiration_agent). That leaves 6 verified issues , led by:
Bypassing seat availability checks when a user volunteers a seat (15 sessions, planning_agent): When a traveler names a seat alongside their flight choice (or right after switching destinations mid-trip), planning_agent writes the seat straight into session state (returning HTTP 200 with zero tool errors) without calling flight_seat_selection_agent to check whether the seat exists or is open.
Dropping dietary constraints across sub-agent boundaries (7 sessions, inspiration_agent → place_agent): The inspiration agent's prompt includes the traveler's profile (food_preference: vegan), but place_agent is wrapped as an isolated tool whose prompt never receives that profile. When inspiration_agent asks place_agent for culinary trip ideas without passing "vegan" in the request, place_agent recommends Carbonara and Bistecca alla Fiorentina (steak) .
Prompt-to-toolset contradiction in poi_agent (5 sessions, poi_agent): The point-of-interest sub-agent's prompt requires verified image, map, and place ID fields from Google Maps Grounding Lite, but the agent is declared with an empty tool list ( tools=[] ), so it fabricates placeholder https://example.com/... URLs.
Figure 6. Verified insights from the travel-concierge sweep, ranked by affected sessions.
Opening the top insight in the dashboard surfaces the full breakdown for the cluster: the number of matching sessions (15 traces), verification summary, and the 15 linked session traces with the exact findings that triggered it:
Figure 7. Insight detail view in the dashboard, showing the failure summary and the 15 linked session traces.
Clicking Investigate from the insight card launches the root-cause diagnosis agent (Gemini 3.8 Flash) against Revision 1's 33-file source snapshot. Cross-referencing the 15 failing traces against the repository tree, the agent traces the bug to line 93 of travel_concierge/sub_agents/planning/prompt.py : the flight-search instructions only tell planning_agent to call flight_seat_selection_agent when presenting a seat map for the user to choose from, leaving out the case where a user volunteers a seat number directly. It proposes a line-anchored fix in the chat (and similarly traces the vegan profile handoff bug to line 23 of travel_concierge/sub_agents/inspiration/prompt.py ):
Figure 8. Root-cause diagnosis in the dashboard chat, anchoring a proposed instruction fix to the deployed source snapshot.
That same insight payload, including its anchored edits[] and occurrences[].rubrics[].trace , is available via agents-cli aqua get-insight . A coding agent (using the agents-cli-aqua and google-agents-cli-eval skills) can trigger diagnosis headlessly, apply the edit on a branch, extract the failing session's user inputs into a local replay file, and verify the fix before opening a pull request:
agents-cli aqua list-insights --status NEW --root-cause false \
| jq -r '.insights | sort_by(-.trace_count) | .[] | select(.trace_count >= 10) | "(.insight_id) (.label)"'
agents-cli aqua run 'Diagnose insight 220d9209e27d4e16a73b4ad4741caa81. What is the root cause, and how would you fix it?'
agents-cli aqua get-insight 220d9209e27d4e16a73b4ad4741caa81 > insight.json
jq '{state: {}, queries: [.occurrences[0].rubrics[0].trace[] | select(.role == "user") | .content]}' \
insight.json > ./b4b38471-inputs.json
adk run --replay ./b4b38471-inputs.json travel_concierge
Plain text
After applying both one-line prompt fixes ( planning/prompt.py:93 and inspiration/prompt.py:23 ) and deploying Revision 2 , replaying the same 32 sessions against it under the same developer goal shows:
Seat-selection bypass drops 87% , from 15 sessions to 2 edge-case sessions.
Vegan profile omissions drop from 7 sessions to 0.
Full-session pass count more than doubles , from 5/32 to 13/32.
The untouched 5-session poi_agent defect ( tools=[] ) remains tracked in the queue.
Findings you can trust enough to act on
An agent that diagnoses your agent will sometimes be wrong. That is inherent to using models as judges. When we designed AQuA, the core engineering requirement was making sure an unverified hypothesis never looks the same as a verified finding:
Clusters are claims until verified against full transcripts. Spot-checking up to three full transcripts per cluster verifies that the failure pattern is real before it enters your queue (on an 87-trace internal benchmark, the verifier rejected 4 of 24 candidate clusters), while the cluster's trace count gives you a rough priority ordering rather than verifying every member session.
An insight is its citations, not a self-reported confidence score. The schema has no confidence field: every occurrence links to its session IDs in Cloud Trace, and every root cause cites
Skipped or failed work shows up on the run record. Rejected clusters, clusters past the 50-cluster verification cap, rubric errors, and empty or uncaptured trace windows are recorded explicitly on the run rather than counted as clean sessions.
By-design behavior can be dismissed permanently. Once you cl
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-10-12 | 8.4 | 20 | 入选 |
| 2026-10-11 | 8.4 | 28 | 未入选 |
| 2026-10-10 | 8.4 | 38 | 未入选 |
| 2026-10-09 | 8.4 | 41 | 未入选 |