A vague prompt will still produce a good-looking answer in a demo, and that good-looking answer is what makes it dangerous.

The demo input was clean and the ambiguity never got tested. Real users bring the inputs that expose every expectation you left implied, and the model will resolve each one somehow, just not necessarily the way you had in mind.

What a production prompt is actually carrying

It carries far more than gets written down when a prompt is tuned against a single example: tone, scope and output shape, what to do with ambiguous requests, what to refuse, when to say "I do not know", and what to do when the evidence is thin or contradictory.

Every one of those is a decision, and leaving it unstated does not remove it. The model makes it at inference time (the moment it generates a response), differently on different inputs, optimising for plausibility rather than your policy.

Review it like an API contract

The useful discipline is to stop treating prompts as wording and start treating them as operating instructions with acceptance criteria.

A prompt worth shipping states the objective (what outcome, judged how), the constraints (length, tone, what to never do), the evidence it may use, the output shape, and the refusal behaviour: the last of which is the most commonly missing and the most commonly needed. Write refusal rules narrowly, because broad ones turn away requests the product should handle, and test them on in-scope requests as well as out-of-scope ones.

Then hand the prompt to a colleague and ask what they think the output should look like for a genuinely awkward input. Where their answer differs from yours, you have found ambiguity the model is also resolving on its own.

Test on the ugly inputs

Prompts get iterated against the cleanest example, because that is what is open in the playground (the model provider's console for trying prompts). Then they meet an empty field, a 40-page document, a question in another language, a request that is partly out of scope, or someone being deliberately difficult.

A prompt that behaves only on tidy input is still a demo script and has yet to become an operating instruction.

Before launch, removing an ambiguity is a wording change. After launch it is a production incident, and by then the vague version is the baseline everyone has adapted to.

Save every awkward input you find, with the output you would accept, and rerun the set on every prompt change. Version the prompt with its test set, as you would an API, so a fix for one input cannot quietly break another.

Terms in this piece

About this explainer

Format
Explainer
Level
Intro
Read
2 min read
Published
May 24, 2026
Disciplines

Short mental models: one idea, why it matters, what to do about it.

Checklist · · 24 checks

Working with Claude, practices that hold up

Prompting, agents and tools, Claude Code, evaluation and safety. The habits that make Claude-based systems reliable, as a checklist you can run against your own setup.