Three bugs prevented the service grid and alerts from rendering:
1. state.observation → state.current_observation
State model serialises the observation under current_observation,
not observation. Services and alerts were never rendered.
2. s.memory_utilization → s.memory_percent
ServiceStatus model field is memory_percent (0-100 float).
All MEM values showed as NaN.
3. a.severity === 'CRITICAL' → a.severity === 'critical'
Alert model severity is lowercase ("critical"/"warning"/"info").
Alert severity colours never applied; critical flash never fired.
Also fixed:
- services rendered via Array.slice().sort() instead of Object.entries()
(services is a JSON array, not a dict)
- max_steps is now dynamic from observation, not hardcoded 15
- rollback_service/block_ip → rollback/block_ip_range (correct action names)
- "WS DISCONNECTED" initial label → "API DISCONNECTED" (REST polling, not WS)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: replay system, human challenge, progress viz, 2 new generator failure modes
- Feature 1: Episode Replay System
- replay_store dict + replay_counter track completed episodes
- /step endpoint accumulates per-step data (action, reward, obs summary)
- On done=True, full replay saved with timeline steps
- GET /replays — JSON list of replays, newest first
- GET /replay/{id} — full replay data with steps
- GET /replay/{id}/html — dark-theme HTML timeline visualization
- GET /replays/html — HTML index page
- Feature 2: Human vs Agent Challenge
- GET /challenge — fully interactive HTML page to play incidents
- Auto-resets to easy task seed 1234 on load
- Action form with all 14 action types, context-sensitive fields
- Live reward feedback per action, running score display
- End-of-episode comparison panel: human score vs agent avg from /metrics
- Feature 3: Progress Visualization
- GET /progress — dark-theme HTML progress dashboard
- Section 1: Live task vs random baseline bar chart (CSS-only, no JS)
- Section 2: Hardcoded training resul…
fix: switch NOC dashboard from WebSocket to REST polling to sync with live demo_llm.py execution