How It Works
Understand the engine's session lifecycle, turn flow, and state management.
The Turn Flow
Every time a player submits an action:
1
Visibility Evaluation
The visibility pass decides whether hidden knowledge should reveal now or only add spoiler-safe suspense for this turn.
2
Build AI Context
Only visible knowledge is given to the AI (spoiler prevention).
3
Generate Narrative
AI creates the story response based on its available context.
4
Update State
AI uses [ADD] and [REMOVE] commands to update Facts.
✓
Stream to Player
Response streams in real-time (commands are stripped from the narrative).