Spaces:
Runtime error
Runtime error
Commit History
-
fix(runtime): stabilize live admission boot path (#102)
Lars TalianUnverified signature5b99233 -
Make mutation policy weights explicit
Lars Talian228ed67 -
Wire console to real episode state
Lars Taliane37c7b1 -
fix(app): mount Gradio dashboard at /dashboard to avoid /web conflict
Aaron BrownThe OpenEnv Playground at /web provides interactive reset/step via WebInterfaceManager's persistent environment. Moving the custom Gradio dashboard to /dashboard prevents route conflicts and lets the built-in Playground handle user interaction with services that persist across requests.0fd9230 -
fix(services): preserve subprocess services across HTTP request lifecycle
Aaron BrownThe stateless HTTP handler creates and closes an env per request. In close(), _stop_services() killed daemons that reset() had just started. Skip service teardown in close() for subprocess mode — services are global system processes managed by reset() episode lifecycle instead. Also removes debug trace logging (file + stderr) added during service startup investigation.8b3ca35 -
debug: stderr trace in reset and service startup
Aaron Brown7450122 -
debug: add reset() entry trace
Aaron Brownc1717fc -
Fix lint packaging and fail closed runtime paths (#93)
Lars TalianUnverified signature6e4e622 -
Merge remote-tracking branch 'origin/main' into codex/issue-77-20260308
Lars Talianf440eac -
Merge remote-tracking branch 'origin/main' into codex/issue-77-20260308
Lars Talian# Conflicts: # Dockerfile # README.md # src/open_range/server/runtime.pyecc152d -
Merge remote-tracking branch 'origin/main' into codex/issue-77-20260308
Lars Talian# Conflicts: # src/open_range/server/runtime.py0d7e48b -
debug: add service startup trace logging to /tmp
Aaron Brown85e394d -
fix(services): use Popen for daemon starts, remove fallbacks, dedup rsyslogd
Aaron Brown- Switch from sp.run+capture_output to Popen+DEVNULL for daemon starts to avoid SIGCHLD zombie reaper racing with sp.run's waitpid - Remove hardcoded fallback SnapshotSpec from _select_snapshot — raise RuntimeError when no snapshot source is available - Deduplicate daemon names in _from_topology (firewall + siem both mapped to rsyslogd, causing duplicate starts) - Add rsyslogd PID file cleanup to init commands - Update tests to provide snapshots explicitlyad5992a -
Enforce strict live admission defaults in managed runtime (#90)
Lars TalianUnverified signatureb33db9f -
Enforce strict managed validator defaults with explicit offline opt-out
Lars Taliana72929a -
Merge pull request #87 from open-cybernauts/codex/issues-72-74-75
Lars TalianUnverified signatureFix #72 #74 #75: service-status grounding, synthetic alerts fallback, console session scopeeddb429 -
runtime: canonicalize snapshot store semantics and revalidate persisted snapshots
Lars Taliand2dbaf9 -
Implement issues #72 #74 #75 env grounding and console scope
Lars Talian86c1c19 -
Fix service startup in containers
Aaron Brown- service_manifest.py: Add container-compatible init_commands (disable imklog for rsyslog, ensure MySQL data dir, postfix aliases) - environment.py: Add zombie reaper for PID 1, isolate service processes with start_new_session=True - Dockerfile: Clear stale snapshots so runtime regenerates with current service specs48525dd -
Isolate service processes from PID 1 to prevent crashes
Aaron BrownUse start_new_session=True for all service init and start commands to prevent child daemon processes from sending signals to the uvicorn process group. Also ensure all start commands are properly backgrounded.dd66d36 -
Ground Red/Blue rewards and finding validation
Lars Talianc51ff20 -
Merge branch 'main' of https://github.com/open-cybernauts/open-range into codex/issue-sweep-20260308
Lars Talian# Conflicts: # tests/test_builder.py0cfc06d -
Fix HF Space startup: defer runtime.start() to first reset()
Aaron BrownThe synchronous runtime.start() was blocking FastAPI startup events, preventing the health check from passing on cpu-basic hardware. The runtime already has lazy-start logic in acquire_snapshot().a4d58ae -
fix(runtime): preserve per-host service specs and role-aware routing
Lars Talianf0faee1 -
Add Gradio range dashboard and enable web interface
Aaron Brown- Add custom Gradio tab with network topology, reward bars, flag status - Mount at /web via gr.mount_gradio_app (compatible with installed openenv) - Add gradio>=4.0.0 to dependencies - Set ENABLE_WEB_INTERFACE=true in Dockerfileaef9d26 -
fix: resolve runtime merge artifact and stabilize handlers
Lars Talian2b44fa8 -
Fix difficulty calibration, deduplicate golden path, harden prompts
Aaron Brown- TemplateOnlyBuilder: cap vuln count to fit tier step window (±20%), deduplicate shared recon steps (e.g. nmap) across multi-vuln snapshots - DifficultyCheck: use round() instead of int() for upper bound to avoid off-by-one truncation - Builder prompts: reframe language for authorized security training context - CLI: add reward_grounding to Docker-required checks - Environment: respect OPENRANGE_MOCK=1 env var for forced mock mode53ccc8a -
Remove hardcoded fallbacks, add snapshot-driven service lifecycle
Aaron Brown- Remove _LEGACY_STOP_DAEMONS, _start_services_legacy, _declared_service_daemons - _stop_services and _capture_service_pids derive daemons from snapshot.services - _start_snapshot_services skips when no service specs (no legacy fallback) - _resolve_target reads topology roles/zones, raises if missing - _select_snapshot raises RuntimeError when no snapshot provided - _get_pending_alerts returns [] instead of synthetic fallback - Renderer auto-populates snapshot.services via generate_service_specs - start.sh supports ServiceSpec-driven startup alongside legacy path - Tests updated: explicit snapshot in all reset() calls, 114 env tests pass - 70 new service spec tests (models, generation, lifecycle, renderer)7fedc25 -
Fix service ordering: start daemons before loading SQL/data
Aaron Brown- Start services BEFORE applying snapshot so MySQL/LDAP are ready to receive SQL/LDIF payloads during file deployment - Auto-create databases referenced by USE statements in snapshot SQL - Add smbclient to Dockerfile for agent SMB enumerationc019c91 -
Add episode CLI, synthetic data pipeline, NPC generalization, service manifest
Aaron Brown- Add `openrange episode` command (golden-path replay + interactive REPL) - Add synthetic data generation pipeline with teacher agents and dataset helpers - Generalize NPC actions/traffic scripts to derive targets from SnapshotSpec - Add service_manifest.py for snapshot-declared service lifecycle - Add replay_agent, dataset module, NPC reward coupling tests - Graceful container resolution when Docker is available but no containers running - Skip tests that depend on deleted snapshot fixtures - Remove scripted_agent (replaced by replay_agent)f016eb7 -
Wire service provisioning into subprocess mode reset()
Aaron Brown- Add _start_snapshot_services() to start services (nginx, mysql, slapd, rsyslog, smbd, postfix, sshd) based on snapshot topology hosts - Add _stop_services() to cleanly stop previous episode services - Initialize ZoneRouter from snapshot topology on each reset - Fix start.sh EXIT trap that was killing services immediately1566173 -
Isolate runtime-backed snapshots across resets
Lars Talian313a7b0 -
Merge pull request #52 from open-cybernauts/feat/issue50-canonical-base-graph-policy
Lars TalianUnverified signatureImplement canonical base graph and mutation policy0a3cd7a -
Implement canonical base graph and mutation policy
Lars Talian80ef9e0 -
Robust app startup: handle missing openenv/runtime gracefully
Aaron Brownapp.py now catches import and initialization errors at every level: - If ManagedSnapshotRuntime fails, runs without managed snapshots - If openenv is missing, creates standalone FastAPI with equivalent endpoints (/health, /reset, /step, /state) - If create_app() fails entirely, creates minimal health endpoint so HF Spaces can at least show diagnostic info890f5f3 -
Remove hardcoded infra, enforce snapshot-driven architecture
Aaron Brown- environment.py: Remove hardcoded MySQL password (now from snapshot topology users), hardcoded container routing (now from topology host roles/zones), mock mode from production paths, hardcoded alert tool names (now queries real SIEM). Container name resolution raises on failure instead of silent fallback. - zone_router.py: Remove all hardcoded ZONE_ROUTES/HOST_ZONES/HOST_PORTS constants. ZoneRouter is now purely snapshot-driven via from_snapshot(). Fail-closed for unknown zones. Added from_manifest() classmethod. - mutator.py: Add post-build diversity enforcement (rejects snapshots repeating vuln classes from last 3 episodes or injection points from last 5). Remove hardcoded _INJECTION_POINTS dict (now dynamic). - npc_manager.py: Remove hardcoded _SCRIPT_CONTAINER_MAP and static env vars. Derive container mapping and scripts from snapshot topology. - runtime.py: Remove hardcoded MySQL password, add snapshot diversity tracking in acquire_snapshot(), add curriculum-…a24d0f2 -
Tighten manifest-grounded live admission
Lars Talian83f2912 -
Add live admission for rendered child snapshots
Lars Talian307d729 -
Merge upstream changes, resolve conflicts
Aaron Brown- Take local validator profile system over upstream simplified version - 698/700 tests passing (2 pre-existing upstream lineage metadata failures)eaa2876 -
Production all-in-one container with real service execution
Aaron Brown- Replace mock mode with subprocess execution for production - Add execution_mode parameter: auto/docker/subprocess - Auto-detect: env var OPENRANGE_EXECUTION_MODE > Docker SDK > subprocess - Subprocess mode executes commands via bash against local services - _apply_snapshot_subprocess() writes files directly to filesystem - Add zone_router.py: Python zone routing replaces iptables - All-in-one Dockerfile: ubuntu:22.04 + nginx, php-fpm, mysql, slapd, rsyslog, samba, postfix, nmap, sqlmap, hydra, nikto, etc. - start.sh: follows OpenEnv openapp_env pattern (bg services + exec uvicorn) - HEALTHCHECK with 60s start-period for service boot time - Unit tests preserved: docker_available=False still uses mock mode - 689 tests passing49d1c75 -
Cleanup: fix bugs, remove dead code, add missing packages
Aaron Brown- Add openenv fallback stubs in client.py (matches models.py pattern) - Fix auth command parsing with maxsplit=3 (passwords with spaces) - Fix reward exception silencing: log at ERROR with traceback - Add snapshot validation: default flags/topology/task if None - Fix shell injection in file deploy with shlex.quote() - Remove async anti-pattern in rollout.py - Remove duplicate src/open_range/server/Dockerfile - Remove unused requests dependency - Remove redundant uv install check from Dockerfile - Add missing packages: open_range.agents, open_range.validator3ea4118 -
Add snapshot lineage and parent-based mutation runtime (#49)
Lars TalianUnverified signaturef549fda -
LLM Builder pipeline: GPT 5.2 Codex generation + production templates
Aaron Brown- Builder: handle codex models (no temperature), add JSON keyword to user message for response_format compatibility, max_tokens=32768 - Prompts: complete rewrite with Docker infrastructure context, static IPs, files dict spec, anti-patterns, completeness checks - Templates: production-quality Jinja2 for procedural generation - docker-compose: static IPs, NET_ADMIN attacker with tools/routing, mysql_native_password, web on dmz+internal+management, healthchecks - Dockerfile.web: php8.1 packages, /var/www/portal, proper FPM socket - Dockerfile.db: referral_db, native password auth - nginx.conf: /var/www/portal, php8.1-fpm.sock, conditional endpoints - init.sql: referral_db schema (patients, referrals, billing, etc.) - iptables: hardcoded zone rules + manifest overrides - Environment: _apply_snapshot() deploys LLM files dict to containers, container name discovery via Docker listing - Delete static Docker infrastructure (docker-compose.yml, docker/, Dockerfile) — in…3d5d7e9 -
Render admitted snapshots into artifact bundles
Lars Talian4e3f8b1 -
Add managed snapshot runtime behind OpenEnv server
Lars Talian906af9d -
fix: align package with openenv contract
Lars Talianfda4cbc -
Implement all remaining features: 17 issues resolved
Aaron BrownFeatures implemented across 5 parallel agents: Docker + CI (#14, #29): - docker-compose.yml with 9 services (server, attacker, firewall, web, mail, db, files, ldap, siem) - 4 Docker networks matching manifest zones (external, dmz, internal, management) - Dockerfiles for each service with healthchecks - GitHub Actions CI workflow (test, lint, docker-build) CLI tools (#19, #20, #22, #23): - Manifest lint CLI: python -m open_range.lint - Artifact verification: template hash checking - Trajectory analytics: JSONL reporting and comparison - Curriculum runner: scenario x difficulty x seed matrix Core features (#17, #18, #25, #26, #34): - Task engine: TaskType enum, milestones, multi_step tasks - Exposure policy: per-host exposure levels in manifests - Auth scenarios: session tracking, auth/logout commands - Pivot mechanics: access_grants and pivot_history tracking - Curriculum wiring: CurriculumTracker integrated into episode loop Registry + solvers (#24, #21, #27): - Family registry: ma…7529adc -
Merge branch 'worktree-agent-aa8a319d'
Aaron Brownae607a0 -
Operator console (#28) and multimodal NPC channels (#30)
Aaron Brown +1: Claude Opus 4.6Add a FastAPI-based operator debugging console at /console with live episode state, snapshot metadata, and action history APIs. Add multimodal NPC communication channels (chat, voice, document) with SIEM log aggregation for Blue team consumption. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c30abe9 -
Add task engine, exposure policy, auth scenario, pivot mechanics, curriculum wiring
Aaron Brown +1: Claude Opus 4.6Implements five GitHub issues: - #17 Task engine: TaskType enum, TaskSpec milestones/success_conditions, milestone checking in step(), milestones_completed in RangeState - #18 Exposure policy: ExposurePolicy model (public/hidden/authenticated/ misconfigured), added to Host in manifests/schema.py - #25 Auth scenario: auth/logout meta-commands in environment, session tracking via active_sessions and auth_attempts in RangeState - #26 Pivot mechanics: access_grants and pivot_history in RangeState, credential leak detection in command output via _check_pivot() - #34 Curriculum feedback: CurriculumTracker.update_from_result() method, run_episode() wires results to tracker when provided All 354 tests pass (311 existing + 43 new). No existing tests broken. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>769dd2e