How dhyanam-mn/sabre-simulator-project-initialization works
SABRE is a deterministic discrete-event CPU-scheduling simulator for evaluating adaptive, risk-aware scheduling against benign and adversarial workloads. Its principal workflow generates or loads processes, runs them through a selected scheduler in the simulation engine, then computes performance and security metrics for experiment analysis. The adaptive scheduler combines feature extraction, burst prediction, behavior classification, risk scoring, and elastic containment; baselines support comparisons. The README also describes an interactive dashboard. Some subsystem connections are documented but their implementation was not sampled, so uncertain links are omitted.
Main entry points: run_experiment.py Experiment Runner · sabre.py SABRE Scheduler · process.py Process Model · engine.py Event Simulator
Components 23
Workload Inputs
- Benign Workloads
sabre/core/workload.py - Attack Workloads
sabre/core/attacks.py - Trace Loader
sabre/core/trace_loader.py
Simulation Runtime
- Process Model
sabre/core/process.py - Event Simulator
sabre/core/engine.py - Scheduler Interface
sabre/schedulers/base.py - Baseline Schedulers
sabre/schedulers/baselines.py
Adaptive Scheduling
- SABRE Scheduler
sabre/schedulers/sabre.py - Feature Extraction
sabre/intel/features.py - Burst Prediction
sabre/intel/predictor.py - Behavior Classification
sabre/intel/classifier.py - Risk Scoring
sabre/intel/risk.py - Containment Control
sabre/schedulers/controller.py - Risk Calibration
sabre/intel/calibrate.py
Experiment Analysis
- Metrics
sabre/core/metrics.py - Experiment Runner
sabre/experiments/run_experiment.py - Statistical Analysis
sabre/experiments/stats.py - Result Plots
sabre/experiments/plots.py - Parameter Tuning
sabre/experiments/tune.py - Analysis Dashboard
sabre/dashboard
Configuration
- Config Loader
sabre/config.py - Simulator Settings
configs/default.yaml
Other components
- Experimenter
Connections 27
- Experimenter → Experiment Runner: runs experiments
sabre/experiments/run_experiment.py - Experiment Runner → Config Loader: loads settings
sabre/experiments/run_experiment.py - Config Loader → Simulator Settings: reads defaults
sabre/config.py - Experiment Runner → Benign Workloads: generates workloads
sabre/experiments/run_experiment.py - Experiment Runner → Attack Workloads: creates attacks
sabre/experiments/run_experiment.py - Experiment Runner → Trace Loader: loads traces
sabre/experiments/run_experiment.py - Benign Workloads → Process Model: creates processes
sabre/core/workload.py - Attack Workloads → Process Model: creates processes
sabre/core/attacks.py - Trace Loader → Process Model: creates processes
sabre/core/trace_loader.py - Experiment Runner → Event Simulator: runs simulations
sabre/experiments/run_experiment.py - Event Simulator → Process Model: updates state
sabre/core/engine.py - Event Simulator → Scheduler Interface: dispatches through
sabre/core/engine.py - Baseline Schedulers → Scheduler Interface: implements interface
sabre/schedulers/baselines.py - SABRE Scheduler → Scheduler Interface: implements interface
sabre/schedulers/sabre.py - SABRE Scheduler → Feature Extraction: extracts features
sabre/schedulers/sabre.py - SABRE Scheduler → Burst Prediction: predicts bursts
sabre/schedulers/sabre.py - SABRE Scheduler → Behavior Classification: classifies behavior
sabre/schedulers/sabre.py - SABRE Scheduler → Risk Scoring: scores risk
sabre/schedulers/sabre.py - SABRE Scheduler → Containment Control: controls dispatch
sabre/schedulers/sabre.py - Experiment Runner → Baseline Schedulers: compares schedulers
sabre/experiments/run_experiment.py - Experiment Runner → SABRE Scheduler: evaluates scheduler
sabre/experiments/run_experiment.py - Experiment Runner → Metrics: computes metrics
sabre/experiments/run_experiment.py - Experiment Runner → Statistical Analysis: summarizes results
sabre/experiments/run_experiment.py - Experiment Runner → Result Plots: generates figures
sabre/experiments/run_experiment.py - Parameter Tuning → Config Loader: loads settings
sabre/experiments/tune.py - Risk Calibration → Feature Extraction: uses features
sabre/intel/calibrate.py - Experimenter → Analysis Dashboard: analyzes interactively
README.md