Expand description
Anomaly detection and Yin-Yang balance tracking for the Harmony Vector.
N20: Statistical health monitoring via z-score sliding windows on 7 harmony dimensions, plus action/reflection balance tracking.
The AnomalyDetector computes rolling z-scores for each numeric
dimension of the HarmonyVector. When a dimension deviates
significantly from its recent baseline, an AnomalyAlert is
emitted. This feeds into the homeostatic loop (N19) and the
Gan Ying Bus (N16).
The YinYangTracker classifies each tool dispatch as Yang
(create/write/delete/execute) or Yin (read/search/analyze/reflect)
and maintains a rolling balance ratio. Too much Yang signals
burnout risk; too much Yin signals stagnation.
Structs§
- Anomaly
Alert - An anomaly alert for a single harmony dimension.
- Anomaly
Config - Configuration for
AnomalyDetector. - Anomaly
Detector - Anomaly detector using z-score sliding windows on harmony dimensions.
- YinYang
Balance - A snapshot of the Yin-Yang balance.
- YinYang
Tracker - Yin-Yang balance tracker.
Enums§
- Anomaly
Direction - Direction of the anomaly relative to the baseline.
- Anomaly
Impact - Whether this anomaly is harmful (i.e., the deviation is in the “bad” direction for this dimension).
- Anomaly
Severity - Severity of an anomaly.
- Balance
State - Balance state of the Yin-Yang ratio.
- Dispatch
Nature - Classification of a dispatch as Yang (active/creative) or Yin (passive/receptive).
- Harmony
Dimension - Numeric dimensions of the Harmony Vector that can be monitored for anomalies.