Skip to main content

batuta/stack/diagnostics/
mod.rs

1//! Stack Visualization, Diagnostics, and Reporting
2//!
3//! ML-driven system for visualizing, diagnosing, and reporting on the health
4//! of the Sovereign AI Stack. Implements Toyota Way principles for observability.
5//!
6//! ## Toyota Way Principles
7//!
8//! - **Mieruka (Visual Control)**: Rich ASCII dashboards make health visible
9//! - **Jidoka**: ML anomaly detection surfaces issues automatically
10//! - **Genchi Genbutsu**: Evidence-based diagnosis from actual dependency data
11//! - **Andon**: Red/Yellow/Green status with stop-the-line alerts
12//! - **Yokoten**: Cross-component insight sharing via knowledge graph
13
14mod dashboard;
15mod engine;
16mod types;
17
18#[cfg(test)]
19#[path = "tests/mod.rs"]
20mod tests;
21
22// Re-export all public types from submodules
23pub use dashboard::render_dashboard;
24pub use engine::StackDiagnostics;
25pub use types::{
26    AndonStatus, Anomaly, AnomalyCategory, ComponentMetrics, ComponentNode, GraphMetrics,
27    HealthStatus, HealthSummary,
28};
29
30// Re-export ML components from diagnostics_ml module
31pub use super::diagnostics_ml::{ErrorForecaster, ForecastMetrics, IsolationForest};