Skip to main content

cbtop/context_regression/
mod.rs

1//! Context-Aware Regression Predictor (PMAT-039)
2//!
3//! Context-aware regression thresholds accounting for system state and historical trends.
4//!
5//! # Features
6//!
7//! - Context capture (temperature, memory, frequency)
8//! - Adaptive threshold computation based on context
9//! - Trend detection from historical data
10//! - False positive reduction through learned patterns
11//!
12//! # Falsification Criteria (F1311-F1320)
13//!
14//! See `tests/context_regression_f1311.rs` for falsification tests.
15
16mod predictor;
17mod types;
18
19pub use predictor::ContextRegressionPredictor;
20pub use types::{
21    BaselineEntry, RegressionCheck, RegressionThreshold, SystemContext, Trend,
22    DEFAULT_COLD_START_MARGIN, DEFAULT_STALENESS_SEC, MIN_SAMPLES_FOR_CONTEXT,
23};
24
25#[cfg(test)]
26mod tests;