samrat-rm commited on
Commit
a583a04
·
1 Parent(s): 26f0b41

fix: score format and range

Browse files
Files changed (2) hide show
  1. inference.py +2 -2
  2. openenv.yaml +19 -19
inference.py CHANGED
@@ -9,7 +9,7 @@ Environment variables:
9
 
10
  Stdout format (per episode):
11
  [START] task=<name> env=whydiditfail model=<model>
12
- [STEP] step=<n> action=<json> reward=<0.00> done=<bool> error=<null|msg>
13
  [END] success=<bool> steps=<n> rewards=<csv>
14
  """
15
 
@@ -207,7 +207,7 @@ async def run_episode(
207
  try:
208
  result = await env.step(action)
209
  except ConnectionClosedError as e:
210
- print(f"[STEP] step={step} action={action.action_type} reward=0.00 done=true error={e}", flush=True)
211
  break
212
  obs = result.observation
213
  reward = round(min(0.99, result.reward or 0.01), 2)
 
9
 
10
  Stdout format (per episode):
11
  [START] task=<name> env=whydiditfail model=<model>
12
+ [STEP] step=<n> action=<json> reward=<0.01> done=<bool> error=<null|msg>
13
  [END] success=<bool> steps=<n> rewards=<csv>
14
  """
15
 
 
207
  try:
208
  result = await env.step(action)
209
  except ConnectionClosedError as e:
210
+ print(f"[STEP] step={step} action={action.action_type} reward=0.01 done=true error={e}", flush=True)
211
  break
212
  obs = result.observation
213
  reward = round(min(0.99, result.reward or 0.01), 2)
openenv.yaml CHANGED
@@ -24,13 +24,13 @@ tasks:
24
  Agent response:
25
  {response}
26
 
27
- Score 0.0 to 1.0:
28
- - 1.0: Correct failure mode with reasoning that cites specific numeric values from the logs
29
- - 0.7: Correct failure mode but reasoning is vague or missing specific numbers
30
- - 0.3: Wrong label but description matches a related concept
31
- - 0.0: Wrong failure mode or no diagnosis submitted
32
 
33
- Reply with a single float between 0.0 and 1.0. No explanation.
34
 
35
  - id: task_medium
36
  difficulty: medium
@@ -50,13 +50,13 @@ tasks:
50
  Agent response:
51
  {response}
52
 
53
- Score 0.0 to 1.0:
54
- - 1.0: Correct failure mode with reasoning citing both log values AND config parameters
55
- - 0.7: Correct failure mode but reasoning only references logs or config, not both
56
- - 0.3: Wrong label but description matches a related concept
57
- - 0.0: Wrong failure mode or no diagnosis submitted
58
 
59
- Reply with a single float between 0.0 and 1.0. No explanation.
60
 
61
  - id: task_hard
62
  difficulty: hard
@@ -77,11 +77,11 @@ tasks:
77
  Agent response:
78
  {response}
79
 
80
- Score 0.0 to 1.0:
81
- - 1.0: Correct failure mode AND a specific actionable fix addressing the root cause
82
- - 0.8: Correct failure mode with a reasonable fix that lacks specifics
83
- - 0.5: Correct failure mode but fix is vague, wrong, or missing
84
- - 0.2: Wrong failure mode but fix is incidentally relevant
85
- - 0.0: Wrong failure mode and no useful fix
86
 
87
- Reply with a single float between 0.0 and 1.0. No explanation.
 
24
  Agent response:
25
  {response}
26
 
27
+ Score strictly between 0.0 and 1.0 (exclusive — never return exactly 0.0 or 1.0):
28
+ - 0.99: Correct failure mode with reasoning that cites specific numeric values from the logs
29
+ - 0.70: Correct failure mode but reasoning is vague or missing specific numbers
30
+ - 0.30: Wrong label but description matches a related concept
31
+ - 0.01: Wrong failure mode or no diagnosis submitted
32
 
33
+ Reply with a single float strictly between 0.0 and 1.0 (e.g. 0.99, not 1.0). No explanation.
34
 
35
  - id: task_medium
36
  difficulty: medium
 
50
  Agent response:
51
  {response}
52
 
53
+ Score strictly between 0.0 and 1.0 (exclusive — never return exactly 0.0 or 1.0):
54
+ - 0.99: Correct failure mode with reasoning citing both log values AND config parameters
55
+ - 0.70: Correct failure mode but reasoning only references logs or config, not both
56
+ - 0.30: Wrong label but description matches a related concept
57
+ - 0.01: Wrong failure mode or no diagnosis submitted
58
 
59
+ Reply with a single float strictly between 0.0 and 1.0 (e.g. 0.99, not 1.0). No explanation.
60
 
61
  - id: task_hard
62
  difficulty: hard
 
77
  Agent response:
78
  {response}
79
 
80
+ Score strictly between 0.0 and 1.0 (exclusive — never return exactly 0.0 or 1.0):
81
+ - 0.99: Correct failure mode AND a specific actionable fix addressing the root cause
82
+ - 0.80: Correct failure mode with a reasonable fix that lacks specifics
83
+ - 0.50: Correct failure mode but fix is vague, wrong, or missing
84
+ - 0.20: Wrong failure mode but fix is incidentally relevant
85
+ - 0.01: Wrong failure mode and no useful fix
86
 
87
+ Reply with a single float strictly between 0.0 and 1.0 (e.g. 0.99, not 1.0). No explanation.