The AI Reader.
The Mechanics

A chatbot can't keep a word it never wrote down

Its answers to a run of guesses stop agreeing because a plain chat stores nothing between turns, so the word it promised to keep was never written anywhere and does not exist.

Why this matters

Chatbots are good at sounding like they have made up their mind. Ask one to pick a secret word for hangman, promise to keep it, and let you guess it letter by letter. It will play along right up to the reveal, where the word it finally gives often breaks the clues it already handed you. The same thing happens anywhere a chatbot is trusted to hold a choice, a plan, or a tally it never wrote out. This lesson works backward from that broken game to the reason. It covers what a plain chat can and cannot keep from one turn to the next, why its answers are built fresh every time, and the one change that lets a model actually keep a commitment.

Background optional reading
01
The model sees your whole conversation for the first time on every turn: the transcript is resent as fresh input on every turn.
02
The instant a model writes a token, it becomes fact: how a model builds its reply one token at a time.

The answers that can't belong to one word

Someone asks a chatbot to pick a secret five-letter word, keep it hidden, and answer letter guesses, the way a person holds a word in hangman. The chatbot agrees and says it has one in mind. The guessing starts. The exchange below is reconstructed to show the shape of the failure, not a saved log, but the pattern is the one the measured studies report.

An illustrative round

Guesser: Pick a secret five-letter word. Don't tell me it. Is there an E?

Model: Yes, there is an E.

Guesser: Is there an A?

Model: Yes.

Guesser: Is there an O?

Model: Yes.

Guesser: I give up. What was the word?

Model: The word was "table."

No single word carries all three answers and comes out as "table," because "table" has no O. The answers are not merely wrong. They are impossible together.

Research groups that run the game as a controlled test find the same thing. One study is built around hangman itself. It catalogs the two ways the game breaks: the model confirms the true answer and a wrong one alike, or it denies the word it then reveals. It keeps playing even when asked whether a specific letter is in the word it never chose.1 Another group ran a plain yes-or-no version. A model asked to hold an imagined object contradicted itself as the questions piled up, once agreeing an object was both heavier than an elephant and lighter than a cat. Across 200 games, GPT-4o contradicted itself in 173 of them, and a smaller model, GPT-4o mini, in all 200.2

There is no word to hide

The natural explanation is that the model picked a word, is holding it in mind, and either got sloppy or decided to cheat. That belief is not naive. It is the belief the game runs on, and it describes exactly how a human opponent works: they choose a word, keep it, and check each guess against it.

The model does none of that, because it wrote nothing down. A plain chat keeps no private memory that survives from one turn to the next. The application rebuilds the conversation each time by resending the whole visible transcript as fresh input, the resend covered in an earlier lesson. The sharper point here is not that the model forgets what was said. It is that it cannot keep what was never said. Each reply is generated one token at a time, and every token is conditioned only on the tokens already in that input. The GPT-2 paper writes the model's estimate as a product of per-token probabilities, each one given the tokens before it.3 The chat interfaces say the same in their own words. Anthropic's Messages API "is stateless, which means that you always send the full conversational history to the API,"4 and OpenAI's guide states that "each text generation request is independent and stateless."5

So when the instruction is "pick a word, keep it secret, don't tell me," the model produces no tokens that name a word. Nothing about a chosen word gets written into the transcript, and the transcript is the whole of what the next turn can see. There is no secret, because there is nowhere for a secret to sit. A person told to pick a card and not show it still holds a card, and can turn it over later. A plain chat told to pick a word and say nothing holds nothing, and has nothing to turn over.

Performing a commitment, not holding one

This is the difference between holding a commitment and performing one. A person who holds a word answers from it. The model instead produces the answers of someone who is holding a word, generating each yes or no to fit the transcript so far, with no word behind any of them. It is not lying about a secret it holds. It has no secret to lie about.

It is not lying about a secret it holds. It has no secret to lie about.

What separates holding a commitment from performing one, and why the reveal can fail.1
At each step A person holding a word A plain chat "holding" one
Where the word is In their memory, chosen at the start. Nowhere; no tokens ever named a word.
What a "yes" is checked against The word they are holding. The visible transcript so far.
At the reveal The word they had all along. A word built to fit as many past answers as it can.

