Spaces:
Runtime error

Aaron Brown commited on
Commit
a24d0f2
·
1 Parent(s): 4f46230

Remove hardcoded infra, enforce snapshot-driven architecture

Browse files

- 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-driven tier escalation.

5 files changed +770 -124
Files changed (5)
src/open_range/builder/mutator.py+88-21
src/open_range/builder/npc/npc_manager.py+308-26
src/open_range/server/environment.py+197-29
src/open_range/server/runtime.py+124-4
src/open_range/server/zone_router.py+53-44