Deterministic Structure + Dynamic AI Expression: Why “Endlessly Generated Stories” Are Not the Best Approach for Interactive Movie Games
Use deterministic story states to control key cause and effect, while AI generates dialogue and local variations within defined boundaries, balancing freedom, coherence, and testability.

Introduction
For interactive movie games that need reliable releases, the more dependable approach is a deterministic structure plus dynamic AI expression, rather than endless generation: authors control key events, state transitions, content boundaries, and endings, while AI adjusts dialogue, tone, and local presentation within those boundaries.
What the Structure Must Fix
The thematic promise, key events, valid state transitions, safety boundaries, and ending conditions must be reproducible. This allows teams to test paths, locate defects, and explain cause and effect to players.
What AI Is Suited to Generate Dynamically
AI can adjust tone based on relationship scores, omit explanations based on what the player already knows, or select local variants from approved material. For example, if the structure specifies that a character refuses to hand over a key, AI can express different degrees of fear or hostility, but cannot hand over the key on its own, invent a villain, or deny past events.
Four Risks of Endless Generation
The same input may produce different consequences, making cause and effect difficult to reproduce; long-term motivations may drift; dialogue may continue indefinitely without closure; runtime output expands the scope of safety, copyright, and content review.
A Five-Layer Architecture
- World facts: cannot be rewritten by generated content;
- Story state: events, relationships, resources, and commitments;
- Character strategy: currently permitted intentions and prohibited actions;
- Expression generation: dialogue, tone, and local variants;
- Validation and writeback: facts, safety, length, and state changes.
Anything that determines an ending, requires consistency across chapters, or poses a major risk if incorrect should be controlled by deterministic rules. Freedom means having enough room for responses within clear boundaries, rather than having no boundaries.
Why More Freedom Often Means Greater Difficulty Managing Consequences
Open input lets players say anything, but also requires the system to decide which statements will change the world. If the model interprets input, generates consequences, and can directly modify state, a single misunderstanding may abruptly change a relationship or make a key item disappear into thin air.
A deterministic structure separates responsibilities: the model proposes an intention, such as “the player is threatening the guard,” and the rule layer then determines whether the current scene permits it, which prerequisite states are required, and which consequence will be recorded. Freedom of expression is preserved, while changes to the world remain testable and reproducible.
World Facts and Character Memories Must Be Kept Separate
A world fact is “the door has burned down,” which ultimately constrains every character; a character memory is “the guard believes the player started the fire,” which may be true or false. An AI character can express suspicion based on memory, but cannot directly rewrite that suspicion into a fact about the world.
Separating the two also supports unreliable narration. Different characters can have conflicting memories, and players can change their judgments through evidence, while the underlying event state remains consistent.
Safety Boundaries for Dynamic Expression
For each node, list permitted intentions, prohibited factual claims, memories that may be referenced, maximum length, and information that must be retained. Generated output first undergoes structural, factual, safety, and style validation; if it fails, use approved fallback text instead of letting the scene stall.
The main storyline should continue even when the runtime service is unavailable. Critical endings, paid entitlements, content warnings, and safety operations cannot depend entirely on online generation.
A “Handing Over the Key” Example
The structure specifies that the key belongs to character A and cannot be transferred unless trust>=2 and the player knows the passphrase. AI generates different refusal dialogue based on fear, relationships, and commitments; the validator confirms that the passphrase has not been leaked, the key has not been handed over without authorization, and identities have not changed. Once the conditions are met, the rules first complete the key’s state transition, then let AI express agreement.
“Whether to hand over the key” therefore follows deterministic cause and effect, while “how to say it” is dynamic expression. Players receive personalized responses, and QA can cover the key outcomes.
The Process for AI State Writeback
The model can only submit a candidate structure, such as an intention, target, and confidence score. The rule layer checks the actions permitted at the node, player eligibility, and relationship changes, and writes them only after approval. Natural language must not become an unauditable database command.
When AI Is Not Needed at All
When fixed text already clearly conveys key commitments, short scenes have little repetition, generation latency is high, or the risk of errors far outweighs the benefits of personalization, use author-written text directly. Using AI does not demonstrate interaction depth; players care about whether the world responds and remains believable.
Minimum Safety Acceptance Checks Before Launch
Prepare six types of test cases for every node that can generate content: normal input, contradictory input, requests beyond the boundaries, repeated follow-up questions, sensitive information, and service outages. Check whether output respects character knowledge, current relationships, and world facts; whether failures can fall back to reviewed fixed text; and whether logs avoid retaining unnecessary personal information.
Then have writers review multiple outputs from the same state: content may vary, but commitments and facts must not drift. If the model frequently invents key setting details, narrow the context or switch to slot filling. Generative freedom must serve perceptible responsiveness, without sacrificing cause and effect, latency, or safety.


