File size: 2,466 Bytes
414e6f9
 
 
 
 
 
 
 
22262fe
414e6f9
22262fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Bug Triage SRE Env
emoji: 🐛
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---

# OpenEnv SRE Bug Triage Benchmark
## Motivation
This environment models a **production-grade engineering and support workflow**. Teams spend countless hours reading vague bug reports, matching them to stack traces, assessing priority, and routing them to the correct group. This interactive environment evaluates whether LLM agents can act like real Site Reliability Engineers (SREs), using **tools** to deduce root causes before making final resolutions.

## Environment Design (The "WOW" Factor)
Unlike simple text classification environments, the **SRE Bug Triage Benchmark** forces the agent into an iterative ReAct pattern where they must actively query pseudo-systems to uncover full state context.

### The Observation Space
Agents receive strongly-typed JSON representing the current state:
```json
{
  "ticket_description": "User reported slow performance during checkout.",
  "command_result": "Logs for database: OutOfMemory errors detected in pgsql pool",
  "step_count": 2
}
```

### The Action Space
Agents must output strict JSON commanding the environment:
```json
{
  "command": "search_logs", 
  "command_args": {"service": "database"}
}
```
Supported commands:
- `search_logs`
- `query_metrics`
- `resolve_ticket`

## Progressive Task Breakdown
There are 3 tasks designed to test varying difficulties and tool horizons:
- **Task 1 (Easy)**: Severity assessment directly from the ticket description.
- **Task 2 (Medium - Log Investigation)**: The agent receives a vague ticket. It must invoke `search_logs` to uncover hidden errors, then `resolve_ticket`. Partial rewards are awarded for searching the right log!
- **Task 3 (Hard - Escalation & Metrics)**: The agent must correlate metrics and logs across different services to find hidden latency sources and map it to the right on-call team.

## Baseline Results
| Task | Difficulty | Expected Baseline Score |
| ---- | ---------- | ----------------------------- |
| 1    | Easy       | 1.0  |
| 2    | Medium     | 0.8  |
| 3    | Hard       | 0.6  |

## Execution Instructions

Run the OpenEnv server:
```bash
docker build -t openenv-triage .
docker run -p 8000:8000 openenv-triage
```

Run the baseline agent:
```bash
pip install -r requirements.txt
export API_BASE_URL="https://api.openai.com/v1"
export MODEL_NAME="gpt-4o-mini"
export HF_TOKEN="your_token_here"
python inference.py
```