The canon-drift problem

Why AI keeps forgetting your D&D campaign.

Every "Claude invented a pantheon" and every "ChatGPT forgets my NPCs" has one cause: the AI is searching your campaign as text, not querying it as records. Grimoire for Gamemasters keeps your campaign as records, and tells the AI client you connect what to read first.

Free tier, no credit card. Bring your own AI client.

The same question, before and after it reads.

The same question to an AI client connected to Calendra, the sample campaign. Before it reads the campaign, its answer names a king and a god the campaign does not have; after its three calls, shown by name without their replies, every sentence names the record it came from. An illustration: what an AI writes varies by model. What it was given to read does not.

The canon-drift problem

Three failure modes, one architectural cause.

Canon drift is when an AI assistant confidently states things that aren't true in your campaign: a god you never created, an NPC relationship that doesn't exist, a backstory invented whole. AI forgets your campaign because it's searching text, not querying structured state.

This is not a question of how smart the model is. The newest model does the same when its window into your world is text, and the failure takes three predictable shapes.

  1. 1

    The context ceiling

    A model sees what fits in its context window and nothing more. Every session adds more lore than fits, so sooner or later you choose what to paste, and the model works from part of your canon.

  2. 2

    Text-blob retrieval

    Given search over your wiki, the model gets excerpts ranked by how well their words match. It cannot tell a canonical page from a stub, or a current fact from one a later session replaced.

  3. 3

    The hallucination floor

    When nothing it finds answers the question, the model invents an answer, in the same confident voice it uses when it knows. From your side of the chat, the two read the same.

What doesn't fix it

The fixes that sound right but don't address the cause.

A bigger context window

You can paste more, but a long campaign outgrows any window, and more text means more paragraphs that disagree. The model still has to pick between them.

A smarter model

It reasons better over what it is given, and it is given the same text. A sharper reader of the wrong page still reads the wrong page.

Organizing the wiki

Tags, links and headings help you find things. A search returns excerpts, and the labels that mark a page as canon seldom make it into them.

Pinned documents

Pinned notes reach every chat, and the model still reads them as text. A pin decides which pages it gets, not how it reads them.

An AI built into a campaign tool

Its other jobs, from portraits to recaps, can be useful. If it answers canon questions by reading pages of text, the same three causes hold.

These are all reasonable things to try, and each leaves the cause where it was.

Two different categories

Session memory tools vs structured campaign state.

Recap and transcription tools keep what was said at the table: who said what, and how the fight ended. That helps with continuity. But a transcript keeps every retcon and every line the table took back, and more of what was said never tells an AI what is true now.

A campaign database keeps what is true now. When an NPC dies, you, or your AI client, file the recap and update the NPC's record. Search a wiki instead, and an AI can fetch two pages that disagree: an older plan where the NPC is alive, and a newer recap where they are dead, with nothing to say which is current. Grimoire keeps both. The plan stays in your session prep, and your wiki keeps the story for continuity, but the NPC's record says what is true now: the records are the canon, and the current state of the game is built from them.

What Calendra's records say is true now: the facts its recaps established, and the threads still open.

Two of the app's dashboard cards for Calendra, the sample campaign. The established facts of this world: each key event a recap marked canon, with its session. Under it, the threads still hanging: each open thread, with how long ago it was opened and the session that last touched it.

What does fix it

Structured state. Typed entities. Queryable canon.

The retrieval problem goes away when the model can ask structured questions of typed data instead of fuzzy-searching a text blob.

Text wikiStructured state
Data shape Pages with prose Typed entities with typed fields and explicit relationships
Retrieval Search excerpts ranked by relevance Direct query: give me the canonical answer
Canon Implicit. Pages argue with each other via prose Read first. The client is told that the campaign's own canon takes precedence over general knowledge
Hallucination Likely when a search returns nothing that fits Bounded. The model can ask "do you have this?" and get a clean yes/no

Ask who Wren Ashgrove answers to in Calendra, the sample campaign, and the model reads her Superior field and gets one name back: Keeper Ansel Mott. Ask about a priestess the campaign never made, and no record comes back to build on.

This is the architectural fix. It's not magic, and it's not a smarter model. It's the retrieval problem any database-backed application solves.

Calendra's NPC table: each NPC a record, each Superior a field that names another record.

Four rows of Calendra's NPC table, with the fields Name, Faction and Superior: Wren Ashgrove, The Almanac, Superior Keeper Ansel Mott; Keeper Ansel Mott, The Almanac; Tamsin Reed, The Almanac, Superior Wren Ashgrove; Rowan Hale, The Almanac, Superior Keeper Ansel Mott. On a phone the Faction field is not drawn.

How Grimoire implements this

Campaign Bible, World Foundations, fourteen categories, one read order.

When an AI client connects, Grimoire's MCP server tells it what to read first: the Campaign Bible and World Foundations, then where the story stands. It also tells the client that the campaign's own canon takes precedence over general knowledge of any game system or setting.

A World Foundation can carry an AI Guidance line, your directive for how the AI should use that concept. A GM's client reads it with the foundation, and a player's never does.

The Border Stones, one of Calendra's World Foundations, with the AI Guidance line its GM wrote.

