Spaces:
Sleeping
Sleeping
Commit History
-
FIX: Parse request body directly in /step override
Deepikab618887 -
FIX: Override /reset and /step to use global env when no session_id
DeepikaCRITICAL FIX for validator compatibility: When validator makes HTTP requests without session_id headers, OpenEnv creates a new environment instance per request. This breaks task progression (each step resets to task1). SOLUTION: - Override OpenEnv's /reset and /step routes - Check for x-session-id header - If NO session_id: use GLOBAL_ENV singleton (persists across requests) - If session_id provided: also use GLOBAL_ENV (fallback since not managed) This ensures: 1. Same env instance reused across all validator requests 2. current_step increments: 1→2→3→4→5→ADVANCE 3. Task progression works: task1→task2→task3→... 4. Episode completes successfully Test: test_global_env_fallback.py verifies after 16 steps we're on task2+, not stuck on task1.7009c01 -
FIX: Add global environment singleton fallback for session-less requests
DeepikaWhen validator doesn't send session_id (which is the case currently), the OpenEnv session manager creates a new environment per request. This breaks progression: each step resets to task1_json. SOLUTION: - Create GLOBAL_ENV singleton instance - Check for session_id on /reset and /step - If NO session_id: use GLOBAL_ENV (persist across requests) - If session_id present: let OpenEnv handle it (future compatibility) This allows validator to progress through all 7 tasks in single episode, even without session ID support. Key changes: - GLOBAL_ENV = ConfigDebugEnvironment() - /reset_fallback checks for session_id - /step_fallback checks for session_id - Returns proper fields required by validator Diagnostic logs: - [RESET_FALLBACK] No session_id, using GLOBAL_ENV - [STEP_FALLBACK] No session_id, using GLOBAL_ENV28487f1 -
ADD: Session state diagnostics
DeepikaAdded comprehensive logging to diagnose session persistence issue: ConfigDebugEnvironment: - [SESSION_DEBUG] logs environment object_id in reset() and step() - Shows if same env instance is reused or new one created - Tracks _episode_id for session correlation StepPayloadWrapperMiddleware: - [SESSION_MIDDLEWARE] logs x-session-id from headers/cookies - Confirms session ID is preserved across requests - Tracks /step request lifecycle Expected correct output: [SESSION_DEBUG] step() called on env object_id=XXXXX (same ID repeated) Bug indicator: [SESSION_DEBUG] step() called on env object_id=AAAAA [SESSION_DEBUG] step() called on env object_id=BBBBB (different!) This will show if new environment created per request.bac0ba4 -
ADD: Debug logging to progression logic
DeepikaAdded comprehensive debug logs to understand why task progression fails: - BEFORE_STEP: Log current state when step() is called - PROGRESSION_CHECK: Log reward and step counters - TASK_DONE: Log decision logic (reward >= 0.99 or step >= 5) - ADVANCING: Log when transitioning to next task - NEW_TASK: Log new current_task_index and task_id - EPISODE_COMPLETE: Log when all tasks finished This will help identify if: 1. Step counter is incrementing correctly 2. Task completion check ever triggers 3. current_task_index is being incremented 4. New task is being set properlya65927e -
TRIGGER: Force HF Space rebuild to deploy session state fixes
DeepikaThe fixes are committed (0567ca6) but HF Space container hasn't rebuilt. This commit forces the rebuild pipeline to pick up the fixed code.f45c79e -
FIX: Remove custom /reset override to enable session state management
DeepikaCRITICAL BUG FIX: - Custom /reset was creating new env instance each time - Prevented progress beyond task1_json - Removed custom override to use OpenEnv's auto-generated /reset - OpenEnv's /reset maintains session state across calls - ResetSchemaFixMiddleware still fixes response schema - Validator can now progress through all 7 tasks0567ca6 -
FIX: Add middleware to wrap direct /step payload format for validator compatibility
Deepikaed3a617 -
FIX: Handle null/None values gracefully in json_grader and yaml_grader - all edge cases now safe
Deepikabc12c74 -
Revert "FIX: Clamp all grader rewards to max 0.99 - prevent validation errors"
DeepikaThis reverts commit 798f3f9f51617503136dee2f6cc650d64c3bb38a.ac295d7 -
FIX: Clamp all grader rewards to max 0.99 - prevent validation errors
Deepika798f3f9
-
SIMPLIFY: Override /reset to create fresh environment directly, avoiding original endpoint call
Nanda Kumar Kondreddycf3a550 -
FIX: Properly type request parameter in /reset endpoint as fastapi.Request
Nanda Kumar Kondreddya91aa82 -
CRITICAL FIX: Replace /reset middleware with direct endpoint override - ensure base fields included
Nanda Kumar Kondreddyf2a42f5 -
ENHANCE: Update reset middleware to include base Observation fields (done, reward, metadata) at top level
Nanda Kumar Kondreddy270a32f -
FIX: Add middleware to correct /reset response schema - add 'info' field, remove reward/done
Nanda Kumar Kondreddy5bc98e9 -
Add comprehensive instrumentation to all graders for validator diagnostic
Nanda Kumar Kondreddy4891046 -
Add detailed instrumentation to grade_task1 and normalize_reward for validator debugging
Nanda Kumar Kondreddy31647f3 -
CRITICAL RUNTIME FIX: Remove tuple unpacking from environment handlers - graders now return FLOAT only, not tuples
Nanda Kumar Kondreddyb8c69e2 -
CRITICAL FIX: Graders now return FLOAT ONLY (not tuples) for validator contract compliance - extracted float from raw grader tuples
Nanda Kumar Kondreddyc256e38 -
CRITICAL FIX: Wrappers now return full tuples (reward, error, bugs) instead of just floats - fixes env.py unpacking
Nanda Kumar Kondreddycf1808d -
Add comprehensive runtime grader validation endpoint (/validate-graders) to audit actual grader outputs under validator-style conditions
Nanda Kumar Kondreddy5e5a089 -
CRITICAL WIRING FIX: Import wrapped graders from grader_api, not raw graders - ensures normalization is used
Nanda Kumar Kondreddy1566ba9 -
FINAL FIX: Centralized universal reward normalization - GUARANTEES all scores in (0.01, 0.99)
Nanda Kumar Kondreddy6d73738 -
CRITICAL BUG FIX: Clamp reward on ALL early return paths - prevents returning 0.0
Nanda Kumar Kondreddy6138889 -
Enhanced /diagnostics: validate manifest import paths with importlib (mirrors validator behavior)
Nanda Kumar Kondreddyc87f77e -
Add startup and diagnostics logging to debug task loading
Nanda Kumar Kondreddy9331aaf -
Simplify metadata task schema to minimal fields (id, has_grader) for validator compatibility
Nanda Kumar Kondreddy491de7d -
PROPER FIX: Remove default /metadata route before registering custom override with tasks
Nanda Kumar Kondreddy3a48cf2 -
CRITICAL FIX: Add /metadata endpoint with task enumeration for validator discovery
Nanda Kumar Kondreddya2f8fcd -
Add validator invocation logging to all grader wrappers
Nanda Kumar Kondreddye924908 -
Add debug endpoint to verify deployed grader fix
Nanda Kumar Kondreddyafad682 -
Fix: Enforce strict open interval (0.01, 0.99) for all grader rewards - validator compliance
Nanda Kumar Kondreddy8e7ae76 -
Phase 2: Benchmark Quality Upgrades - Progressive graders, realistic multi-bug tasks, ground_truth exposure
Nanda Kumar Kondreddyb43aff5