RegimeSense
Detecting structural breaks in reality
Mechanism
An anomaly detector that continuously tracks divergence between the agent's internal model predictions and observed reality. It calculates a Regime Stability Score (RSS) as the rolling average of prediction accuracy over a window. High surprisal (low accuracy) indicates regime instability. When RSS drops below threshold, it signals that the underlying generative process has changed. It continuously monitors prediction error via DriftWatch, triggering OntologyAdapt or Quorum if the error signal crosses the regime-change threshold.
Invariants
- Stability Break: RSS below `stability_threshold` across the window signals a regime break.
- The RSS window is `window_size` observations, fixed in advance rather than chosen per evaluation.
Parameters
- stability_threshold: type=Float, range=[0.0, 1.0], description=RSS threshold below which regime break is detected
- window_size: type=Integer, range=[10, 1000], description=Number of observations in the rolling average window
Preconditions
- Agent has a predictive model generating expectations
- Observations are timestamped and comparable to predictions
Postconditions
- Alert raised if regime break detected
- RSS score computed for current window
Failure modes
- False Positives: Noise spikes triggering unnecessary accommodations.
- Lag: RSS is a trailing indicator, so regime shifts are detected after-the-fact.
- Threshold Gaming: Setting threshold too high causes missed shifts; too low causes constant alerts.
Where this came from
—
Builds on
- OntologyAdapt references
- Quorum references
- Agent references
- DriftWatch references
- Break references
- Noise references
Used by
- Edgehold references
- SurprisalUpdate references
Related
Identity
- Ref:
RegimeSense#8bba - Hash: sema:RegimeSense#mh:SHA-256:8bba125c54467eac428d5257f67617a947a4041c04da0bdcb2ade774056b0e14
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository