Narrative State Tracking
Keeping track of what has happened in an interactive story so future scenes remain coherent.
Who knows where the key is?
In a fictional interactive story, the visitor sees a key being hidden while the caretaker is outside. The same event changes the world and the visitor’s knowledge, but not the caretaker’s.
- World state
- The key is under the bench. Moving it later changes the location field.
- Character knowledge
- The visitor saw the hiding place. The caretaker can only mention it after being told or finding it.
Check the next scene
Replay the conversation before and after the disclosure. An unchanged location can coexist with a changed answer because knowledge belongs to a character.
Why It Matters
State tracking matters because interactive stories break down quickly when the system forgets what the user has already done. Without a reliable story state, characters contradict themselves, branches collapse into repetition, and recaps become inaccurate. Strong state tracking is therefore one of the foundations of believable interactive narrative.
How AI Fits
AI can help summarize events, decide what memories deserve retention, retrieve the most relevant past details, and generate responses that reflect current story conditions. That is why narrative state tracking often overlaps with text summarization, generative AI, and branching narrative. The model is not the state itself. It is one tool for using state well.
What To Watch Out For
More remembered detail is not always better. If a system stores everything without prioritizing relevance, characters can become inconsistent, repetitive, or overloaded with stale context. Strong state tracking therefore depends on selective memory, clean data structures, and clear rules for what should persist.
Follow the idea
Examples in the AI guides
Related Yenra articles (2)
Related concepts (5)
Source · Ink documentation on choices, branching and variables
Return to Narrative State Tracking in the A–Z glossary