Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 2 min read

Your pager is not a diagnosis

It's 2:13 a.m. Checkout errors have gone up just after a deploy. The provider status feed last refreshed before the alert. If an incident agent recommends rolling back, what would you need to see before approving? On De

It's 2:13 a.m. Checkout errors have gone up just after a deploy. The provider status feed last refreshed before the alert. If an incident agent recommends rolling back, what would you need to see before approving?

On December 2, AWS renamed DevOps Agent to AWS Ops Agent and introduced directed mitigation plans. AWS describes a workflow where the operator approves each action, the service checks it against configured guardrails, and it verifies the result afterward. AWS announcement

Make the recommendation reviewable

Start with the failed customer operation and the affected scope. Attach the exact query, the window it covers, and a comparison with a healthy cohort. Record when each observation was collected. A green dependency dashboard sampled before the alert gives the reviewer little information about the current failure.

Ask the agent to name the observation that would change its recommendation. For checkout, compare failures on the old and new versions in the same region and window. Check that both cohorts actually carried traffic. Then inspect where the failed requests stopped.

Replay the alert twice

Use the same illustrative alert and rollout timestamp in both fixtures. Vary what the agent can observe afterward.

Fixture Available evidence Expected output
Version-specific failure New version is failing. The old version is healthy under comparable traffic. Propose a scoped rollback for operator review.
Shared dependency failure Both versions fail on the same provider call. Provider status is stale. Keep investigating. Surface the shared failure and request a fresh dependency signal.

An illustrative review record for the first fixture:

scope: checkout / region-a / canary
evidence:
  comparison: old_and_new_versions_same_region_and_window
  customer_signal: checkout_success_rate
  provider_status: stale
proposal: rollback_canary
state: awaiting_operator_approval
verification:
  measure: checkout_success_rate_in_affected_scope
  compare_with: pre_incident_baseline_and_healthy_cohort
  if_recovery_is_unclear: keep_incident_open

Check recovery where the customer felt it

Once an approved rollback finishes, query checkout success in the affected scope. Require enough traffic to interpret the result. Leave the incident open when success fails to recover or the sample is inconclusive. An orchestrator can report that a deployment finished while customers still see timeouts.

These fixtures are proposed tests. I would score the agent on whether it surfaces evidence the reviewer can reproduce, selects a recommendation consistent with that evidence, and verifies the customer-facing outcome.

Applied AI, Day 48. Follow for practical tests for agents that work in real apps.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.