Your data agent can regress without a code change—and AWS’s 40-point drop shows why
AWS’s internal Field Sales system treats data, tools, prompts and models as one releasable unit, then keeps testing after deployment.
AWS has published an unusually concrete account of what can go wrong when an enterprise data agent’s components move out of sync. In one pre-production test, a mismatch between a data change, a tool change and the corresponding prompt update cut the system’s pass rate from 78% to 38%. The infrastructure remained healthy; the answers did not. AWS’s production account is a useful warning for teams that still release prompts, retrieval code and upstream data independently.
The failure unit is larger than the model
The system serves AWS Field Sales through Amazon Quick and routes questions among specialized agents. One of them, the Data Insights Agent, turns natural-language questions into SQL over foundational datasets; other agents cover customer and performance intelligence. AWS says responses are scoped by territory and role-level security.
The published failures were semantic rather than operational. In testing, one answer inflated $410.08 into $410.08 million. Other responses confused revenue labels, invented an annual recurring revenue estimate, or presented derived calculations as sourced facts. Conventional monitoring stayed green because the system returned fluent responses on time.
That distinction matters for NL2SQL teams: uptime, latency and database error rates cannot reveal that an agent selected the right number for the wrong account hierarchy, mislabeled a time period or generated a plausible calculation that the business never approved.
Put evaluation gates at three levels
AWS evaluates the system at the tool, individual-agent and multi-agent levels. Its CI sentinel uses 15 high-risk cases and blocks deployment when quality, safety, latency or cost crosses a threshold. Before production, a broader gate replays validated tool outputs against a frozen dataset and separately runs 200 held-out questions end to end.
The frozen replay is the important design choice. By holding tool responses constant, the team can tell whether a candidate agent’s reasoning improved instead of confusing agent quality with a transient retrieval or service change. The end-to-end set then checks interactions that isolated tests miss, such as two agents returning individually correct revenue figures at different parent-versus-subsidiary scopes.
Keep testing after release
AWS also runs production canaries every 30 minutes because upstream schemas and pipelines can change without an agent deployment. It settled on that cadence after 15-minute checks produced too many false alarms and 60-minute checks delayed detection. An alert pages on-call only after three consecutive windows breach the threshold; a full golden-set run executes daily.
The operational lesson is direct: treat data version, retrieval/tool version, prompt version and model version as a coordinated release manifest. Gate that manifest before deployment, then run semantic canaries against live dependencies afterward. A rollback plan that restores only application code is incomplete if the regression came from a schema refresh or an unmatched prompt.
AWS’s framework is tied to AgentCore, but the control pattern is portable. The essential requirement is not a particular evaluator. It is a traceable test contract that can answer which component changed, which business meaning broke, and whether the agent should keep serving answers.
sources
comments · 0