Robert WescottAI evaluation, advisory & commercial leadership
Expert review & work samples
All case studies
The Archive

Building a world that can grow from what players discover

A player can come away from a mystery with a better question than the one I wrote. My vision for The Archive is a self-building fictional world: discoveries can inspire new investigations, dialogue, places and objects, and approved additions can become part of the world future players explore. AI is part of that growth process, as well as a tool used to build the application. The challenge is to let the world evolve while preserving its identity, established canon and each player’s history.

AI API integration · Persistent world design · Controlled expansion

My responsibility
Self-building world vision, narrative authority, expansion workflow and release acceptance
AI’s contribution
API-generated investigation proposals, structured world content and AI-assisted engine development
The judgment call
A generated scene must become a reachable, coherent and reviewable part of the game. I separated generation from validation and publication, and individual discoveries from shared-world history.

Recorded outcome Staging exercised reviewed expansion publication, independent player progress, service restart and withdrawal. The enhanced investigation also passed its 25-command HTTP replay and retained the ending after reopening.

The early-access opening introduces The Missing Refusal. Players investigate through typed commands.
The early-access opening introduces The Missing Refusal. Players investigate through typed commands.

Making player discovery an input to world building

I wanted exploration to have a consequence beyond completing a fixed script. A question raised during play can become a candidate for a new investigation. The expansion workflow carries the captured question, its scene and bounded source excerpts into an AI drafting job. After validation and author review, a published addition enters the shared-world registry, where it can become playable for other people. Personal progress remains separate from the history that everyone shares.

This connects three kinds of authority: established authorial canon, reviewed additions to the shared world, and an individual player’s actions and discoveries. A surprising player interpretation can inspire an addition without automatically becoming a fact about the fictional universe.

Connecting the AI API to playable content

The implemented drafting worker calls the OpenAI API and requests structured investigation data. Its current format describes three to five rooms, two to four objects and two to three linked puzzles, with descriptions, connections, prerequisites and a completion scene. The output must define something the engine can run, not just an intriguing paragraph.

Validation checks whether rooms are reachable and puzzles can be solved without circular dependencies. The author then reviews canon questions and previews the proposed world before approval and a separate publication action. Players can follow their leads through drafting, review and publication status. The API worker cannot publish its own output.

Extending the vision into dialogue and new interactions

The longer-term ambition includes new character dialogue and richer interactions shaped by what players discover. The enhanced engine already supports contextual evidence dialogue and author-created expansion packages with declared character knowledge and explicit action rules. That provides a foundation for characters whose responses belong to their role and to the player’s discoveries.

The present AI generator still creates the simpler investigation format; automatic generation of those richer dialogue and interaction packages remains future work. Ordinary conversation is currently authored or rule-driven, rather than an unrestricted live model response. The intended next step is to generate dialogue and actions as reviewable structures that pass the same world and canon checks before players encounter them.

Keeping growth affordable and dependable

Generation runs in a separate worker, so ordinary moves, clue checks and saves need no API call. The pilot limits attempts, reserves a budget before generation, records usage when available and avoids automatic retry loops. Provider failures and invalid drafts remain visible review states. This lets AI contribute new material without making every turn dependent on a network response or allowing a player question to rewrite published canon.

From a manuscript world to a repeatable investigation

I began with a missing refusal, a small set of people who knew different things, and evidence the player could recover in more than one order. AI helped implement synonyms, named travel and follow-up questions for ambiguous commands. A scripted playthrough became part of development. Each change to an interaction could be tried against a complete investigation, including the ending a returning player would see.

Connecting the game, its author tools and persistent storage

The browser sends commands to a Node service. SQLite retains the player’s location and discoveries. Shared expansions have a registry and an author review path. The drafting worker runs separately, so reading a clue or returning to a saved room needs no model call. Staging tested publishing a reviewed expansion, progressing independently as different players, restarting the service and withdrawing the expansion. An optional garden choice later passed a live check from the original action through a saved session to a character’s changed response.

Testing what players actually type

One named-travel command passed a direct engine test and failed through the web service. A dispatcher had stripped the word “go” before the original engine received it. The revised test replayed the investigation through HTTP and SQLite, compared each step with engine state, then reopened the saved ending. The revised Missing Refusal transcript matched all 25 commands through the isolated HTTP service, with no compass substitutions. Reopening the session retained the ending. This gave the next release a regression test at the boundary where the defect had occurred.

Earlier playtest capture. A player’s command opens a validated expansion, and the field notes retain the evidence carried into it.
Earlier playtest capture. A player’s command opens a validated expansion, and the field notes retain the evidence carried into it.

Explore The Archive

Put this approach to work

I bring product and operating judgment to AI-assisted work: define what success means, examine the failure, and verify the result in the workflow people use.

Discuss evaluation work · Book a 30-minute call ↗ · See my evaluation approach · Explore the other projects