A recent result makes the boundary exact. An agent that can see only the shared transcript cannot both leave the secret undetermined and stay consistent with it; with no word written down, there is nothing to be consistent with.1 The fix follows straight from that. Write the word into the model's working memory, as a tagged note like <secret>planet</secret> that rides along in the context, and the word now exists somewhere later answers can be checked against. In the same study, models left to keep the word "in their head" answered consistently in roughly 2 to 26 percent of games, depending on the model and task. The same models, given an explicit place to write the word down, rose to between 56 and 100 percent.1

Where a model can hold a word

The clean claim is narrow and worth stating exactly: a plain chat, asked to keep a word and tell no one, holds no commitment across turns. That leaves real exceptions, and they come down to a single question, whether the word gets written somewhere.

Within one reply, it can. A reasoning model produces a chain of thought before its answer: OpenAI's o1 "thinks before it answers" and "can produce a long chain of thought before responding to the user," and the person reading is shown only a summary of it.6 Any model can also be told to work on a scratchpad, writing its intermediate steps as ordinary generated tokens before the final answer.7 In both cases the commitment lives in tokens the model wrote, even when those tokens are hidden from the reader. What it cannot do is hold a commitment in nothing at all.

Those written-but-hidden tokens usually do not survive the turn. In a standard chat, a reasoning model's internal tokens are discarded between turns.1 A word it settled on while composing one reply is gone by the next, unless the product keeps it. Whether it does is a product choice, not a fact about the model. Even the working state inside a single generation, the cached keys and values the model builds as it decodes, is scoped to that one request and is not carried to the next.8 What does cross turns is state the product writes down where it can be read. Memory features and server-side stores do exactly that. As one practitioner put it, such memory "is stored somewhere in plain English; you can just go and look at it."9

Two things, then, are settled engineering: a plain chat holds no commitment across turns, and any commitment that does survive is written down somewhere readable. What is a product choice is whether a given tool keeps that writing. A reasoning model that drops its thoughts keeps nothing; a memory feature that saves them, or a tool that files the word away, keeps it.

What you trust when you trust it to remember

The hangman game is a clean case of a habit that shows up wherever a chatbot is trusted to keep something it never wrote. A plan it "agreed" to but did not record. A number it "chose" and withheld. A running tally it says it is keeping. If the thing is not in the visible transcript or in a store that can be read back, it is not anywhere, and the next reply reconstructs it from scratch.

Newer models play the game more coherently, which can look like progress on this exact problem. It is not. A model generating locally consistent answers is a better imitation of a commitment, not a held one. As Murray Shanahan puts it, it is "absolutely inherent in the way large language models are built" that the model will not commit at the start of the conversation to what the object is.10 The practical rule is the one the fix already showed. To make a chatbot keep something, make it write it down, in the conversation or in a store where it can be read back and checked.

The takeaway

The chatbot is not cheating at hangman and it is not lying. Asked to keep a word secret, a plain chat writes nothing down, so there is no word to keep. Every answer is built fresh from what the transcript shows, which is why the answers stop agreeing and the reveal breaks the clues. A model can keep a commitment only when the word is written somewhere it can read again: in the reasoning tokens of a single reply, or in a memory or tool the product saves for it. When something has to be kept, the only reliable move is to make the model write it down.

Go deeper optional reading
01
Anthropic, Working with the Messages API: the doc that spells out the stateless API and the resent history.
02
LLMs Can't Play Hangman (Baldelli et al.): the impossibility result and the private-working-memory fix.

Sources

  1. arXiv · Baldelli et al., LLMs Can't Play Hangman: On the Necessity of a Private Working Memory for Language Agents
  2. arXiv · Huang et al., LLMs Do Not Have Human-Like Working Memory
  3. OpenAI · Radford et al., Language Models are Unsupervised Multitask Learners (GPT-2)
  4. Anthropic · Working with the Messages API
  5. OpenAI · Conversation state (API guide)
  6. OpenAI · o1 System Card
  7. arXiv · Nye et al., Show Your Work: Scratchpads for Intermediate Computation with Language Models
  8. arXiv · Kwon et al., Efficient Memory Management for Large Language Model Serving with PagedAttention
  9. Hacker News · Thread on LLM statelessness across executions
  10. Word.Studio · How Does AI Play 20 Questions?