Spaces:
Sleeping
Sleeping
Commit History
-
Nuclear clamp: every reward source in the codebase now returns (0.05, 0.95)
- rl/grader.py: compute_reward and compute_episode_reward both clamp - rl/environment.py: record_step and end_episode clamp returned values - openenv.yaml: reward.range set to [0.05, 0.95] - /env/info: reward_range matches yaml - /health: returns "healthy" (openenv-core expects this exact string)719c147
-
Clamp all remaining score leak paths: /state, step_rewards, demo SSE
- ep.step_rewards now stores clamped task_score instead of raw RL reward (compute_reward can return exact 1.0 or negative values) - /state endpoint returns clamped step_rewards and total_reward - Removed info.rl_reward from /step response (leaked unclamped reward) - demo.py SSE chat/benchmark endpoints now clamp task_score - Added .dockerignore excluding backend/data/ so persisted bandit state from prior runs can't leak unclamped values into the image Single source of truth: _clamp_score() in sql_env.py → [0.05, 0.95]e99d0aa -
Fix reward.value to always be task_score in (0,1) exclusive
The validator checks reward.value from /step responses. Previously this was the RL reward (compute_reward) which could be exactly 1.0 on first-attempt success or negative on failure. Now reward.value = task_score (clamped to (eps, 1-eps) in grade_response). The RL reward is preserved in info.rl_reward for bandit training. Also corrects reward_range in /env/info to [0.0, 1.0].b86d426 -
fix
55f54ec -
fix
44ef33f -
fix
17e7bd7 -
fix
ed79e58 -
fix
4ec680a -
fix
b00a200 -
Fix UnboundLocalError: remove duplicate local import of REPAIR_ACTION_BY_NAME
c2894a4 -
Surface GEPA optimization: prompt history, live banner, smart retry
Backend: - Add /api/prompt-history endpoint (pareto front + query count + nextOptimizeAt) - Emit gepa_start/gepa_done SSE events so banner shows during optimization - Accept previousSql in execute-query to tell LLM to try a different approach Frontend: - Retry after marking "wrong" auto-executes with previous SQL as context (button changes label to "Retry differently") - gepa_done event refreshes PromptEvolution in right sidebar immediately - PromptEvolution shows query count + progress bar toward next optimization - PromptEvolution polls /api/prompt-history every 30saa3ae1f -
Fix IndexError: skip empty-choices chunks from HF Router streaming
8c8093f -
Add LLM diagnostics: /api/test-llm endpoint + startup/error logging
- GET /api/test-llm: shows token status, model, api_base, and tests a real call - Startup prints LLM config (token set/not-set, model, base_url) to logs - LLM exceptions in execute-query now print to stdout (visible in container logs)63cbec3 -
Surface real error messages and fix LLM exception formatting
- LLM exceptions (401, rate limit, etc.) now show clean message instead of raw HTML or full stack trace - Backend error events now consistently use 'message' field - Frontend reads event.message ?? event.error so actual errors are shown - Bail early if LLM returns empty responsee9bea1b -
Fix chat SSE events to match frontend protocol (result+done instead of success)
f4110fc -
Fix chat query failures and benchmark ID mismatches
- Free-form chat: use error-based success check instead of task grader (grader compared against wrong expected results, causing all queries to fail) - Add /api/benchmark-questions endpoint to expose real task question IDs - Benchmark SSE: rename query_id→id, success→pass, overall_score→overallScore to match frontend field names - Add queryIds filtering support to BenchmarkRequest - Frontend: load benchmark questions from API instead of hardcoded IDs (E1-E5 didn't match backend sq-01–sq-05) - Remove duplicate difficulty tabs from BenchmarkPanel8ae8e0b -
fix: GEPA current_generation, task_id mapping, Connect DB button, remove difficulty from header
f0b682f -
fix: align rl-state API shape with frontend, add error boundary
ce1c471 -
Initial submission: SQL Agent OpenEnv for Meta+HF hackathon
3c665d2