BlogAI & ML

How to Build DevOps Tasks That Test AI Agents

DevOps tasks for testing AI agents: a broken, production-like system the agent must repair without losing data. How our engineers built 19 of them, and why.

Nomos Insights
Updated 5 min read

It's late, something in production just broke, the logs don't make sense, and whatever you do next can't lose anyone's data. That's a normal bad day for an engineer. Most AI agent tests never get close to it, because most of them are about writing code.

A good DevOps task for testing AI agents gives the agent a broken, production-like system to repair without losing any data. Our tasks run on a local copy of AWS, so nothing real is at risk, and a hidden grader, the program that checks the result, scores the final state.

We wanted to test whether agents, AI models that run commands and make changes on their own, can handle the messy version. So our team built a set of DevOps and cloud engineering tasks. The agent has to design the infrastructure, deploy it with Terraform, a tool that describes infrastructure as code, repair the incident without losing data and then tear everything down cleanly.

So where do strong models actually fail? Mostly in the investigation. They trust a status table, miss evidence that only lives in old logs, or pick a repair that looks right but quietly loses data.

Our engineers wrote 19 of these tasks from start to finish, from the broken system to the hidden grader.

Real systems, not toys

The tasks used data systems companies run every day, including ClickHouse, PostgreSQL with logical replication, NATS JetStream, RabbitMQ quorum queues, rqlite and CouchDB. They were deployed on emulated cloud services like container services, access management, storage buckets, load balancers and schedulers.

What makes a DevOps task hard for an agent?

Finding the evidence before acting. We had one main rule. The hard part should be investigation, not a trick. The deciding fact always sits in the live system, in logs, replication slots, backup buckets or history records. It's never written in the instructions.

That's how real incidents work. Nobody hands you a note saying where the data went. You have to look. So when our engineers write the instructions, they include only what the agent can't find out by itself. Anything it can learn by running or reading the system is part of the challenge.

Where do strong models trip up?

As our engineers went through many rounds of model runs, the same kinds of cases kept catching strong models:

  • Hidden data loss. A repair seems to work, but some data was never touched and comes back later. The agent has to prove what happened instead of trusting a status table.
  • Evidence only in history. The right decision depends on old logs or past events, not the current state.
  • Failover traps. After a promotion, where a standby server takes over as the new primary, or after a restore, data sits somewhere unexpected, like a parked replication slot (a marker that holds back changes for a reader that may still need them) on the new primary or the operator's own backup bucket.
  • Timing across a cluster. The agent has to rehearse a restart, learn its effects from every server's logs, and wait for the whole cluster before releasing work.
  • Duplicates that look identical. Resent events leave rows that match real ones, so the agent has to remove duplicates by a written versioning rule.
  • Decoys. Signals that look right change on every trial, so a fixed script or a guess doesn't pass.

Our favorite design idea was what we call a divergence point. Our engineers build in a key moment where several repairs look correct, but each one leads to a different end state. Only an agent that checks broadly picks the right one. It's a fair test of judgment, because a careful engineer would check before acting. Stopping at the first answer that looks right is also one of the patterns behind why AI agents fail at terminal tasks.

When is a DevOps task ready?

When a careful engineer's solution passes every time and strong models almost never do. Like every terminal task we build, each one had a reference solution, written by the engineer who built the task, that had to score 100 on every round. Then we ran several strong models against it, more than once each. We wanted tasks a careful engineer could finish that the models almost never passed, and in most final rounds not a single model run passed. How we made sure those fails were real is its own topic, covered in how we prove a grader is fair.

As AI agents get closer to real infrastructure, someone needs to know how agents behave when the system is broken, the clues are buried and a wrong fix quietly loses data.

Quick answers

What is a DevOps benchmark for AI agents? A set of tasks where an agent must build, fix or operate real infrastructure, graded by automatic checks.

Do these tasks use real cloud accounts? No. They run on a local emulated copy of AWS, so nothing real is at risk.

Where do AI agents fail in DevOps tasks? In our rounds, mostly in investigation. They trust status tables, miss evidence in old logs, and pick a repair that looks right but loses data.

Do you need cloud experience to build DevOps tasks? Yes. The deciding clue has to sit where a real engineer would look, like logs or a backup bucket, so the person writing the task needs hands-on experience running these systems.

Need Agent Tasks Built on Real Infrastructure?

Our engineers build DevOps and cloud tasks end to end, from the broken system to the hidden grader, and hold every one to a strict bar for difficulty and fairness. If your lab needs incident-style tasks delivered on schedule, talk to our AI Agent Development team.

Talk to Us
Filed underDevOpsCloud EngineeringTerraformAI Agents