Topic 1 of 4 · 3 min read
Ignored constraints and formats
Goal: Check an AI output against every constraint in its prompt and list the ones it dropped.
A model can follow most of your instructions and still skip one, and it will not tell you. The answer looks finished and confident, so the missing rule is easy to miss.
Check yourself · 1 of 3
You ask an assistant for a 100-word summary with no jargon. The reply reads well but runs to 160 words. What does this show?
Why it matters
You write a prompt with a word limit, a banned phrase, three required sections and a format. The reply reads well. You paste it into your report. Later someone notices it is twice the length you asked for, or it used the phrase you banned. The model did not refuse. It just did not do it, and nothing in the text warns you.
This happens with ChatGPT, Claude, Gemini, Copilot and open-weight models alike. Researchers build tests of checkable instructions, such as "write at least 300 words" or "do not use commas", and find that models still fail some of them (see the IFEval paper in the references). Prompts with many rules fail more often than prompts with one.
How to check an output
- List the constraints first. Before you read the answer, write down every rule you gave: length, format, required parts, things to avoid, tone, audience.
- Test each rule on its own. Count the words. Look for each required section. Search for the banned word. Do not judge the whole reply by feel.
- Mark what is missing, not what is present. A good-looking answer hides gaps. Go rule by rule and tick or cross each one.
- Fix it with a targeted follow-up. Say which rule failed and ask for a revision: "The summary is 180 words. The limit is 100. Shorten it and keep the three headings."
- Make rules easy to check. "Keep it short" cannot be tested. "At most 100 words" can. Put rules in a short numbered list, not buried in a paragraph.
Before and after
Weak: you ask for a product description "in under 50 words, no exclamation marks, mention the warranty, end with a question". You read it, like the tone, and send it. It has 64 words and an exclamation mark.
Better: you list the four rules, check each one, and find two failures. You reply: "Two rules were missed: the length is 64 words (limit 50) and there is an exclamation mark. Fix only those and keep the rest."
What goes wrong
- Silent skipping. The model drops one rule and says nothing, so you only find it if you look.
- Rules that compete. "Be detailed" and "be brief" pull against each other, and one usually loses.
- Late rules fade. A constraint added at the end of a long prompt, or many turns ago, is more likely to be missed.
- Claiming success. If you ask "did you follow all my instructions?", the model often says yes. Check the text yourself instead.
Examples
The product description with four rules
Prompt: Write a product description for a steel water bottle. Under 50 words. No exclamation marks. Mention the 2-year warranty. End with a question.
Output: Stay hydrated all day with our insulated steel bottle! It keeps drinks cold for hours, fits most cup holders, and comes with a 2-year warranty so you can buy with confidence. Lightweight, durable and ready for every trip you take. Ready to upgrade your daily carry?
Check: Length is over 50 words (fail). Exclamation mark in the first sentence (fail). Warranty mentioned (pass). Ends with a question (pass). Two of four rules were dropped, and the text gave no sign of it.
A targeted follow-up
Instead of "try again", name the failures: "Two rules were missed. The text is over 50 words and has an exclamation mark. Rewrite it so both are fixed, and keep the warranty line and the closing question."
A specific follow-up fixes the failure and leaves the parts that worked alone.
Key points
- A model can drop a constraint without saying so, and the rest of the answer still reads as complete and confident.
- Prompts with many rules are skipped more often than prompts with one or two.
- Check each constraint on its own, such as counting words or searching for a banned term, instead of judging the whole reply by feel.
- Write rules that can be tested, such as "at most 100 words", not "keep it short".
- Asking the model if it followed your rules is weak evidence; checking the output yourself is strong evidence.
Common mistakes
- Reading the answer for quality and never testing it against the list of rules you gave.
- Asking "did you follow all my instructions?" and trusting a yes.
- Piling ten rules into one paragraph so neither you nor the model can tell which ones matter.
- Writing untestable rules such as "be concise" and then being unable to say whether they were met.
Check yourself · 2 of 3
A prompt says: "Reply with a table, at most 5 rows, no emojis, and a one-line summary at the end." What is the best way to check the reply?
Check yourself · 3 of 3
Which rule is easiest to check after the model replies?
Practice items, not counted towards your mastery.
Start here
- Instruction-Following Evaluation for Large Language Models (IFEval) (opens in a new tab)PaperFree
A benchmark of checkable instructions such as word counts and required keywords, used to measure what models skip.
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
Research showing models use details at the start and end of a long input better than details in the middle.
- Context Rot (Chroma research) (opens in a new tab)ArticleFree
Tests of many models showing answers get less reliable as the input grows, even on simple tasks.