# State Machine System

Canonical URL: https://babadook.tech/modules/state-machine-system
Entity: modules
Content hash: 6bbf412ef6057f7864b3674b331678af84d35f6f63b93e3e18f2f69129691cd0

Six canonical state machines — visitor, session, page, component, journey, and personalization — that drive intelligent content delivery and user experience optimization.

Six canonical state machines — visitor, session, page, component, journey, and personalization — that drive intelligent content delivery and user experience optimization.

## intelligence-at-every-layer

Intelligence at Every Layer The State Machine System provides six canonical state machines that operate at different granularities of the user experience. The visitor state machine tracks lifecycle from anonymous to known to loyal. The session state machine manages engagement context. The page state machine controls rendering decisions. Together, these state machines create a decision fabric that determines — in real-time — which content variant to render, which A/B test bucket applies, which personalization rules fire, and which analytics events to emit. All decisions are made before the first byte of HTML is sent.

### data Viz

## State Machine Specifications

- **Visitor SM:** Anonymous → Identified → Engaged → Loyal → Churned
- **Session SM:** Active → Idle → Expired with activity tracking
- **Page SM:** Loading → Hydrating → Interactive → Navigating
- **Component SM:** Mounted → Visible → Engaged → Converted
- **Journey SM:** Entry → Stage-N → Goal → Complete
- **Personalization SM:** Default → Targeted → Optimized → Locked
- **Decision Time:** <5ms for full state evaluation

## features

page sm: true

journey sm: true

session sm: true

visitor sm: true

component sm: true

personalization sm: true

## Relationships

### products

- DXP — https://babadook.tech/products/dxp

### capabilities

- Customer Intelligence — https://babadook.tech/capabilities/customer-intelligence
- High-Performance Rendering — https://babadook.tech/capabilities/high-performance-rendering