Expand description
wm-selfmodel — Predictive introspection for WhiteMagic v5 (Phase R4).
Tracks per-subsystem metrics over time, forecasts threshold crossings, and feeds confidence signals back into the dispatch pipeline.
Architecture:
MetricTracker— per-metric ring buffer history with EWMAForecastEngine— linear extrapolation + EWMA forecastingAlertEngine— threshold rules checked against forecastsConfidenceCalibrator— overall system confidence from forecast accuracySelfModel— top-level orchestrator
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§
- Cognitive
Forecast - Forecast for all cognitive metrics.
- Cognitive
Metrics - Cognitive metrics bundle — recorded after each imagination/research cycle.
- Metric
Snapshot - Summary of a single metric’s state.
- Self
Model - Top-level self-model — orchestrates metric tracking, forecasting, alerting, and confidence calibration.
- Self
Model Snapshot - A point-in-time snapshot of the self-model state.