Spaces:
Sleeping
Sleeping
File size: 3,691 Bytes
11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 5510ae2 2930dae 5510ae2 2930dae 11f8f10 5510ae2 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae 11f8f10 2930dae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | name: DevOpsEnv
version: "1.0.0"
description: >
An OpenEnv-compliant Linux DevOps and SRE troubleshooting environment.
Agents act as a junior SRE to diagnose and fix broken simulated server states
using bash commands and file edits.
domain: software_engineering
tags:
- openenv
- devops
- sre
- troubleshooting
- linux
license: MIT
author: SolvorLabs
# -------------------------------------------------
# Environment interface
# -------------------------------------------------
interface:
reset:
method: POST
path: /reset
request:
task_id: string # task1 | task2 | task3
response: Observation
step:
method: POST
path: /step
request:
episode_id: string
action: Action
response: StepResult
state:
method: GET
path: /state
params:
episode_id: string
response: State
tasks:
method: GET
path: /tasks
response: List[TaskInfo]
grader:
method: POST
path: /grader
request:
episode_id: string
response: GraderResponse
health:
method: GET
path: /health
# -------------------------------------------------
# Typed models (Matches your models.py)
# -------------------------------------------------
models:
Observation:
task_id: string
task_description: string
episode_id: string
system_state: SystemState
thread_history: list[dict]
available_actions: list[string]
step_number: integer
max_steps: integer
hint: string | null
SystemState:
task_id: string
available_commands: list[string]
filesystem_snapshot: string
running_processes: list[dict]
service_status: dict[string, string]
logs: string
http_ports_open: list[integer]
docker_containers: list[dict]
cpu_usage: float
memory_usage_mb: integer
Action:
action_type: string # bash_cmd | file_edit | submit
command: string | null
file_path: string | null
file_content: string | null
summary: string | null
Reward:
step_reward: float
total_reward: float
explanation: string
StepResult:
observation: Observation
reward: Reward
done: boolean
info: dict
State:
task_id: string
episode_id: string
step_number: integer
max_steps: integer
done: boolean
total_reward: float
history: list[dict]
final_score: float | null
GraderResponse:
episode_id: string
task_id: string
score: float # 0.0 – 1.0
breakdown: dict[string, float]
feedback: string
# -------------------------------------------------
# Tasks (Matches your data.py)
# -------------------------------------------------
tasks:
task1:
name: "Nginx Service Recovery"
difficulty: easy
max_steps: 10
description: >
The Nginx web server has crashed. The agent must restart the service
and ensure port 80 is returning an HTTP 200 OK status.
task2:
name: "Docker Compose Fix"
difficulty: medium
max_steps: 15
description: >
A Docker container is misconfigured with the wrong port mapping.
The agent must edit docker-compose.yml to fix the port and spin the container up.
task3:
name: "API Memory Leak"
difficulty: hard
max_steps: 20
description: >
A Python mock API is experiencing a memory leak. The agent must diagnose
the running processes, kill the faulty process, patch the python file, and restart.
# -------------------------------------------------
# Deployment
# -------------------------------------------------
deployment:
framework: FastAPI
python: ">=3.11"
port: 7860
dockerfile: Dockerfile
huggingface_space: true
space_sdk: docker |