Nanda Kumar Kondreddy commited on
Commit
491de7d
·
1 Parent(s): 3a48cf2

Simplify metadata task schema to minimal fields (id, has_grader) for validator compatibility

Browse files
Files changed (1) hide show
  1. server/app.py +5 -5
server/app.py CHANGED
@@ -61,19 +61,19 @@ def debug():
61
 
62
  @app.get("/metadata")
63
  def metadata():
64
- """Override OpenEnv metadata endpoint with task enumeration for validator discovery."""
 
 
 
 
65
  print("[VALIDATOR] GET /metadata called")
66
  return {
67
  "name": "ConfigDebugEnvironment",
68
  "description": "An RL environment for training AI agents to debug broken configuration files",
69
  "version": "1.0.0",
70
- "type": "space",
71
  "tasks": [
72
  {
73
  "id": tid,
74
- "name": get_task(tid).description,
75
- "difficulty": get_task(tid).difficulty,
76
- "num_bugs": get_task(tid).num_bugs,
77
  "has_grader": True,
78
  }
79
  for tid in TASK_ORDER
 
61
 
62
  @app.get("/metadata")
63
  def metadata():
64
+ """Override OpenEnv metadata endpoint with task enumeration for validator discovery.
65
+
66
+ Task schema kept MINIMAL to avoid validator schema rejection:
67
+ Only include fields the validator expects: id, has_grader
68
+ """
69
  print("[VALIDATOR] GET /metadata called")
70
  return {
71
  "name": "ConfigDebugEnvironment",
72
  "description": "An RL environment for training AI agents to debug broken configuration files",
73
  "version": "1.0.0",
 
74
  "tasks": [
75
  {
76
  "id": tid,
 
 
 
77
  "has_grader": True,
78
  }
79
  for tid in TASK_ORDER