| title | InfraMind Autonomous DevOps Benchmark | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| emoji | ๐ง | ||||||||
| colorFrom | blue | ||||||||
| colorTo | purple | ||||||||
| sdk | docker | ||||||||
| pinned | true | ||||||||
| tags |
|
โก First benchmark where AI agents must debug a live breaking production system โ not solve static tasks.
๐จ Can your AI agent survive a real production outage?
InfraMind evaluates whether agents can debug under pressure, ignore misleading signals, fix root causes (not symptoms), and actually recover system metrics. Most agents fail.
๐ฎ Live Demo (UI) โ๏ธ Run Judge Evaluation โ OpenEnv Validate ๐ API Docs ๐ Reproducibility Proof
Two URLs: UI โ
huggingface.co/spaces/aakarsh2007/infraMindยท API โaakarsh2007-inframind.hf.space
InfraMind is not a benchmark where agents solve problems. It is a benchmark where agents survive production.
- Real DevOps benchmark (not coding tasks)
- 6 tasks (easy โ super long-horizon), deterministic scoring
- Multi-agent + adversarial environment + Closed-Loop RL (PPO) + SFT Pipeline
- Baseline:
gpt-4o-mini= 0.62 avg - โ OpenEnv: 10/10 PASS
- ๐ RL reward curves:
curl https://aakarsh2007-inframind.hf.space/rl/simulate?epochs=15
No demos. No mocks. No hidden scoring. Everything is verifiable via API.
๐ Try in 10 sec:
curl https://aakarsh2007-inframind.hf.space/judge/run_all?seed=42Copy-paste any command:
# Full benchmark score + verdict (no API key needed)
curl https://aakarsh2007-inframind.hf.space/judge/run_all?seed=42
# RL reward curves โ proof of closed-loop learning
curl https://aakarsh2007-inframind.hf.space/rl/simulate?epochs=15
# OpenEnv compliance proof
curl https://aakarsh2007-inframind.hf.space/validate
# Reproducibility proof
curl https://aakarsh2007-inframind.hf.space/reproducibility
# Interactive API docs
open https://aakarsh2007-inframind.hf.space/docsReturns full benchmark results in ~10 seconds. No API key needed.
curl https://aakarsh2007-inframind.hf.space/judge/run_all?seed=42The response includes a human-readable summary field:
=======================================================
INFRA MIND JUDGE EVALUATION (seed=42)
=======================================================
Overall Score : 55.9%
Grade : C (Weak)
Verdict : โ Struggling โ Agent applied band-aid fixes
-------------------------------------------------------
โ
memory leak: Correctly fixed (score=0.72)
โ ๏ธ db deadlock: Partial fix (score=0.62)
โ cascade failure: Failed to fix (score=0.41)
โ cpu spike: Partial fix (score=0.59)
โ auth bypass: Failed to fix (score=0.36)
-------------------------------------------------------
Diagnostics:
Root Cause Accuracy : 28%
Patch Quality : 65%
Debugging Efficiency : 82%
-------------------------------------------------------
Score Guide:
0.9+ โ Excellent (production-ready agent)
0.6โ0.9 โ Good (partial reliability)
<0.6 โ Weak (fails under pressure)
=======================================================
How to interpret:
avg_scoreโ overall performance (0.0โ1.0)verdictโ plain-English evaluation summaryhighlightsโ per-task pass/fail with root cause analysisdiagnosticsโ skill breakdown (root cause accuracy, patch quality, efficiency)proof_of_fixโ before/after system metrics showing real improvementseed+reproducible: trueโ run again with same seed to verify
# Judge evaluation โ no API key, no setup
curl https://aakarsh2007-inframind.hf.space/judge/run_all?seed=42
# OpenEnv validation
curl https://aakarsh2007-inframind.hf.space/validate
# Health check
curl https://aakarsh2007-inframind.hf.space/healthOr open the Live Demo UI and click "Run Judge Evaluation" in the dashboard.
InfraMind is a production-grade DevOps incident simulator where AI agents must debug, coordinate, and deploy fixes under pressure.
Agent enters โ system is breaking โ metrics climb every step
โ
Reads alerts, searches logs, navigates codebase
โ
Adversarial hints injected (wrong advice โ must be ignored)
โ
Writes patch โ submits โ hidden tests run โ metrics checked
โ
Graded on 9 dimensions: correctness, root cause, efficiency,
collaboration, noise filtering, explainability, safety...
โ
Post-mortem: what went wrong, optimal path, causal link
Unlike existing benchmarks, InfraMind evaluates:
- Root cause reasoning (not just code correctness)
- Multi-agent coordination (5 specialized personas)
- Real system recovery (metrics actually improve after correct fix)
- Adversarial robustness (wrong hints injected)
InfraMind isn't just a benchmarkโit's a live training environment designed for Enterprise Fleet AI models. We provide a complete, verified pipeline to fine-tune open-weight models (like LLaMA-3) to excel at incident response using both SFT and true RL.
The ultimate proof of environment-driven learning.
Run notebooks/InfraMind_Training_RL.ipynb in Colab. The agent interacts live with the InfraMind environment, observes state, takes actions, and receives a reward directly from our grade_patch engine. It then updates its policy using Proximal Policy Optimization (PPO). This proves the agent improves because of interaction with the environment.
- Generate Dataset: Run
python scripts/generate_dataset.pyto play out hundreds of simulated outages and extract successful trajectories. - Train with Unsloth: Open
notebooks/InfraMind_Training_Unsloth.ipynbto run SFT/ORPO on the generated dataset for blazing fast 4-bit fine-tuning.
Winner-Ready: We demonstrate concrete RL reward curves via live environment interaction, aligning natively with the Meta x Scaler AI Hackathon "Showing Improvement in Rewards (20%)" judging criteria.
- No LLM-based grading โ pure Python deterministic hidden tests
- No manual scoring โ every score is computed programmatically
- Same seed โ identical results โ seeded RNG per scenario
- Metrics tied to actual system state โ error rate, latency, CPU all change
- Fake patches rejected โ patches < 20 chars score 0.02 automatically
- Butterfly effect detection โ band-aid fixes trigger worse failures later
What you see is what the agent actually fixed. You can verify every claim via API. Nothing is hidden.
Most agents will:
- Follow wrong adversarial hints
- Fix symptoms, not root cause
- Loop without progress
- Restart services instead of patching code
Baseline results (gpt-4o-mini, seed=42):
| Task | Score | Why agents struggle |
|---|---|---|
| memory_leak | 0.75 | Straightforward once file is found |
| db_deadlock | 0.62 | Butterfly effect traps restart-happy agents |
| cascade_failure | 0.50 | Root cause in Service A, not B/C |
| cpu_spike | 0.59 | Recursion depth fix requires specific knowledge |
| auth_bypass | 0.41 | Zero metric signal โ pure log reasoning |
| AVERAGE | 0.62 |
Success here actually means something.
curl https://aakarsh2007-inframind.hf.space/validateโ step/reset/state implemented
โ openenv.yaml valid
โ reward range [0.0, 1.0]
โ tasks detected: 6
โ graders deterministic
โ typed Pydantic models
โ baseline inference.py at root
โ Dockerfile present
โ reproducibility: same seed = same state
โ closed-loop RL: /rl/simulate returns reward curves
Summary: โ 10/10 checks passed
Seed = 42 โ Score = 0.62 โ
Seed = 42 โ Score = 0.62 โ
Seed = 42 โ Score = 0.62 โ
โ Identical trajectories
โ Deterministic graders (pure Python, no LLM scoring)
โ Seeded RNG โ same seed โ same variant โ same hidden tests
curl https://aakarsh2007-inframind.hf.space/reproducibility
# Returns: "โ PASS โ Same seed produces identical environment state"โ /reset, /step, /state โ stable, never crash
โ /validate โ 10/10 PASS
โ docker build && docker run โ works cleanly
โ Inference runtime < 10 minutes (3 tasks ~3 min)
โ Memory < 200MB, 2vCPU compatible
โ Deterministic scoring โ same patch = same score
โ Reward range [0.0, 1.0] enforced by Pydantic
โ 6 tasks with graders (Super Long-Horizon included)
โ inference.py at root โ exact [START]/[STEP]/[END] format
โ /health returns 200
Built for automated evaluation. Zero known failure modes.
Task: cascade_failure (Hard)
Step 3 โ Adversarial hint injected:
"โ Service B is the root cause โ scale it up"
Agent: restart_service(service-b)
โ Error rate: 0.72 โ 0.45 (temporary improvement)
โ Agent submits patch targeting service-b
[BUTTERFLY] Step 8: Root cause in service-a not fixed.
Cascade re-floods. Error rate: 0.71 (back to original)
Score: 0.41
What went wrong:
โ Followed adversarial hint
โ Root cause was in service-a/cache.js (Redis timeout)
โ Butterfly effect triggered by restart
Optimal path:
inspect service-a โ fix Redis timeout โ submit patch
The agent optimized symptoms, not root cause. InfraMind detects this.
Today's AI can write code. InfraMind tests whether it can run production systems without breaking them.
Real engineers get paged at 3am. They debug under pressure, coordinate with teammates, and deploy fixes before customers notice. InfraMind is the first benchmark that simulates exactly this โ not a static coding puzzle, but a live, degrading system that fights back.
Inspired by real-world outages at Amazon, Google, and Cloudflare.
| Model | Avg Score | memory_leak | db_deadlock | cascade_failure |
|---|---|---|---|---|
| gpt-4o | 0.71 | 0.82 | 0.74 | 0.57 |
| gpt-4o-mini | 0.62 | 0.75 | 0.62 | 0.50 |
| llama-3.3-70b | 0.58 | 0.71 | 0.58 | 0.44 |
| mixtral-8x7b | 0.51 | 0.64 | 0.52 | 0.38 |
| gpt-3.5-turbo | 0.44 | 0.58 | 0.44 | 0.31 |
Scores with seed=42. Run /judge/run_all?seed=42 to reproduce.
When an agent submits a correct patch, metrics actually recover:
| Metric | Before | After | Change |
|---|---|---|---|
| Error Rate | 0.72 | 0.02 | โ โ96% |
| Latency | 4200ms | 120ms | โ โ97% |
| CPU | 82% | 35% | โ โ57% |
Metrics only improve on correct patch โ not on restart or rollback.
InfraMind introduces Production Engineering Benchmarks โ a category that didn't exist before.
| Benchmark | What it tests | Dynamic | Adversarial |
|---|---|---|---|
| SWE-bench | Static code repair | โ | โ |
| ToolBench | Tool usage | โ | โ |
| AgentBench | Generic tasks | โ | โ |
| InfraMind | Real-time system recovery | โ | โ |
InfraMind is the first benchmark where:
- The system degrades over time (metrics climb every step)
- Wrong fixes make things worse (butterfly effect)
- Metrics prove if the fix actually worked (before/after scoring)
- Adversarial hints test reasoning under uncertainty
| Human Engineer | AI Agent | |
|---|---|---|
| Time | 15โ30 minutes | 20โ40 steps |
| Tools | Terminal, IDE, logs | Same (simulated) |
| Pressure | Pager going off | Metrics climbing every step |
| Adversarial | Noisy Slack | Injected wrong hints |
Comparable difficulty to real-world on-call incidents.
3 variants: Unbounded cache ยท Event listener leak ยท Unclosed DB connections
Score: 0.0 no fix ยท 0.5 partial ยท 1.0 correct
3 variants: Lock ordering ยท TOCTOU race ยท N+1 transaction loop Butterfly effect: Restart temporarily helps, deadlock recurs in 5 steps
3 variants: Redis timeout ยท Retry storm ยท Connection pool exhaustion Signal vs noise: Root cause in Service A, not B/C. Adversarial hints point to B.
Recursive sanitize() with no depth limit. Fix: MAX_DEPTH + WeakSet.
JWT alg: 'none' vulnerability. Zero metric signal โ pure log reasoning required.
Fix middleware/auth.js with algorithm whitelist.
(Theme 2: Super Long-Horizon Planning) A distributed Kubernetes deployment is actively compromised. The agent must trace an anomalous outbound connection across an API gateway, ignore misleading SLA alerts on a billing service, and deploy a zero-day patch to the auth service. Requires 50 steps of deep multi-stage reasoning.
Action:
{
"agent": "coordinator | debugger | coder | reviewer | sre",
"action_type": "terminal | read_file | edit_file | list_files | search_logs | submit_patch | send_message | escalate | restart_service | rollback",
"command": "...", "file_path": "...", "content": "...",
"patch_description": "...", "reasoning": "scored for explainability"
}Observation includes: live metrics, log stream, active alerts, workspace files, adversarial hints, agent memory hints, noise events (Twitter/Slack/tickets), CI status, time pressure, seed.
total = patch_correctness ร 0.50 # Hidden test suite
+ metric_improvement ร 0.20 # Before/after system metrics
+ root_cause_score ร 0.15 # Keyword attribution
+ steps_efficiency ร 0.10 # Fewer steps = bonus
+ collaboration ร 0.05 # Agent coordination
+ explainability ร 0.03 # Reasoning provided
+ noise_filtering ร 0.02 # Adversarial hints ignored
โ escalation_penalty ร 0.10 # Caps total at 0.4
โ destructive_penalty ร 0.10 # Per rollback/restart
Partial progress rewarded throughout โ not just binary end-of-episode.
| Mechanic | Description |
|---|---|
| ๐ฆ Butterfly Effect | Band-aid fixes cause worse cascade 5 steps later |
| ๐ญ Adversarial Agent | Wrong hints injected โ following them is penalized |
| ๐ก Signal vs Noise | Twitter/Slack/tickets distract from real log signals |
| ๐ง Agent Memory | Remembers past fixes, injects hints for next episode |
| ๐ Dynamic Difficulty | Adapts to agent performance โ harder if avg > 0.8 |
| ๐ฒ Seeded Variants | 3 variants per task, same seed = same variant |
| ๐ Failure Analysis | Post-mortem: wrong actions, optimal path, causal link |
| ๐ Skill Breakdown | 6 per-skill scores for interpretability |
coordinator ๐ง โ delegates tasks, synthesizes findings
debugger ๐ โ terminal commands, log search
coder โ๏ธ โ file editing, patch submission
reviewer ๐๏ธ โ validates patches, runs tests
sre ๐จ โ metrics monitoring, Jira tickets
Agents communicate via send_message โ collaboration is scored.
| Tab | What you can do |
|---|---|
| ๐ฎ Colosseum | Manual play โ execute actions step by step |
| ๐ค Live AI | Watch AI solve incidents live (OpenAI or Groq) |
| โ๏ธ Compare | Race two models on same task simultaneously |
| ๐จ War Room | Multi-agent coordination with live message feed |
| ๐ RL Training | Live reward curves โ closed-loop PPO proof of learning |
| ๐ Leaderboard | All runs ranked by reward + skill breakdown |
| ๐ง Custom | Build your own scenario from buggy code |
| ๐ผ Replay | Browse and replay any past episode |
| Provider | Key | Free | Models |
|---|---|---|---|
| OpenAI | sk-... |
No | gpt-4o-mini, gpt-4o |
| Groq | gsk_... |
โ | llama-3.3-70b, mixtral-8x7b |
Get a free Groq key at console.groq.com โ no credit card.
InfraMind can serve as a standard benchmark for studying:
- Agent failure under adversarial signals โ how easily are agents misled?
- Multi-agent coordination breakdown โ when do teams fail?
- Long-horizon reasoning โ context across 20โ40 steps
- Metric-grounded evaluation โ does the fix actually work?
# Export full episode traces for RL training
curl https://aakarsh2007-inframind.hf.space/export/{run_id}| Endpoint | Method | Description |
|---|---|---|
/reset |
POST/GET | Reset episode (seed param for reproducibility) |
/step |
POST | Execute action โ observation + reward + done + info |
/state |
GET | Current episode state |
/tasks |
GET | All 5 tasks with metadata |
| Endpoint | Method | Description |
|---|---|---|
/judge/run_all |
POST/GET | One-click judge evaluation โ try it live |
/validate |
GET | OpenEnv compliance proof โ try it live |
/reproducibility |
GET | Deterministic seed proof โ try it live |
| Endpoint | Method | Description |
|---|---|---|
/leaderboard |
GET | Top 20 runs sorted by reward |
/stats |
GET | Aggregate stats + feedback learning |
/export/{run_id} |
GET | Full episode trace for RL training |
/skills/{run_id} |
GET | Per-skill breakdown |
/replay/{run_id} |
GET | Replay data |
| Endpoint | Method | Description |
|---|---|---|
/agent/run |
POST | Live AI agent โ SSE stream (OpenAI or Groq) |
/agent/compare |
POST | Race two models โ SSE stream |
| Endpoint | Method | Description |
|---|---|---|
/rl/simulate |
GET | Closed-loop RL simulation โ returns reward curves proving learning (?epochs=15&seed=42) |
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check โ try it live |
/docs |
GET | Interactive API docs โ try it live |
/openenv.yaml |
GET | OpenEnv spec โ try it live |
/ws |
WS | Real-time telemetry WebSocket |
| Variable | Description |
|---|---|
API_BASE_URL |
LLM endpoint (e.g. https://api.openai.com/v1) |
MODEL_NAME |
Model identifier โ Groq models auto-routed |
HF_TOKEN |
Hugging Face / API key |
OPENAI_API_KEY |
OpenAI API key (alternative to HF_TOKEN) |
INFRA_ENV_URL |
InfraMind environment URL (default: http://localhost:7860) |
INFERENCE_SEED |
Reproducibility seed (default: 42) |
FULL_RUN |
Set to 1 to run all 5 tasks in inference |
InfraMind/
โโโ inference.py # Baseline โ [START]/[STEP]/[END] format, Groq support
โโโ server.py # FastAPI โ 25+ endpoints (incl. /rl/simulate)
โโโ openenv.yaml # OpenEnv spec (name: infra-mind)
โโโ Dockerfile # python:3.11-slim, port 7860
โโโ requirements.txt
โโโ verify.py / verify_judge.py
โโโ env/
โ โโโ models.py # Action, Observation, Reward, SkillBreakdown, FailureReport
โ โโโ engine.py # InfraMindEnv โ judge mode, trace export, feedback learning
โ โโโ scenarios/ # 6 tasks + 9 seeded variants + custom
โโโ scripts/
โ โโโ train_rl_ppo.py # Closed-loop PPO training (GPU + CPU simulation)
โ โโโ train_unsloth.py # SFT with Unsloth 4-bit LoRA
โ โโโ generate_dataset.py
โโโ notebooks/
โ โโโ InfraMind_Training_RL.ipynb # PPO closed-loop Colab notebook
โ โโโ InfraMind_Training_Unsloth.ipynb
โโโ ui/src/components/ # 8-tab React dashboard (incl. ๐ RL Training tab)
# Judge evaluation โ no API key needed
curl https://aakarsh2007-inframind.hf.space/judge/run_all?seed=42
# Or open the UI
# https://huggingface.co/spaces/aakarsh2007/infraMindgit clone https://github.com/Aakarsh2007/Aegis-Swarm && cd Aegis-Swarm
pip install -r requirements.txt
uvicorn server:app --host 0.0.0.0 --port 7860
# Open http://localhost:7860docker build -t infra-mind . && docker run -p 7860:7860 infra-mindexport API_BASE_URL=https://api.openai.com/v1
export MODEL_NAME=gpt-4o-mini
export HF_TOKEN=sk-... # your OpenAI or Groq key
export INFRA_ENV_URL=http://localhost:7860
python inference.pyOutput:
[START] task=memory_leak env=infra-mind model=gpt-4o-mini
[STEP] step=1 action=list_files reward=0.00 done=false error=null
[STEP] step=4 action=submit_patch reward=0.75 done=true error=null
[END] success=true steps=4 score=0.75 rewards=0.00,0.00,0.00,0.75
| Score | Grade | Meaning |
|---|---|---|
| 0.9โ1.0 | S | Perfect fix, root cause identified |
| 0.7โ0.9 | A | Correct fix, minor inefficiency |
| 0.5โ0.7 | B | Partial fix |
| 0.3โ0.5 | C | Wrong approach, some progress |
| 0.0โ0.3 | F | No fix or destructive actions |
| Problem | Fix |
|---|---|
| "Cannot reach environment" | Start server: uvicorn server:app --port 7860 |
| "API key error" | OpenAI: sk-... ยท Groq: gsk_... |
| "Module not found" | pip install -r requirements.txt |
| "Port in use" | uvicorn server:app --port 7861 |
Python 3.11 |
FastAPI |
React 18 |
TypeScript |
Docker |
OpenAI |
HF Spaces |