Nguyen Le Phong

Ask the AI to Name Its Assumptions First

AI fills the gaps in your question with guesses it rarely mentions.

You ask an AI assistant to add an export endpoint for invoices. The code it returns looks clean, has a test and even handles pagination. What it doesn't say: it assumed the endpoint is internal only, that the caller is already logged in, that the query is already filtered by tenant, and that your test fixture looks like production data. None of those guesses is strange. That's exactly why they slip through review, and why you want them written down.

A developer sorts a row of assumption cards next to code on a screen, with a handwritten checklist marking which ones have been checked.
Once the guesses are on cards, you can check them one by one.

This post is about one small habit: asking the model to list its assumptions as part of the answer. Why models guess without saying so, a prompt you can reuse, where assumptions usually hide in code, and what to do with the list once you have it.

Why models fill gaps without telling you

Filling gaps is part of what makes these tools useful. Your question is never complete, and the model keeps going anyway. The trouble starts when a guess looks like knowledge.

There's a structural reason it happens. In a 2025 paper, researchers at OpenAI and Georgia Tech argue that models "sometimes guess when uncertain" because "the training and evaluation procedures reward guessing over acknowledging uncertainty." Like a student on a multiple-choice exam, a model that always answers scores better than one that says "I'm not sure" (Kalai et al., Why Language Models Hallucinate).

Models are also weak at noticing that a question is ambiguous in the first place. The CLAMBER benchmark (ACL 2024) found current LLMs of limited practical use at identifying and clarifying ambiguous queries, and short of the mark at writing good clarifying questions. Chain-of-thought and few-shot prompting helped only a little and could make the models overconfident (Zhang et al., CLAMBER).

So by default you get an answer, and the guesses stay inside it. You have to ask for them.

A prompt that brings the guesses out

Ask for assumptions before or alongside the answer, not as an afterthought. Something like:

Before you answer, list what you're assuming about:
- where this code runs and who calls it
- whether the input can be trusted
- auth, tenancy and permissions
- retries, concurrency and uniqueness in the data
Mark each one "from what I gave you" or "guessed".
If a guess would change your answer, ask me first.

Anthropic's own docs back the last line from a different angle: explicitly giving the model permission to admit uncertainty "can drastically reduce false information," though the same page warns these techniques don't eliminate hallucinations and critical information still needs checking (Claude docs, Reduce hallucinations, checked November 2026).

Two things make the list more honest. Ask it to separate what came from your files from what it guessed. And ask which assumptions would change the answer if they were wrong. Those are the load-bearing ones.

Where assumptions usually hide in code

Back to the invoice export. Here's what each silent guess could cost, and the fastest way to check it:

Assumption If it's wrong Quick check
The endpoint is internal onlyIt needs auth and rate limits it doesn't haveRead the route and gateway config
The caller is already logged inAnyone with the URL can download invoicesFind the middleware on this exact route
The query is already filtered by tenantOne customer sees another customer's dataRead the repository query, look for the tenant filter
The job runs onceA retry sends the export twiceCheck the queue's retry policy and whether there's an idempotency key
The fixture looks like productionTests pass, production fails on nulls or odd formatsCompare the fixture with a real, anonymized row

Writing tasks have their own hidden guesses: who the reader is, whether you're trying to explain, persuade or warn, and how formal it should sound. A draft can be fine in every sentence and still be wrong for the reader.

Sort the list, then verify the load-bearing ones

Once the assumptions are visible, you decide. Most lists sort into four piles:

  • Safe: true, and you know it. Move on.
  • Needs a source check: probably true, but you've never looked. Open the file.
  • Wrong: fix the prompt or the code, then ask again.
  • Missing context: the guess shows your request left out something important. That's often the most useful find of all.
A rule of thumb

If an assumption touches security, money or someone else's data, it goes in the "needs a source check" pile even when it feels obviously true.

It changes team conversations, too. Arguing with a polished AI answer goes nowhere. Pointing at assumption number three and saying "this isn't true for our public API" gets a fix in two minutes. The question moves from "is the model smart?" to "do these assumptions match our system?"

Try this week

  • Save the prompt above as a snippet and add it to your next AI coding request.
  • Sort the list into safe, check, wrong and missing context.
  • Verify every assumption that touches auth, tenancy, money or retries before you merge.
  • Paste the checked list into the PR description so reviewers see it too.

The answer may still need editing. With the assumptions on the table, it's much clearer what you checked and what you're trusting. The next step is asking which files the answer actually came from, covered in asking AI to show its working context. And for the facts no prompt can carry, see what AI cannot know from the prompt alone.

What did you think?

Frequently asked questions

Why should I ask an AI to list its assumptions?
Models fill gaps in your question with guesses and rarely say so. A 2025 paper from OpenAI and Georgia Tech researchers argues that training and evaluation reward guessing over admitting uncertainty. Asking for an explicit list turns those hidden guesses into items you can check, especially the ones about auth, data scope and retries.
What prompt gets an AI to name its assumptions?
Ask before or alongside the answer: list what you're assuming about where the code runs, whether input is trusted, auth and tenancy, and retries or uniqueness; mark each as taken from what I gave you or guessed; and ask me first if a guess would change the answer. Anthropic's docs note that letting the model admit uncertainty can greatly reduce false information, but it doesn't remove the need to check.
What should I do with the assumption list?
Sort it into safe, needs a source check, wrong, and missing context. Verify anything that touches security, money or other people's data even if it feels obvious, fix the prompt or code for wrong ones, and paste the checked list into the PR so reviewers can see it.