-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenenv.yaml
More file actions
39 lines (39 loc) · 1.25 KB
/
Copy pathopenenv.yaml
File metadata and controls
39 lines (39 loc) · 1.25 KB
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
spec_version: 1
name: sql-review-env
version: "1.0.0"
description: "Train AI agents to review, fix, and optimize SQL queries"
tags: [openenv, sql, code-review, developer-tools]
runtime: fastapi
entry_point: server.app:main
tasks:
- id: syntax-fix
difficulty: easy
description: "Fix a SQL query containing deliberate syntax errors"
- id: performance-tune
difficulty: medium
description: "Rewrite a slow query to eliminate full table scans"
- id: schema-design
difficulty: hard
description: "Design a normalized relational schema from requirements"
- id: aggregation-mastery
difficulty: medium
description: "Write a GROUP BY + HAVING aggregate query for revenue analysis"
- id: data-mutation
difficulty: medium
description: "Execute a safe, targeted UPDATE with a precise WHERE clause"
- id: advanced-joins
difficulty: hard
description: "Construct a LEFT JOIN that correctly preserves NULL rows"
observation_space:
type: object
properties:
task_id: {type: string}
db_schema: {type: string}
query: {type: string}
expected_hint: {type: string, nullable: true}
error_message: {type: string, nullable: true}
step: {type: integer}
action_space:
type: object
properties:
sql: {type: string}