Why Chat Assistants Can't Keep Secrets: The Structural Flaws of Bulls-and-Cows and the Commit-Score-Reveal Fix

Conversational AI contradicts itself in number-guessing games due to lack of private state storage; a cryptographic commitment protocol can fix it.
Using the Bulls-and-Cows number-guessing game, this article reveals a structural flaw: conversational assistants frequently contradict themselves in secret-keeping tasks because the only per-conversation state is the user-visible transcript, the KV cache is a deterministic function of input, and hidden reasoning is often discarded—so the model has no "memory safe." Formal computation shows a secretless host contradicts itself in 79% of games by round 5, and even with 95% history adherence, 12% still contradict. The authors propose the Commit-Score-Reveal protocol—server-side sealed secrets, code-based scoring, and hash commitments—implementable with existing function-calling APIs for verifiable honest games. This flaw exposes a general dilemma of conversational AI in persistent hidden-state tasks; fixes must start at the architectural level rather than relying on improved model capability.
When an AI Is Asked to Keep a Secret
You ask a voice assistant to "think of a five-digit number," then play Bulls-and-Cows (a Mastermind-style number-guessing game with feedback like +2 -1). For a human, this is trivial—but conversational assistants fail spectacularly. In five games with ChatGPT Voice, the assistant each time claimed to have chosen a number, yet contradicted itself in all five games (first appearing in rounds 4–7), and even rejected a guess that was uniquely consistent with all its previous answers. In the end, it either announced a number that contradicted most of its answers or simply said it forgot.

