Mind · Inference

RegimeSense

Detecting structural breaks in reality

Definition

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.

Preconditions

  1. Agent has a predictive model generating expectations
  2. Observations are timestamped and comparable to predictions

Postconditions

  1. Alert raised if regime break detected
  2. RSS score computed for current window

Invariants

  1. Stability Break: RSS below `stability_threshold` across the window signals a regime break.
  2. The RSS window is `window_size` observations, fixed in advance rather than chosen per evaluation.

Risks

Failure modes

  1. False Positives

    Noise spikes triggering unnecessary accommodations.

  2. Lag

    RSS is a trailing indicator, so regime shifts are detected after-the-fact.

  3. Threshold Gaming

    Setting threshold too high causes missed shifts; too low causes constant alerts.

Relationships

Builds on

References

Agent

Autonomous Goal-Directed Entity

Infrastructure

Break

Failure-announcement signal {severity, reason, recoverable}, ACK-required

Society

DriftWatch

Reputation scoring via behavioral deviation from baseline (2-sigma alert)

Physics

Noise

Irrelevant information

Infrastructure

Quorum

Minimum participation threshold

Used by

References

Edgehold

Know where your framework stops working while lacking a replacement, and use it only inside that edge

Reference

Parameters

stability_threshold Float, [0.0, 1.0]
RSS threshold below which regime break is detected
window_size Integer, [10, 1000]
Number of observations in the rolling average window

Identity

Ref
RegimeSense#5039
Sema ID
sema:RegimeSense#mh:SHA-256:50396d316674bf65b204938ee8cecc48cf294223cdb90c9789d6a72bb542cb07
Ring
2
Tier
1
Updated
2026-11-11
Supersedes
  • sema:RegimeSense#mh:SHA-256:3e24672befbaea7607da15aa4b7c75517cb16f68a055fda352841e76469e4ead
  • sema:RegimeSense#mh:SHA-256:430bf5a5fcfe1796a400eda12608fed3600ecb00ec50ef3f4c8934db5065a2a0
  • sema:RegimeSense#mh:SHA-256:56eccdcf5c9e28545cb3ad569f86ec1bf3dec5e2eb4f9620f980da72b11937cf
  • sema:RegimeSense#mh:SHA-256:78eb98733d417ff23bf44f527a4bc2ed225100b4d4b182f0cbed36df7b36c687