Skip to main content

Crate wm_selfmodel

Crate wm_selfmodel 

Source
Expand description

wm-selfmodel — predictive introspection for WhiteMagic.

Tracks per-subsystem metrics over time, forecasts threshold crossings, and feeds confidence signals back into the dispatch pipeline.

Architecture:

The self-model is read-only from the dispatch pipeline (no feedback loops). Confidence <0.5 triggers conservative dispatch (prefer cached results).

Re-exports§

pub use alert::Alert;
pub use alert::AlertEngine;
pub use alert::AlertLevel;
pub use alert::AlertRule;
pub use alert::Comparison;
pub use confidence::ConfidenceCalibrator;
pub use forecast::Forecast;
pub use forecast::ForecastEngine;
pub use metrics::MetricKind;
pub use metrics::MetricSample;
pub use metrics::MetricTracker;

Modules§

alert
Alert engine — threshold rules checked against forecasts.
confidence
Confidence calibration — overall system confidence from metrics and forecast accuracy.
forecast
Forecasting — linear extrapolation + EWMA prediction.
metrics
Metric tracking — per-subsystem performance metrics with ring buffer history.

Structs§

CognitiveForecast
Forecast for all cognitive metrics.
CognitiveMetrics
Cognitive metrics bundle — recorded after each imagination/research cycle.
MetricSnapshot
Summary of a single metric’s state.
SelfModel
Top-level self-model — orchestrates metric tracking, forecasting, alerting, and confidence calibration.
SelfModelSnapshot
A point-in-time snapshot of the self-model state.