Spaces:
Runtime error
Runtime error
Commit History
-
fix(runner): ground manifest axis in reset inputs
Lars Talian7106e5f -
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 -
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 -
Add NPC actions, synthetic data pipeline, CLI enhancements
Aaron BrownAgent-generated supporting changes from architecture review: - NPC action system (actions.py) for structured NPC behaviors - Synthetic data generation pipeline (training/synthetic.py) - CLI improvements and NPC traffic script updates - NPC agent loop enhancements for topology-driven operationfb68239 -
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 -
Merge branch 'worktree-agent-a342e088'
Aaron Brown6418097 -
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 -
Add authoring lint, artifact verify, trajectory analytics, and curriculum runner
Aaron Brown +1: Claude Opus 4.6Implements four new developer tooling modules: - lint.py (#19): Cross-field manifest validation CLI checking host refs, user refs, NPC usernames, data inventory hosts, business process flows, trust relationships, and firewall zones - artifact_verify.py (#20): SHA256 hash-based source of truth for builder templates with verify/update CLI - training/analytics.py (#22): JSONL trajectory analysis with summary stats, per-vuln-class breakdown, run comparison, and formatted reports - training/runner.py (#23): Curriculum runner orchestrating (manifest x seed x episode) evaluation matrices with JSONL output All modules include CLI entry points via `python -m` and 47 new tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f36b499 -
Full OpenRange implementation: environment, builder, validator, agents, tests
Aaron Brown +1: Claude Opus 4.6- src/open_range/: complete package with server, builder, validator, client, agents, training, and protocols modules - manifests/: Pydantic schema + 3 enriched YAML manifests (tier 1-3) with realism profiles (company context, tech stack, credential policy, monitoring coverage, trust relationships, operational context) - vulns/catalog.yaml: 23 vulnerability classes across 4 realism layers (application, infrastructure, identity, process) - Builder LLM pipeline: structured JSON output, 18-rule system prompt using all manifest realism layers, template renderer, snapshot store - Validator: 10-check hybrid pipeline (8 mechanical + 2 LLM advisory) - Environment: container-as-constraint design (no artificial command allowlists), Red routes to attacker container, Blue routes to siem container - Rewards: Red (flag, efficiency, stealth, evidence, anti-hallucination) and Blue (detection, patch, availability, false-positive penalty) - Agents: protocol, scripted, LLM, and human agent i…8c486a8