v1.0 · Tier 1Live Cross-asset regime classification with AR(1) persistence half-life.
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).
{
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
}
| State | Half-life | Typical drivers |
|---|---|---|
| risk-on | 42 days | Tight credit, low VIX, positive breadth |
| risk-off | 28 days | Wide credit, VIX spike, breadth collapse |
| transition | 10 days | Crossing thresholds; whipsaw zone |
| recovery | 21 days | Post-shock, breadth rebuilding |
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.
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-04-22 | Initial 4-state classification + half-life persistence |
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