Pranav Dhiran commited on
Commit
d6ada92
·
1 Parent(s): a78a875
app/tasks/task1.py CHANGED
@@ -322,8 +322,8 @@ class CPUSpikeTask(BaseTask):
322
  if "web-api" in state.get("logs_queried", []) or \
323
  "web-api" in state.get("metrics_checked", []) or \
324
  "web-api" in state.get("configs_checked", []):
325
- breakdown["investigated_root_service"] = 0.15
326
- score += 0.15
327
 
328
  # Service remediated?
329
  if state.get("web_api_restarted", False):
 
322
  if "web-api" in state.get("logs_queried", []) or \
323
  "web-api" in state.get("metrics_checked", []) or \
324
  "web-api" in state.get("configs_checked", []):
325
+ breakdown["investigated_root_service"] = 0.14
326
+ score += 0.14
327
 
328
  # Service remediated?
329
  if state.get("web_api_restarted", False):
app/tasks/task2.py CHANGED
@@ -396,8 +396,8 @@ class DBConnectionPoolTask(BaseTask):
396
  "analytics-worker" in state.get("configs_checked", [])
397
  )
398
  if root_cause_found:
399
- breakdown["root_cause_identified"] = 0.20
400
- score += 0.20
401
 
402
  # Correct attribution? (analytics-worker named as source)
403
  targeted_analytics = (
 
396
  "analytics-worker" in state.get("configs_checked", [])
397
  )
398
  if root_cause_found:
399
+ breakdown["root_cause_identified"] = 0.19
400
+ score += 0.19
401
 
402
  # Correct attribution? (analytics-worker named as source)
403
  targeted_analytics = (
app/tasks/task3.py CHANGED
@@ -443,8 +443,8 @@ class CascadingFailureTask(BaseTask):
443
  for svc in ["api-gateway", "user-service", "order-service", "payment-service"])
444
  )
445
  if root_investigated:
446
- breakdown["investigated_root_cause"] = 0.15
447
- score += 0.15
448
 
449
  # config-service identified and rolled back?
450
  if state.get("config_service_rolledback", False):
 
443
  for svc in ["api-gateway", "user-service", "order-service", "payment-service"])
444
  )
445
  if root_investigated:
446
+ breakdown["investigated_root_cause"] = 0.14
447
+ score += 0.14
448
 
449
  # config-service identified and rolled back?
450
  if state.get("config_service_rolledback", False):
