| title | SRE DevOps Training Environment | |
|---|---|---|
| emoji | 🔧 | |
| colorFrom | blue | |
| colorTo | purple | |
| sdk | docker | |
| pinned | false | |
| app_port | 8000 | |
| base_path | /web | |
| tags |
|
This OpenEnv environment perfectly simulates a real-world Site Reliability Engineer (SRE) on-call scenario. Companies train AI agents to automatically triage, investigate, and mitigate production server outages. In this environment, the agent receives an active PagerDuty-style alert alongside server health telemetry (CPU, Disk, Memory) and must execute Bash commands to attempt to resolve the simulated outage.
This provides massive Real-world Utility by mirroring the exact workflow of infra remediation systems.
The agent submits its proposed mitigation through a strictly typed Action payload:
command(string): The bash command it wishes to execute (e.g.,systemctl restart nginx,killall,top, etc.)
The environment processes the command and returns the simulated system state:
terminal_output(string): Result of the bash command or investigation tool.current_alert(string): The active alert (e.g. "502 Bad Gateway" or "None" if resolved).server_status(dict): Health metrics map displaying CPU, Memory, and Disk utilization.metadata(object): Internal scoring tracker for the grader logic.
The environment exposes three distinct scenarios (tasks) scaling from easy to hard. The grader algorithm assigns partial reward signals (0.0 to 1.0) along the trajectory, rewarding investigation tools (top, tail, ps aux) before applying the final reward when the specific service is successfully stabilized.
- Easy Task (
task_1_easy): Nginx service has crashed. (Solution: restart the web server daemon) - Medium Task (
task_2_medium): Server CPU is pegged at 100% due to a rogue crypto_miner. (Solution: kill the specific anomalous process) - Hard Task (
task_3_hard): Cascading failure where DB connection is refused causing application to crash. (Solution: restart PostgreSQL database and subsequently restart the backend application)
The repository includes an inference.py script that hooks into the OpenAI API exactly natively required by the hackathon validation format.
- Easy:
1.0 - Medium:
0.8 - Hard:
0.4
This repository operates perfectly against the openenv validate pre-submission rules.
To run the inference/demo script:
export API_BASE_URL="https://api.openai.com/v1"
export MODEL_NAME="gpt-4o"
export HF_TOKEN="<your_openai_or_hf_token>"
python inference.pyTo run the environment local evaluation endpoints:
uv run serverThe endpoints (/tasks, /grader, and /baseline) are active natively on the Uvicorn port.