Spaces:
Runtime error
Runtime error
Commit History
-
fix: clamp all scores strictly to (0, 1) β no 0.0 or 1.0β
- graders: episode_score returns 0.01 for empty, clamps to [0.01, 0.99] - env/base: terminal_step and invalid action use 0.01 not 0.0/-0.1 - validate: updated local check to match strict (0,1) requirementfdc7ded
-
fix: clamp all task scores to strict (0,1) range β never exactly 0.0 or 1.0β
- All graders now clamp reward values to [0.01, 0.99] - inference.py score computation clamps to [0.01, 0.99] - Fixes validator rejection: 'task scores must be strictly between 0 and 1'226ad10
-
Fix critical crash bug + audit fixesβ
1. CRASH FIX: grader_hard.py line 213 β critical_caught was undefined (NameError). Now computed from _bugs_caught() before use. This would crash if any LLM approved a critical-severity PR. 2. README: Fixed stale references: - Language enum: 4 β 7 (rust, typescript, ruby added) - Test count: 19 β 21 - HF URL: openenv β ragavrida - Validation count: 15 β 17 3. inference.py: Added 3-attempt retry with exponential backoff for LLM API calls to handle transient failures. 4. env/models.py: Updated language comment to match validator. All verified: 21/21 tests, 17/17 validation, baseline runs.1a6681a -
Fix all 4 remaining issues for hackathonβ
1. comments=3 frozen: Server now rebuilds obs after add_comment (task_hard track comments, server updates state on each comment) 2. Heuristic > LLM: Fixed eval_live.py hard scoring to use decision-only rewards (not intermediate ack rewards) 3. 20 β 50 PR templates: Added 30 new PRs across 7 languages (python, java, go, js, typescript, rust, ruby), all 8 bug categories. Expanded PRFile language validator. 4. World model trained: Added train_world_model.py with - Pure Python MLP (no PyTorch/TF dependency) - 340 transitions, 100 epochs - Copy baseline 0.025, model 0.047 - Documents the research challenge for KW-WM7e55f05 -
Fix 4 critical grader bugsβ
Problem 1 β Medium grader penalties too aggressive: - Critical position: -0.30 β -0.15 - Security position: -0.20 β -0.10 - tau=0.0 (mediocre) now scores ~0.25 instead of 0.0 - Heuristic medium: 0.41 β 0.47 Problem 2 β Hard grader comment spam exploit: - Agent was looping add_commentΓ3 β request_changes for guaranteed points - Added consecutive_comments tracking with decaying ack reward - Reward: 0.05 β 0.03 β 0.01 for consecutive comments without decision - Counter resets on approve/request_changes Problem 3 β Frozen observation state (comments=3 on every step): - After add_comment, observation now rebuilds from task state - comment_count properly increments in returned state - info dict now includes comments_so_far and consecutive_comments Problem 4 β Difficulty now monotonic: Easy (0.80) > Medium (0.47) > Hard (0.37) βe130396 -
Improve grader quality + research framingβ
- Hard grader tightened: LINE_TOLERANCE 5β3, specificity requires 2+ keywords, coverage counts per-bug-line instead of binary, depth penalty for shallow reviews - Hard heuristic baseline dropped from 0.69 β 0.37 (proper difficulty progression) - Implemented coverage_bonus (+0.15 at episode end for thorough reviews) - Added research framing to README intro (first RL benchmark for knowledge work) - Updated baseline scores to match tightened grader470008d -
CodeReviewEnv v1.0 β OpenEnv-compliant submissionβ
- 3 tasks (easy/medium/hard) with deterministic graders - Spec-compliant inference.py with [START]/[STEP]/[END] per-task logs - Root-level baseline.py (heuristic, no API key needed) - Fixed reward double-counting bug in _apply_reward_shaping - 17/17 validation checks, 21/21 tests passing - Docker-ready on port 7860 for HF Spacesdbf5e96