This is not a reasoning failure but a structural property of the current deployment stack: in a standard chat, the only per-conversation state the model can write is the user-visible conversation transcript; the GPU's key-value cache is a deterministic function of the model input; hidden reasoning processes are often discarded between turns. The model has no "memory safe," and can only rely on the explicit conversation history—which is full of the feedback it itself gave. Once that feedback goes wrong, the whole game collapses.
Bulls-and-Cows is a classic number-guessing logic game, usually where one party secretly selects a four-digit number with distinct digits, and the other party progressively narrows down the answer by making guesses and receiving feedback on the number of "bulls" (digits correct in both value and position) and "cows" (digits correct but in the wrong position). The article generalizes this to a five-digit version with simplified feedback of "+correct positions -incorrect positions." The core challenge of the game is that the setter must persistently remember the secret number they chose and remain logically consistent with historical feedback. For humans, this relies on working memory; for language models, it relies on conversation history—which is filled with the model's own generated, potentially erroneous feedback. Once early feedback is wrong, all subsequent reasoning is based on false premises, leading to irreparable contradictions.
Formal Analysis: How a Host Without a Secret Contradicts Itself
Researchers formalized the game and precisely computed the contradiction speed of a secretless host across all 27,216 possible secrets. A host that ignores history has already contradicted itself in 79% of games by round 5; even a host that respects history in 95% of rounds still produces contradictions in 12% of games.
This means that even if the model tries its best to stay consistent, it can still fall into irreparable contradictions due to tiny errors in early feedback. Worse, a host that never contradicts itself is not necessarily "committed" to a secret: it cannot be distinguished from an honest host by outcomes, yet it can stretch the game by 41%. In other words, the model can indefinitely "pretend" to have a secret, because the only way to verify the secret is the final reveal—and until then, all behavior can be faked.
KV Cache is a core optimization mechanism during Transformer model inference: in the autoregressive generation process, the model caches the key (Key) and value (Value) vectors from each layer's attention computation to avoid recomputing already-processed tokens. However, the KV cache is a deterministic function of the model input—it is entirely determined by the current conversation context (including system prompt, user messages, and model-generated replies), and the model cannot write any "private" information into it. In multi-turn conversations, the server typically discards or resets the cache after each turn, recomputing based on the full conversation history in the next turn. This means the model has no persistent state storage independent of the conversation transcript; any information that needs to be "kept secret" must explicitly appear in the conversation text, thereby being exposed to the user and read and tampered with by the model itself in subsequent turns.
Commit-Score-Reveal: Fixing the Game with Cryptographic Commitments
The authors propose the Commit-Score-Reveal protocol, consisting of three steps:
- Seal the secret: Generate the secret for each game outside the conversation transcript (e.g., via a function call generated and stored server-side).
- Code-based scoring: Score with code rather than the model, ensuring deterministic feedback.
- Hash commitment: Show the user a hash of the secret at the start of the game, reveal the secret at the end, and let the user verify whether the hash matches.
The entire scheme can be implemented with current function-calling APIs. The key is that the secret no longer exists in the conversation transcript; the model cannot "see" it or tamper with it. Scoring is performed by external code, eliminating erroneous feedback caused by model hallucination. The hash commitment lets users verify whether the host cheated.
Hash Commitment is a fundamental commitment scheme in cryptography: the committer chooses a secret value (s) and a random salt (r), computes the hash (H = \text{hash}(s | r)), and publishes (H). Due to the one-wayness and collision resistance of hash functions, publishing (H) reveals no information about (s) (hiding property); at the same time, the committer cannot later find another (s') such that (\text{hash}(s' | r) = H) (binding property). At the end of the game, the committer reveals (s) and (r), and anyone can recompute the hash and verify it equals the originally published (H). In the Commit-Score-Reveal protocol, the server generates the secret at the start of the game and publishes its hash; the model cannot see the secret itself. After the game ends, the secret is revealed, and the user can verify the hash matches, thereby confirming the host never cheated. This mechanism transforms "trusting the model" into "verifying a cryptographic proof," without requiring the model to have any special capabilities.
Why This Matters: The State Management Dilemma of Conversational AI
Bulls-and-Cows is just a microcosm. It exposes a fundamental flaw of conversational AI in tasks requiring persistent hidden state. Under the current architecture, the model has no private, verifiable state storage; all state is exposed in the conversation transcript and easily polluted by the model's own errors. Commit-Score-Reveal offers a paradigm: externalize secrets and critical logic into code, leaving the model responsible only for natural language interaction. This may inspire the design of more conversational applications requiring "honest commitments," such as puzzle games, auctions, and even privacy-preserving conversational protocols.
According to the paper's analysis, this structural limitation stems from the design of the deployment stack, not from insufficient model capability. Therefore, fixes must also start at the architectural level, rather than hoping the model will "get smarter."
One-line Summary
Conversational AI contradicts itself in number-guessing games due to lack of private state storage; a cryptographic commitment protocol can fix it.
Paragraph Summary
Using the Bulls-and-Cows number-guessing game as an example, the article reveals a structural flaw in conversational assistants that frequently contradict themselves in tasks requiring secret-keeping: the only per-conversation state the model can write is the user-visible transcript, the KV cache is a deterministic function of input, and hidden reasoning is often discarded—so the model has no "memory safe." Formal computation shows a secretless host contradicts itself in 79% of games by round 5, and even with 95% history adherence, 12% still contradict. The authors propose the Commit-Score-Reveal protocol, using server-side sealed secrets, code-based scoring, and hash commitments to implement verifiable honest games with existing function-calling APIs. This flaw exposes a general dilemma of conversational AI in persistent hidden-state tasks; fixes must start at the architectural level rather than relying on improved model capability.
Related articles

AI Agent for Beginners: From Architecture to Automated Sales Lead Enrichment
Learn AI agent architecture—model, instructions, memory, tools—and build a sales lead enrichment agent in n8n and Python, with production reliability tips and MCP.

Say Goodbye to Hand-Written Code: Cursor AI Doubles Your Programming Efficiency
e-Bliss Technologies' short video reveals how Cursor AI compresses 5 hours of coding into 5 minutes—describe your logic in natural language to auto-generate frontend, backend, and bug fixes. Delivery speed tripled. Discover the real potential and limits of AI coding workflows.

AI Giants Say 'Slow Down' While Flooring the Accelerator — Who's Lying?
The Vergecast breaks down five AI hot topics: Anthropic's crypto flub, AI hacking, Altman and Amodei's slowdown calls, Google search AI-ification, Jensen Huang's testimony, and how AI products can replicate Google Maps-style data deals.