Spaces:
Running
Running
Commit History
-
Fix critical ModuleNotFoundError by removing absolute cloud_sre_v2 imports
Harikishanth R160d7db -
Final submission: add reward curve, Colab notebook, Adversarial Designer integration, updated docs
Harikishanth Ree6f3b3 -
feat: Mount interactive Gradio dashboard to root URL
Harikishanth Ra3ab07f
-
feat: Hybrid OS-level + HTTP fault injection (70B Killer v2)
Harikishanth RBREAKING: __init__.py now uses lazy imports (fixes service subprocess crash) Architecture - 3-tier fault injection: Tier 1 (POSIX signals): SIGKILL process_crash, SIGSTOP for scheduler_stuck, config_locked, dns_resolution_failure, smtp_down, rate_limit_zero, circuit_breaker_stuck. SIGCONT on restart/reset. Tier 2 (Physical infra): SQLite EXCLUSIVE lock, file-backed queue overflow, fallocate disk_full, DB corruption with random bytes. Tier 3 (HTTP state): Service returns real 503/429/507 from /fault_inject. Key fixes: - __init__.py: Lazy imports prevent openenv chain killing 16 subprocesses - Dockerfile: All 16 service log directories created (was missing 10) - orchestrator: Single shared httpx.Client in check_health (16x faster) - orchestrator: SIGCONT before kill in restart_service and reset() - orchestrator: Disk junk cleanup and DB repair in reset() - environment: LLM Judge wired in _save_transcript (episode-end only) - _armed_cascade initialized in…939a84c
-
feat: balanced 100 SFT demos + latency injection + reward normalization
Harikishanth R- 100 SFT demos: 20 per tier (was 60 imbalanced) - 41 unique scenarios covered - Network latency injection: new adversarial fault type - Tier difficulty multiplier: harder tiers give higher rewards - Latency visible in health checks with p95 metrics - 8 adversarial fault types (was 7)bb19ac4 -
polish: professional cleanup for submission
Harikishanth R- Remove debug_info field from observation model - Remove all debug/test scripts from repo - Convert verbose debug logging to logger.debug - Rename singleton to PersistentCloudSRE (intentional pattern) - Clean queue drain docs to show flexible rate support - Regenerate SFT data generator for 50+ examples244347d -
fix: increase drain rate 50→200, generate SFT data (14 expert demos)
Harikishanth R- Default drain rate increased from 50 to 200 messages per call - Generated 14 expert SFT demonstrations across all 5 tiers - SFT warmup before GRPO = standard RL practice we should have done64f66ed -
fix: reduce warmup queue fill from 800 to 550 for solvability
Harikishanth RQueue threshold is 500, drain is 50 per call. At 800 fill, you need 7+ drains which doesn't fit in 10-step warmup budget. At 550, you need 2 drains to get below threshold — achievable in 4-5 steps.50c24ac -
CRITICAL FIX: singleton environment to preserve state across HTTP calls
Harikishanth RROOT CAUSE FOUND: OpenEnv HTTP framework creates a NEW environment instance for every /reset and /step call, then destroys it via close(). This means ALL state (step_count, history, faults, crashed services) was lost between API calls. The agent's step 2 had NO knowledge that step 1 happened. Resolution could NEVER trigger because min_steps was always 1 and has_attempted_fix was always False. FIX: Use a singleton factory that returns the same environment instance on every call. Override close() to be a no-op. This preserves all state across the full episode lifecycle (reset → step → step → ... → done). This bug has been present since the very first deployment. Every training run attempted was fundamentally broken — the model was playing 10 independent 1-step episodes, not one 10-step episode.085aa56 -
debug: add debug_info field to API response for resolution tracing
Harikishanth Rf9f6c4f -
debug: add resolution check logging to trace done=False bug
Harikishanth R748d9b8
-
fix(critical): prevent 1-step auto-resolve + missing log dirs
Harikishanth RROOT CAUSE FOUND: Episodes were resolving in 1 step because: 1. Agent sends 'status' (classified as health_check) 2. All services happen to be healthy (faults didn't persist or were invisible to check_health) 3. done=True immediately — no verification that agent DID anything FIX: Two guards added to _check_all_resolved done logic: - Guard 1: has_attempted_fix — requires at least one fix command (restart, drain, kill, config) before resolution is possible - Guard 2: min_steps_met — minimum 2 steps before resolution This ensures the agent must: Step 1: Diagnose (health_check, logs, metrics) Step 2+: Fix (restart, drain, etc.) Step 3+: Verify (health_check again) Also: Dockerfile now creates /var/log/cache and /var/log/notification directories (were missing, causing silent log write failures)98cf5fa -
fix(audit): 9 interlocking bugs across all tiers
Harikishanth RCRITICAL FIXES: 1. Removed hardcoded worker degradation from _inject_queue_overflow - Was making warmup_queue_overflow (max_steps=10, fill=800) IMPOSSIBLE - Was making single_queue_overflow (max_steps=15, fill=950) IMPOSSIBLE 2. Added dynamic infrastructure health overlay in check_health(): - queue.depth() > 500 → worker = degraded (auto-clears when drained) - database._is_fault_locked → payment = degraded (auto-clears on release) - Replaces hardcoded degradation for queue/db faults 3. Added cache + notification to grader service patterns - Graders were blind to cache(:8005) and notification(:8006) - warmup_cache_cold never got credit for targeting cache 4. Default drain rate changed from 10 to 50 - Matches 500-message degradation threshold - warmup(800): ~7 drains to resolve vs 70 before 5. System prompt now lists all 6 services for restart 6. queue drain output now shows remaining depth for agent visibility KEPT from previous fix: - _degraded_services stil…9acf713 -
fix(critical): cascade faults now ACTUALLY degrade services
Harikishanth RRoot cause: queue_overflow, cache_invalidation, and webhook_storm only wrote log entries but never changed service health. check_health() still returned 'healthy' for cascade-affected services, so the episode ended immediately. Fixes: - Added _degraded_services tracking in orchestrator - queue_overflow marks worker as degraded - cache_invalidation marks cache as degraded - webhook_storm marks notification as degraded - check_health() returns 'degraded' status for affected services - restart_service() clears degraded state (restart = fix) - queue drain controlled clears worker degradation (when depth < 100) - queue drain all TRIGGERS worker degradation (thundering herd!) - Cascade can't end episode in same step it triggers (race fix) - inject_cascade no longer double-injects primary fault3def94d -
fix: command executor routing for subprocess mode + reward gaming protection + mutable default bug
Harikishanth R- Fixed _handle_kill/_handle_restart to use KNOWN_SERVICES fallback when services={} (subprocess mode) - Added diminishing returns on command TYPES (not just exact repeats) - Service name bonus now requires prior diagnostic work - Phase progression bonus only fires on first transition to each phase - Fixed mutable default dicts/lists in CloudSREState dataclass - Added all 6 services to _handle_status port mapb2b9b91 -
fix(critical): cascade trigger now works for ALL fault types - was only checking db_lock and process_crash, now uses universal health-based detection
Harikishanth R0b7e26b -
fix(critical): cascade episodes ending before cascade triggers - agent was solving primary fault and episode ended immediately without secondary failure
Harikishanth R86ab55c -
fix(critical): reset() now accepts task_id from HTTP client - was ignoring cascade/single_fault requests and always running warmup
Harikishanth Ra890734 -
feat: Add modern landing page for Space root URL
Harikishanth Rcfcb767 -
feat: RLVE research overhaul + 6-service architecture
Harikishanth R- Reward normalization [-1.0, +1.0] (RLVE Appendix B) - Execute-with-time-limit (10s guard against reward hacking) - Auto-curriculum promotion (RLVE §2.2) - Smooth partial rewards (Lewis/HF Wordle-style) - Rubric monitoring functions (zero-weight) - Cache service (port 8005) — cache stampede pattern - Notification service (port 8006) — webhook retry storm - LoRA rank r=8, WandB integration, enhanced system prompt - 24/24 integration tests passing6b3095f
-
fix: max_concurrent_envs=1 (single-session subprocess env)
Harikishanth Raec32a8 -
feat: CloudSRE v2 — complete environment with adaptive sampling
Harikishanth R- 4 real microservices (payment, auth, worker, frontend) as subprocesses - Real SQLite DB with EXCLUSIVE lock fault injection - Real file-backed message queue with backpressure - Cascading failures: fix one service, break another - 17 static scenarios + dynamic adversarial generator - 5 task tiers (warmup → adversarial) with 5 graders - Adaptive weighted sampling (Theme #4: self-improvement) - GRPO training pipeline with 5-reward decomposition - Dual scoring: deterministic graders + LLM judge - Provider-agnostic: Gemini/OpenAI/Anthropic support - Dockerized for HF Spaces deployment0c79003