← AI features

Regime engine — model card

v1.0 · Tier 1Live Cross-asset regime classification with AR(1) persistence half-life.

Purpose

Classifies the current market state into one of three regimes — risk-on, risk-off, transition — feeding the LS6 layer-conditional weighting (engine v76) so factor weights shift with the regime. Drives the risk-color on every scoreboard surface and the playbook's "when NOT to act" disqualifier (transition → wait).

Inputs

Outputs

{
  state:        'risk-on',           // 'risk-on'|'risk-off'|'transition'|'recovery'
  daysInState:  18,
  P_persist_5d: 0.83,                // probability state persists 5 more days
  halfLifeDays: 42,                  // state-specific
  drivers: [
    { factor: 'DXY trend',         contribution: -0.4, sigma: -0.4 },
    { factor: 'Yield curve',       contribution: -0.18, sigma: -0.18 },
    { factor: 'VIX level',         contribution: -0.3, sigma: -0.3 }
  ],
  confidence: 0.74
}

Half-life by state (Bible §6.4)

StateHalf-lifeTypical drivers
risk-on42 daysTight credit, low VIX, positive breadth
risk-off28 daysWide credit, VIX spike, breadth collapse
transition10 daysCrossing thresholds; whipsaw zone
recovery21 daysPost-shock, breadth rebuilding

Math

Persistence: P(persist N | seen t) = exp(-N/τ_state) × (1 + seasoning(t)). Seasoning multiplier penalizes stale regimes (over-staying threshold = forced re-evaluation). Closed-form, no Monte Carlo.

Limitations

What this is NOT:

Known failure modes

Versioning

VersionDateChange
1.0.02026-04-22Initial 4-state classification + half-life persistence

Source

engine/regime.js, engine/regimeShift.js, engine/ensembleRegime.js, engine/hmmRegime.js (alternative HMM path)

Reviewed: 2026-04-27 · Next: 2026-07-27 · Per Bible §15.61