Spaces:
Paused
Paused
Commit History
-
Sync from GitHub: serving-only image deps, app_port, discoverability tags, buildable package
Verified signature60dfa24
-
feat(v2): execution-grounded rewards via DuckDB -- the key differentiatorβ
Abhinav SinghTHE CORE INNOVATION: optimized SQL queries are ACTUALLY EXECUTED against a real in-memory DuckDB database. Reward is computed from measured performance, not keyword heuristics. New files: executor.py β DuckDB engine with 4 synthetic tables (users 10k, orders 500k, products 1k, events 1M). Runs both the original and optimized query 3x each, returns median timing, result correctness, and EXPLAIN plan. leaderboard.py β In-memory best-score tracker per task, surfaced via the new /leaderboard endpoint. test_env.py β Integration test confirming real speedup (3-4x on Task 1 measured on local machine). Updated reward function (graders.py): Real Execution Speedup 35% (was: not measured at all) Result Correctness 20% (NEW: both queries must return same data) Issue Detection 25% (was: 60% keyword-only) Approval Correctness 8% Summary Quality 7% β¦c15d346
-
feat(server): add FastAPI server with all OpenEnv endpointsβ
Abhinav Singhserver/app.py β uvicorn FastAPI app on port 7860: POST /reset β start new episode, accepts optional {task_id} body, defaults to task_1_basic_antipatterns POST /step β submit Action, returns StepResult with Observation+Reward GET /state β current EnvironmentState (non-destructive) GET /tasks β list all tasks with descriptions and action schema POST /grader β grade an action against active task without advancing POST /baseline β runs inference.py subprocess and returns stdout GET / β health check returning env name and available tasks CORS middleware enabled for all origins (required for HF Space)e8bc352