Skip to main content

Module anomaly

Module anomaly 

Source
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§

AnomalyAlert
An anomaly alert for a single harmony dimension.
AnomalyConfig
Configuration for AnomalyDetector.
AnomalyDetector
Anomaly detector using z-score sliding windows on harmony dimensions.
YinYangBalance
A snapshot of the Yin-Yang balance.
YinYangTracker
Yin-Yang balance tracker.

Enums§

AnomalyDirection
Direction of the anomaly relative to the baseline.
AnomalyImpact
Whether this anomaly is harmful (i.e., the deviation is in the “bad” direction for this dimension).
AnomalySeverity
Severity of an anomaly.
BalanceState
Balance state of the Yin-Yang ratio.
DispatchNature
Classification of a dispatch as Yang (active/creative) or Yin (passive/receptive).
HarmonyDimension
Numeric dimensions of the Harmony Vector that can be monitored for anomalies.