Calendra's World Foundations graph, its five foundations and the ties between them, and the panel a GM opens on The Border Stones, one of them: its section, Fundamental Laws, marked GM Secret; its description, "Standing stones fix the lines between the seasons. Only the Almanac may move them."; and its AI Guidance, "Never say who is moving the stones. That mystery is the party's to solve.". On a wide screen two gold notes arrive in turn: "Not for players" on the GM Secret mark, then "Sent to the GM's AI" on the AI Guidance heading.

Everything else is a typed record in one of fourteen categories, and every tie between them is a field.

  • NPCs
  • Player Characters
  • Creatures
  • Locations
  • Factions
  • Pantheon
  • Quests
  • Items
  • Lore
  • World Rules
  • Sessions
  • Session Prep
  • Mechanics
  • Vehicles

Grimoire MCP has 67 tools: a client reads the records one layer at a time, and a GM's client can write them back.

One layer of that read: the Political Web with AI Context on, the records in play and the ties between them.

Calendra's Political Web as its GM sees it, with the AI Context filter on: the records in play, Wren Ashgrove, Keeper Ansel Mott, The Almanac and The Thaw, and the ties between them. In play means a recent session touched a record, or the GM marked it by hand.

Every record is Common Knowledge, Player Knowledge or GM Secret, and a GM's client reads all three, labelled. A player's AI access is off until you turn it on. Then it is read only and sees what that player's portal shows, with any Campaign Bible or World Foundations you share. GM Secrets are enforced server-side.

It works with apps that connect to a remote MCP server with sign-in. We have tested Claude (web, desktop, mobile), Claude Code, ChatGPT (web) and Cursor; ChatGPT needs Developer Mode, on Plus or Pro.

The same question from the GM's AI client and from Maya's: the GM's answer holds a GM Secret tie, and Maya's does not.

Two AI clients ask Grimoire MCP the same question, "Who is Wren Ashgrove tied to?", and each calls get_knowledge_graph for the political graph. The GM's answer lists Wren Ashgrove's ties, her GM Secret tie to The Thaw marked with a padlock. Maya's, a player's, lists the ties her portal's web draws, with no GM Secret tie: Calendra shares its Political Web with players.

By the numbers

Measured comparison, same understanding goal.

Loading a working understanding of a campaign (its world rules, where the story stands, its records and their key ties) takes a measurably different number of tokens depending on how the campaign is stored.

The figures below come from a real Notion-plus-MCP setup, assembling that same working state.

Roughly a 7x token ratio for equivalent coverage.

Wiki + AIGrimoire + AI
Tokens to load equivalent working state ~50,000 across 30+ fetches ~6,800 across 5 calls
AI guidance Written into pages, read as prose An AI Guidance line on a World Foundation, sent to a GM's client
Typed relationships Stored as prose links First-class typed edges
Loading Whole pages, as a search returns them One layer at a time, as deep as the question needs
  • Fewer tokens spent loading the world leave more of the client's context for your question.
  • Grimoire MCP is free on every Grimoire plan: bring your own AI client. Claude's free plan allows one custom connector.
  • Use one client today and another tomorrow: each reads the same campaign, live.

A short list

When this matters most.

Canon drift hits hardest when:

  • You run a homebrew world: your own gods, places and history.
  • Your campaign has outgrown a single prompt.
  • You use AI for prep, or want to.
  • The AI keeps getting your world wrong in ways you can't easily prevent.

A published adventure may be in a model's training, and a one-shot fits in a paste. The fix matters most for long homebrew campaigns, too big to keep in your head and too specific for a model to know.

Questions, answered

Canon drift, in detail.

Why does AI forget my D&D campaign?

Because most setups hand it your campaign as text: notes pasted into a chat, or excerpts a search pulls from a wiki. Excerpts drop the labels that say which page is current or whether an answer exists, so the model picks between paragraphs, and when nothing fits, it invents one in the same confident voice. The cause is what it reads, not how smart it is.

Does a bigger context window fix this?

No. A bigger window lets you paste more, but a long campaign still outgrows it, and more text means more paragraphs that disagree. The model still has to choose between them, so the cause stays.

What is the architectural fix to AI canon drift?

Let the model ask typed questions of structured records instead of searching text: an NPC's faction is a field that names a record, and a question about something that does not exist gets no near match to build on. In Grimoire the server also tells the AI client to read the Campaign Bible and World Foundations first, and that the campaign's own canon takes precedence over general knowledge of any game system or setting.

Do I need to use AI to benefit from Grimoire?

No. Grimoire works fully without AI: the same typed records answer your own questions, and the Political Web, the Timeline and the Geography are drawn from them. Each player joins free from your invite link into a portal of their own, and an AI client you connect later reads the same records.

Does using a smarter AI model fix it?

No. A smarter model still answers from what it was given, and handed text, it still picks between paragraphs. The fix is to change what it reads, not which model reads it.

Can a knowledge graph fix AI canon drift?

It helps when the graph is drawn from the records the campaign already keeps. A second graph synced by hand beside a wiki drifts from it, and the model then reasons over the stale copy. In Grimoire the Political Web, the Timeline and the Geography are drawn from your records, so there is one source to keep current.

Are session recap tools the same as a structured campaign database?

No, they keep different things. A recap tool keeps what was said at the table; a campaign database keeps what is true now, in records that change when the story does. In Grimoire a filed recap moves the campaign's in-world date and adds the facts it marks as canon.