How kybertechnologies/kyber-command-prototype works
Command is a Streamlit prototype for utility outage response. Operators inspect the grid and incidents, trigger a fault, and receive a switching plan and ranked crew dispatch; the incident manager tracks restoration through repair and closure. Separate capabilities include telemetry-based voltage risk analysis and anomaly-model training. The excerpts show the incident orchestration and core module responsibilities; some dashboard calls and unsampled implementations are supported only by the source index, so uncertain links are omitted.
Main entry points: command_app.py Command UI · incident_manager.py Incident lifecycle · grid_topology.py Grid model · predictive_risk.py Voltage risk
Components 11
Command dashboard
- Command UI
command_app.py
Outage response
- Incident lifecycle
incident_manager.py - Switching planner
switching_calculator.py - Crew optimizer
dispatch_optimizer.py - Crew registry
crew_database.py
Grid and analytics
- Grid model
grid_topology.py - Voltage risk
predictive_risk.py
Telemetry
- Telemetry simulator
generate_telemetry.py - Telemetry CSV
atlas_training_data.csv - Anomaly model training
train_anomaly_models.py
Other components
- Utility operator
Connections 15
- Utility operator → Command UI: uses
command_app.py - Command UI → Incident lifecycle: triggers faults
command_app.py - Command UI → Voltage risk: accesses risk
command_app.py - Command UI → Grid model: reads grid
command_app.py - Command UI → Crew registry: uses crews
command_app.py - Incident lifecycle → Grid model: triggers fault
incident_manager.py - Incident lifecycle → Switching planner: requests plan
incident_manager.py - Incident lifecycle → Crew optimizer: ranks crews
incident_manager.py - Incident lifecycle → Crew registry: updates crews
incident_manager.py - Switching planner → Grid model: reads topology
switching_calculator.py - Crew optimizer → Crew registry: ranks available
dispatch_optimizer.py - Voltage risk → Telemetry CSV: reads telemetry
predictive_risk.py - Voltage risk → Grid model: reads bus locations
predictive_risk.py - Telemetry simulator → Telemetry CSV: writes CSV
generate_telemetry.py - Anomaly model training → Telemetry CSV: reads data
train_anomaly_models.py