How AWS tests whether its DevOps Agent can explain an incident

In tests of AWS DevOps Agent, the agent correctly diagnosed Lambda throttling in all three attempts. When an Amazon SQS permission was removed, it passed only once in three tries. Both scenarios counted as successes by one measure: could the agent solve the problem at least once? For engineers relying on its diagnosis during an incident, the difference is whether it can do so consistently.

The team behind AWS DevOps Agent, which Matt Garman announced at re:Invent 2025, described how it tests that distinction. A lead agent acts as incident commander: it assesses symptoms, plans an investigation and delegates tasks such as examining a large set of logs. A specialist agent gets its own context window and returns a condensed account. The team evaluates not just whether the lead agent names the right cause, but whether the evidence it presents supports that conclusion.

How AWS tests whether its DevOps Agent can explain an incident (1)

What counts as a correct diagnosis

In one test, a deployment removes permission to write to an S3 bucket deep in an application’s dependency chain. An alarm triggers an investigation. To pass, the agent must identify the faulty deployment, trace the affected resources and show evidence of the missing write permission. Simply naming S3 as the problem is not enough.

Because two valid explanations can use different wording, the team uses a language model to compare the agent’s report with the expected findings rather than checking for keywords. The model explains its judgment and assigns a pass or fail. Across repeated runs, the team records both whether the agent passed at least once and the fraction of attempts that passed. It also tracks latency and token use, so it can test whether a faster or less expensive investigation still meets the same standard of evidence.

How AWS tests whether its DevOps Agent can explain an incident (2)

Finding the step that went wrong

An end-to-end test can take 20 minutes to deploy and another 10–20 minutes to investigate the fault. To shorten that cycle, the team keeps test environments running and reuses each application architecture for multiple faults. Developers can run a specialist agent locally with a prompt from a previous evaluation, or resume a failed investigation from a saved conversation checkpoint rather than repeating every step.

The team maps investigations to OpenTelemetry traces, which developers can inspect in Jaeger. Reviewing individual exchanges and tool calls exposes problems that a final score cannot explain. In one trace review, for example, the team identified a field called @ptr in retrieved CloudWatch log records and estimated that omitting it could halve the token use for those records.

How AWS tests whether its DevOps Agent can explain an incident (3)

Checking that a fix holds up

Before changing a prompt or tool, the team recommends pinning the current Git commit and choosing the metrics, scenarios and number of runs that will determine whether to keep the change. In one specialist-agent evaluation, it ran the same scenario seven times to establish a baseline. The first run surfaced four of six relevant observations and one irrelevant observation; the seventh found five relevant observations and no irrelevant ones. Those runs used the same code. Without that baseline, a developer could mistake ordinary variation for an improvement.

The team also reviews investigations from early adopters inside Amazon. On a rotating basis, engineers inspect the reports and supporting observations, mark inaccuracies and locate the steps where investigations went wrong. Those reviews serve a different purpose from rerunning a known fault: they reveal incidents the team did not think to test in the first place. With help from the teams that experienced them, engineers can turn those incidents into repeatable evaluations.