File size: 1,792 Bytes
2db0a88
5d46764
2db0a88
 
 
 
ff84a08
6d75c2b
 
 
 
 
 
 
2da7963
6d75c2b
 
 
c5bfecb
 
 
5d46764
6d75c2b
 
2da7963
6d75c2b
 
 
c5bfecb
 
 
5d46764
6d75c2b
 
2da7963
6d75c2b
 
 
c5bfecb
 
 
5d46764
6d75c2b
 
5d46764
 
 
 
 
a8a9661
5d46764
 
 
 
2da7963
88c262b
2da7963
 
88c262b
 
2da7963
 
88c262b
 
2da7963
 
88c262b
 
 
6d75c2b
 
 
 
 
2da7963
6d75c2b
2da7963
6d75c2b
2da7963
6d75c2b
2da7963
6d75c2b
2da7963
6d75c2b
2da7963
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
spec_version: 1
version: "1.0.0"
name: synapse_code_auditor
type: space
runtime: fastapi
app: app.main:app
port: 7860

description: >
  OpenEnv environment for deterministic AI code review evaluation across three tasks
  (easy, medium, hard) with automated deterministic graders. Per-task scores are in (0, 1).

tasks:
  - id: easy
    task_id: easy
    name: Detect syntax errors
    difficulty: easy
    max_steps: 1
    grader:
      type: deterministic
      enabled: true
    has_grader: true
    score_range: [0.01, 0.99]
  - id: medium
    task_id: medium
    name: Suggest optimization
    difficulty: medium
    max_steps: 1
    grader:
      type: deterministic
      enabled: true
    has_grader: true
    score_range: [0.01, 0.99]
  - id: hard
    task_id: hard
    name: Full code review with scoring
    difficulty: hard
    max_steps: 1
    grader:
      type: deterministic
      enabled: true
    has_grader: true
    score_range: [0.01, 0.99]

endpoints:
  health: GET /health
  metadata: GET /metadata
  tasks: GET /tasks
  manifest: GET /openenv.yaml
  graders_manifest: GET /graders.json
  reset: POST /reset
  step: POST /step
  state: GET /state

# Top-level graders (task_id + task aliases for static hub scanners).
graders:
  - task_id: easy
    task: easy
    enabled: true
    type: deterministic
  - task_id: medium
    task: medium
    enabled: true
    type: deterministic
  - task_id: hard
    task: hard
    enabled: true
    type: deterministic

grading:
  type: automated
  deterministic: true
  graders:
    - task_id: easy
      task: easy
      type: deterministic
      enabled: true
    - task_id: medium
      task: medium
      type: deterministic
      enabled: true
    - task_id: hard
      task: hard
      type: deterministic
      enabled: true