inference_results.json ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "gpt-4o-mini",
3
+ "environment": "sre-incident-response",
4
+ "results": [
5
+ {
6
+ "task_id": "task1",
7
+ "task_name": "CPU Spike Investigation",
8
+ "difficulty": "easy",
9
+ "score": 0.45,
10
+ "steps_taken": 12,
11
+ "success": false,
12
+ "episode_log": [
13
+ {
14
+ "step": 1,
15
+ "action_type": "acknowledge_alert",
16
+ "parameters": {
17
+ "alert_id": "ALT-001"
18
+ },
19
+ "reward": 0.01,
20
+ "message_preview": "Alert ALT-001 acknowledged."
21
+ },
22
+ {
23
+ "step": 2,
24
+ "action_type": "acknowledge_alert",
25
+ "parameters": {
26
+ "alert_id": "ALT-002"
27
+ },
28
+ "reward": 0.01,
29
+ "message_preview": "Alert ALT-002 acknowledged."
30
+ },
31
+ {
32
+ "step": 3,
33
+ "action_type": "acknowledge_alert",
34
+ "parameters": {
35
+ "alert_id": "ALT-003"
36
+ },
37
+ "reward": 0.01,
38
+ "message_preview": "Alert ALT-003 acknowledged."
39
+ },
40
+ {
41
+ "step": 4,
42
+ "action_type": "rollback_deployment",
43
+ "parameters": {
44
+ "service": "web-api"
45
+ },
46
+ "reward": 0.45,
47
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
48
+ },
49
+ {
50
+ "step": 5,
51
+ "action_type": "rollback_deployment",
52
+ "parameters": {
53
+ "service": "web-api"
54
+ },
55
+ "reward": 0.45,
56
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
57
+ },
58
+ {
59
+ "step": 6,
60
+ "action_type": "rollback_deployment",
61
+ "parameters": {
62
+ "service": "web-api"
63
+ },
64
+ "reward": 0.45,
65
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
66
+ },
67
+ {
68
+ "step": 7,
69
+ "action_type": "rollback_deployment",
70
+ "parameters": {
71
+ "service": "web-api"
72
+ },
73
+ "reward": 0.45,
74
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
75
+ },
76
+ {
77
+ "step": 8,
78
+ "action_type": "rollback_deployment",
79
+ "parameters": {
80
+ "service": "web-api"
81
+ },
82
+ "reward": 0.45,
83
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
84
+ },
85
+ {
86
+ "step": 9,
87
+ "action_type": "rollback_deployment",
88
+ "parameters": {
89
+ "service": "web-api"
90
+ },
91
+ "reward": 0.45,
92
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
93
+ },
94
+ {
95
+ "step": 10,
96
+ "action_type": "rollback_deployment",
97
+ "parameters": {
98
+ "service": "web-api"
99
+ },
100
+ "reward": 0.45,
101
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
102
+ },
103
+ {
104
+ "step": 11,
105
+ "action_type": "rollback_deployment",
106
+ "parameters": {
107
+ "service": "web-api"
108
+ },
109
+ "reward": 0.45,
110
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
111
+ },
112
+ {
113
+ "step": 12,
114
+ "action_type": "rollback_deployment",
115
+ "parameters": {
116
+ "service": "web-api"
117
+ },
118
+ "reward": 0.45,
119
+ "message_preview": "\u2713 web-api rolled back to v2.3.0.\n connection_pool_recycle re-enabled.\n CPU: 95.2% \u2192 10.0%\n Memory: 78.4% \u2192 32.0%\n Status: healthy\nEXCELLENT: This "
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "task_id": "task2",
125
+ "task_name": "Database Connection Pool Exhaustion",
126
+ "difficulty": "medium",
127
+ "score": 0.01,
128
+ "steps_taken": 12,
129
+ "success": false,
130
+ "episode_log": [
131
+ {
132
+ "step": 1,
133
+ "action_type": "acknowledge_alert",
134
+ "parameters": {
135
+ "alert_id": "ALT-010"
136
+ },
137
+ "reward": 0.01,
138
+ "message_preview": "Alert ALT-010 acknowledged."
139
+ },
140
+ {
141
+ "step": 2,
142
+ "action_type": "acknowledge_alert",
143
+ "parameters": {
144
+ "alert_id": "ALT-011"
145
+ },
146
+ "reward": 0.01,
147
+ "message_preview": "Alert ALT-011 acknowledged."
148
+ },
149
+ {
150
+ "step": 3,
151
+ "action_type": "acknowledge_alert",
152
+ "parameters": {
153
+ "alert_id": "ALT-012"
154
+ },
155
+ "reward": 0.01,
156
+ "message_preview": "Alert ALT-012 acknowledged."
157
+ },
158
+ {
159
+ "step": 4,
160
+ "action_type": "acknowledge_alert",
161
+ "parameters": {
162
+ "alert_id": "ALT-013"
163
+ },
164
+ "reward": 0.01,
165
+ "message_preview": "Alert ALT-013 acknowledged."
166
+ },
167
+ {
168
+ "step": 5,
169
+ "action_type": "rollback_deployment",
170
+ "parameters": {
171
+ "service": "payment-api"
172
+ },
173
+ "reward": -0.05,
174
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
175
+ },
176
+ {
177
+ "step": 6,
178
+ "action_type": "rollback_deployment",
179
+ "parameters": {
180
+ "service": "payment-api"
181
+ },
182
+ "reward": -0.05,
183
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
184
+ },
185
+ {
186
+ "step": 7,
187
+ "action_type": "rollback_deployment",
188
+ "parameters": {
189
+ "service": "payment-api"
190
+ },
191
+ "reward": -0.05,
192
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
193
+ },
194
+ {
195
+ "step": 8,
196
+ "action_type": "rollback_deployment",
197
+ "parameters": {
198
+ "service": "payment-api"
199
+ },
200
+ "reward": -0.05,
201
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
202
+ },
203
+ {
204
+ "step": 9,
205
+ "action_type": "rollback_deployment",
206
+ "parameters": {
207
+ "service": "payment-api"
208
+ },
209
+ "reward": -0.05,
210
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
211
+ },
212
+ {
213
+ "step": 10,
214
+ "action_type": "rollback_deployment",
215
+ "parameters": {
216
+ "service": "payment-api"
217
+ },
218
+ "reward": -0.05,
219
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
220
+ },
221
+ {
222
+ "step": 11,
223
+ "action_type": "rollback_deployment",
224
+ "parameters": {
225
+ "service": "payment-api"
226
+ },
227
+ "reward": -0.05,
228
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
229
+ },
230
+ {
231
+ "step": 12,
232
+ "action_type": "rollback_deployment",
233
+ "parameters": {
234
+ "service": "payment-api"
235
+ },
236
+ "reward": -0.05,
237
+ "message_preview": "Rolling back payment-api does not address the connection pool issue."
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ "task_id": "task3",
243
+ "task_name": "Cascading Service Failure",
244
+ "difficulty": "hard",
245
+ "score": 0.18,
246
+ "steps_taken": 12,
247
+ "success": false,
248
+ "episode_log": [
249
+ {
250
+ "step": 1,
251
+ "action_type": "acknowledge_alert",
252
+ "parameters": {
253
+ "alert_id": "ALT-020"
254
+ },
255
+ "reward": 0.01,
256
+ "message_preview": "Alert ALT-020 acknowledged."
257
+ },
258
+ {
259
+ "step": 2,
260
+ "action_type": "acknowledge_alert",
261
+ "parameters": {
262
+ "alert_id": "ALT-021"
263
+ },
264
+ "reward": 0.01,
265
+ "message_preview": "Alert ALT-021 acknowledged."
266
+ },
267
+ {
268
+ "step": 3,
269
+ "action_type": "acknowledge_alert",
270
+ "parameters": {
271
+ "alert_id": "ALT-022"
272
+ },
273
+ "reward": 0.01,
274
+ "message_preview": "Alert ALT-022 acknowledged."
275
+ },
276
+ {
277
+ "step": 4,
278
+ "action_type": "acknowledge_alert",
279
+ "parameters": {
280
+ "alert_id": "ALT-023"
281
+ },
282
+ "reward": 0.01,
283
+ "message_preview": "Alert ALT-023 acknowledged."
284
+ },
285
+ {
286
+ "step": 5,
287
+ "action_type": "acknowledge_alert",
288
+ "parameters": {
289
+ "alert_id": "ALT-024"
290
+ },
291
+ "reward": 0.01,
292
+ "message_preview": "Alert ALT-024 acknowledged."
293
+ },
294
+ {
295
+ "step": 6,
296
+ "action_type": "check_config",
297
+ "parameters": {
298
+ "service": "api-gateway"
299
+ },
300
+ "reward": 0.04,
301
+ "message_preview": "api-gateway config appears normal. Service discovery endpoint points to config-service (as expected). The issue is in what config-service returns, not"
302
+ },
303
+ {
304
+ "step": 7,
305
+ "action_type": "query_logs",
306
+ "parameters": {
307
+ "service": "api-gateway"
308
+ },
309
+ "reward": 0.08,
310
+ "message_preview": "2024-11-15T09:31:00Z [ERROR] api-gateway: failed to resolve user-service endpoint via config-service: GET http://config-service/discover/user-service "
311
+ },
312
+ {
313
+ "step": 8,
314
+ "action_type": "check_metrics",
315
+ "parameters": {
316
+ "service": "api-gateway"
317
+ },
318
+ "reward": 0.06,
319
+ "message_preview": "api-gateway metrics:\n status: DOWN\n error_rate: 100% (all requests failing)\n last_healthy: 2024-11-15T09:30:02Z\n restart_attempts: 3 (all failed)\n"
320
+ },
321
+ {
322
+ "step": 9,
323
+ "action_type": "check_config",
324
+ "parameters": {
325
+ "service": "api-gateway"
326
+ },
327
+ "reward": 0.04,
328
+ "message_preview": "api-gateway config appears normal. Service discovery endpoint points to config-service (as expected). The issue is in what config-service returns, not"
329
+ },
330
+ {
331
+ "step": 10,
332
+ "action_type": "query_logs",
333
+ "parameters": {
334
+ "service": "api-gateway"
335
+ },
336
+ "reward": 0.0,
337
+ "message_preview": "[Cached] Logs for api-gateway already retrieved."
338
+ },
339
+ {
340
+ "step": 11,
341
+ "action_type": "check_metrics",
342
+ "parameters": {
343
+ "service": "api-gateway"
344
+ },
345
+ "reward": 0.0,
346
+ "message_preview": "[Cached] Metrics for api-gateway already retrieved."
347
+ },
348
+ {
349
+ "step": 12,
350
+ "action_type": "check_config",
351
+ "parameters": {
352
+ "service": "api-gateway"
353
+ },
354
+ "reward": 0.04,
355
+ "message_preview": "api-gateway config appears normal. Service discovery endpoint points to config-service (as expected). The issue is in what config-service returns, not"
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "summary": {
361
+ "mean_score": 0.21333333333333335,
362
+ "tasks_passed": 0,
363
+ "total_tasks": 3,
364
+ "elapsed_seconds": 8.5
365
+ }
366
+ }
openenv.yaml CHANGED
@@ -131,7 +131,7 @@ tasks:
131
  passing_score: 0.60
132
  optimal_steps: 3
133
  grader:
134
- investigated_root_service: 0.15
135
  service_remediated: 0.45
136
  incident_resolved: 0.25
137
  efficiency_bonus: 0.15
@@ -148,7 +148,7 @@ tasks:
148
  passing_score: 0.60
149
  optimal_steps: 4
150
  grader:
151
- root_cause_identified: 0.20
152
  correct_attribution: 0.30
153
  db_recovered: 0.20
154
  incident_resolved: 0.20
@@ -167,7 +167,7 @@ tasks:
167
  passing_score: 0.60
168
  optimal_steps: 3
169
  grader:
170
- investigated_root_cause: 0.15
171
  correct_rollback: 0.40
172
  full_recovery: 0.20
173
  incident_resolved: 0.15
 
131
  passing_score: 0.60
132
  optimal_steps: 3
133
  grader:
134
+ investigated_root_service: 0.14
135
  service_remediated: 0.45
136
  incident_resolved: 0.25
137
  efficiency_bonus: 0.15
 
148
  passing_score: 0.60
149
  optimal_steps: 4
150
  grader:
151
+ root_cause_identified: 0.19
152
  correct_attribution: 0.30
153
  db_recovered: 0.20
154
  incident_resolved: 0.20
 
167
  passing_score: 0.60
168
  optimal_steps: 3
169
  grader:
170
+ investigated_root_cause: 0.14
171
  correct_rollback: 0.40
172
  full_recovery: 0.20
173
  incident_resolved: 0.15