Replay an AI investigation, not your assumptions
AI-assisted development does not stop when a coding agent opens a pull request. Software teams also use agents to investigate failing services, explain regressions and suggest repairs. The difficult question is how to evaluate a new diagnostic skill before relying on it during the next incident. A convincing explanation is not enough, and a faster answer can simply be a faster mistake. Humans must retain control of the evidence, the evaluation criteria and any production intervention.
AWS’s November 2026 DevOps Agent roundup provides a timely example. It describes investigation replays and automatic quality reviews alongside other operational capabilities. The useful idea is to rerun an investigation after changing the agent’s configuration and compare its behavior with the original. But the documentation contains a crucial limitation: replays query the live environment, not a frozen reconstruction of the incident. This article separates those documented capabilities from a proposed engineering workflow; it does not report a hands-on benchmark or claim that a replay proves production safety.
What AWS actually lets teams compare
According to the replay documentation, an operator opens a completed investigation, goes to Review & replay and starts a replay, optionally recording what changed. The comparison can show root cause, grader score, time to root cause, tools used, skills used and the investigation timeline. Multiple completed runs of the same investigation can be compared, although only one replay of that investigation may run at a time.
AWS states that replays do not alter the original investigation and take no mutative actions. That is a useful product boundary, not a general license to connect unrestricted diagnostic tooling everywhere. Teams still need to understand which integrations are configured and what sensitive information their agent can read. The practical opportunity is narrower and more valuable than autonomous incident resolution: observe whether a revised instruction or skill leads to a better-supported investigation. Keep the comparison attached to the configuration change so future reviewers can see why the team accepted it.
Live data changes the meaning of replay
Imagine a service that failed because an unexpected configuration value exhausted a connection pool. A week later, the configuration is corrected, short-lived containers are gone and some logs have expired. A replay now reaches a different conclusion. That difference does not establish that the revised agent is worse. Conversely, an apparently improved diagnosis may benefit from a postmortem or ticket resolution that did not exist during the incident. Both outcomes confound configuration quality with evidence availability.
AWS explicitly warns that original incident data may no longer be available because replays query the live environment. Treat this as an evaluation constraint, not a footnote. Record the incident window, the replay time, relevant retention limits and known environment changes. Ask whether each decisive observation was available to both runs. If comparability cannot be established, label the result exploratory. A team can still learn from the new investigation without presenting its elapsed time or grader score as a controlled before-and-after experiment.
Build a compact evidence package first
Before changing agent instructions, assemble a small incident evidence package under your normal access and retention policies. Include the affected commit or release identifier, deployment timestamps, relevant configuration versions, sanitized log excerpts and the queries used to retrieve them. Preserve the final human assessment separately from the evidence that was available during diagnosis. This is a recommended team practice, not a claim that AWS replay automatically creates or consumes a complete historical snapshot.
Keep the package useful rather than exhaustive. A directory full of unfiltered production logs can leak customer data and make evaluation less reproducible. Document redactions and missing intervals, and restrict access to the people and systems that need it. Where your evaluation harness supports controlled fixtures, use them to complement live replays. Do not silently substitute synthetic observations for unavailable real telemetry. The point is to make uncertainty visible: a reviewer should know which claims rest on preserved facts, current observations or assumptions that cannot now be checked.
Change one diagnostic behavior at a time
A common evaluation mistake is to replace instructions, add integrations and broaden permissions in a single update. If the replay improves, nobody knows which change helped. Start with a specific hypothesis: perhaps the agent should check deployment timing before proposing capacity changes, or distinguish a database timeout from an application retry storm. Version that instruction and state what observable behavior would count as an improvement.
Record the original configuration, the proposed revision and any known model or integration changes. If a provider does not expose a stable model version, document that limitation rather than implying full reproducibility. Use the replay note to explain the intended difference, not merely to write “better prompt.” Avoid giving the evaluation run access to the expected answer when the question is diagnostic discovery. A human maintainer should approve the candidate configuration before broader use, especially if it changes data access or the set of available tools. Better wording and greater authority are different changes.
A quality review is not an independent experiment
AWS distinguishes a Review from a Replay. A Review reads the investigation record, including the reported problem, collected evidence and conclusion; it does not rerun or alter the investigation. The default dimensions cover scope alignment, evidence grounding, completeness, environment impact and accuracy. Results include an overall helpful or not helpful verdict and a per-dimension pass, fail or not applicable assessment. This structure is useful for organizing human attention.
It is not a substitute for checking whether the underlying evidence is true. In particular, AWS defines accuracy against the root cause recorded in a linked ticket or incident. If that record contains no root cause, accuracy can be not applicable. If the recorded explanation is wrong, agreement with it cannot repair the ground truth. Treat the grader as another analytical component with limitations. Ask an engineer to inspect decisive citations, contradictions and unresolved alternatives, especially before accepting a new operational recommendation or changing the team’s diagnostic playbook.
Do not turn sampling into a safety claim
Automatic Reviews can help teams notice quality drift without manually launching an assessment after every investigation. However, the sources are not perfectly aligned on configuration limits. The November roundup describes a wider sampling range, while the review guide specifies a preview maximum of ten percent. Rather than promising a universal setting, check the current documentation and the actual configuration available in your Agent Space before planning coverage.
More importantly, a sampled quality review is not a release gate for every operational action. Some investigations will not be sampled, and some criteria may be unassessable. Define separate rules for cases that always require a person: potential customer-data exposure, uncertain authorization boundaries, persistent-state changes and diagnoses that would trigger a risky rollback. Automated assessments should prioritize attention and reveal recurring weaknesses. They should not create a misleading impression that every agent conclusion has been independently validated or that unsampled incidents are necessarily acceptable. The coverage policy belongs to the team, not to the grading model.
Use a regression example that can disprove the diagnosis
Consider a hypothetical API latency regression after a deployment. The original agent blames database saturation; an engineer later discovers that the new client retries requests without appropriate backoff. A revised skill is intended to inspect retry behavior before recommending a larger database. In a useful replay, the agent should identify relevant request patterns, connect them to the deployed change and explain why saturation might be an effect rather than the initiating cause.
The pass condition should not be merely mentioning retries. Require evidence that could distinguish the competing explanations: deployment timing, request amplification and code paths responsible for repeated calls. If the necessary logs have expired, the result should explicitly remain inconclusive. The human reviewer then decides whether preserved evidence supports a targeted code investigation. This example is illustrative, not an AWS case study. Its lesson applies to coding agents generally: evaluate the reasoning path and the willingness to stop, not just whether the final paragraph resembles the answer you hoped to receive.
Keep diagnosis, repair and deployment separate
A replay can improve confidence in an investigative instruction without authorizing the corresponding repair. Keep three decisions distinct: whether the diagnosis is supported, whether the proposed patch is correct and whether deploying that patch is acceptable now. An agent may help gather evidence for each decision, but agreement at one stage must not silently grant authority at the next.
For the retry example, let the coding agent draft a small change on a branch and explain its assumptions. An engineer defines acceptable retry limits, timeout behavior and compatibility requirements. Tests should exercise the failure path, not only the normal request flow, and reviewers should inspect whether the patch introduces duplicate writes or hides legitimate errors. Deployment still needs the team’s existing approvals, observation plan and rollback conditions. This separation is especially important when the same conversational interface can investigate incidents and call development tools. Interface convenience does not collapse organizational responsibility into a single permission to “fix it.”
Measure useful uncertainty as well as speed
Time to root cause is attractive because it is easy to compare. It is also dangerous when teams reward an early declaration more than a defensible conclusion. Track whether the agent found the relevant evidence, considered plausible alternatives, stayed within its scope and clearly stated missing information. Record human corrections and unsupported recommendations alongside elapsed time. These are suggested evaluation measures, not additional AWS metrics claimed by this article.
Build a small set of varied incidents instead of optimizing one memorable example. Include cases with incomplete telemetry and cases where the right outcome is escalation. Reserve some examples from prompt development so the team can check whether an improvement generalizes. Compare similar evidence conditions where possible and report where comparison is not fair. A slower investigation that correctly refuses to recommend a destructive action can be better engineering than a quick but unjustified repair plan. The human owner decides how those trade-offs reflect the service’s real reliability obligations.
Make configuration approval a reviewable engineering change
Treat diagnostic skills and grader instructions as versioned engineering artifacts. The review should include the change intent, affected access, selected incident examples, comparison limitations and the maintainer’s decision. If the evaluation criteria change at the same time as the diagnostic instructions, call that out explicitly: a higher score under a different rubric is not automatically a better investigation. Keep a rollback path to the previous configuration.
Start with advisory use on a limited service scope. Ask on-call engineers whether the agent reduced evidence-gathering work or merely added another narrative to inspect. Expand only after the team sees consistent value without losing the ability to challenge conclusions. The practical promise of replay is disciplined learning from agent behavior, not an automatic certificate of correctness. In AI-assisted development, humans should define the question, preserve the evidence, approve the repair and decide when to ship. An agent earns more useful responsibility by exposing its uncertainty, not by making the human disappear.