Spaces:
Running
Running
Commit History
-
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
-
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(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
-
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