Contradictory Requirements
How conflicting constraints confuse the model and produce hedged responses.
Contradictory Requirements is a free AI Prompt Engineering lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AI Prompt Engineering learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
The Contradiction Problem
A prompt with contradictory requirements asks the model to satisfy two goals that cannot both be fully achieved at the same time. Unlike vagueness — where the problem is too little information — contradictions give the model conflicting information that forces it to make an arbitrary trade-off.
The model will not tell you the requirements contradict. It will produce something, but that something will silently sacrifice one of your requirements to satisfy the other. You may not notice until you look closely at the output.
Classic Contradiction 1: Brief but Comprehensive
"Write a brief overview that comprehensively covers all aspects of cloud computing."
Brief means short. Comprehensive means thorough. For a topic as broad as cloud computing, these two goals cannot coexist. Something must be sacrificed.
The model will typically prioritize breadth (many topics touched) over depth, producing a shallow list-like overview. But it will call this 'comprehensive' in the opening line, creating a false sense of completeness.
Fix: Decide which matters more, then reduce the scope. "Brief overview of the top 3 cloud computing models" achieves both.
Classic Contradiction 2: Formal but Fun
"Write a formal report that's also fun and engaging."
Formal writing follows conventions: measured language, third person, structured sections, no colloquialisms. Fun and engaging writing typically uses humor, first or second person, surprising angles, and emotional hooks. These styles actively resist each other.
Fix: Choose a point on the formality spectrum. "Write in a professional but conversational tone — not stiff, but not casual either." This is a coherent instruction; the contradiction is resolved by picking a middle ground and naming it precisely.
Classic Contradiction 3: Simple but Detailed
"Explain quantum entanglement simply and in full detail."
Simplification requires abstraction — hiding complexity and omitting nuance. Full detail requires the opposite. For technical topics, there is no way to be both maximally simple and maximally detailed simultaneously.
Fix: Specify the target audience and their background, then let depth follow from that decision. "Explain quantum entanglement for a physics undergraduate — assume they know wave functions but not QFT." This is specific and achievable because the audience definition implies the right balance.
Detecting Contradictions Before Sending
Before sending a prompt with multiple instructions, do a quick contradiction scan:
- List all instructions and constraints
- For each pair, ask: can these be satisfied simultaneously without trade-offs?
- If a pair conflicts, decide which takes priority
- State the priority explicitly in the prompt
This takes 30-60 seconds for a complex prompt and prevents the frustrating experience of getting output that you realize only in hindsight cannot possibly satisfy what you asked for.
The Partial Overlap Problem
Not all contradictions are absolute opposites. Some instructions have partial overlap where satisfying one makes the other harder:
- "No jargon" + "technically precise" — technical precision often requires technical vocabulary
- "Objective" + "persuasive" — persuasion implies selective presentation of facts
- "Creative" + "consistent with brand voice" — creative constraints reduce creative range
Partial overlaps produce partially correct outputs that feel slightly off. The model compromises on both rather than fully achieving either.
Resolving Contradictions with Priority Instructions
The cleanest resolution for a contradiction is an explicit priority instruction:
- "Be as concise as possible while covering these 5 points. If you cannot cover a point fully in the word limit, summarize it in one sentence rather than omitting it."
- "Aim for a professional tone, but if you must choose between stiff-formal and casual-engaging, lean toward engaging."
- "Prioritize accuracy over simplicity. When a concept requires technical vocabulary, use it and define it the first time."
Priority instructions remove the model's need to guess how to handle the trade-off.
Contradiction Detection in Code
For automated prompt generation pipelines, you can add a contradiction pre-check using a second model call before generating the actual content:
import openai
client = openai.OpenAI(api_key='sk-...')
def check_for_contradictions(prompt_text):
check_prompt = f'''Review the following prompt for contradictory requirements.
List any pairs of instructions that conflict with each other.
For each conflict, suggest how to resolve it.
If there are no conflicts, say "No contradictions found."
Prompt to review:
---
{prompt_text}
---'''
response = client.chat.completions.create(
model='gpt-4o-mini',
messages=[{'role': 'user', 'content': check_prompt}]
)
return response.choices[0].message.content
# Example
test_prompt = '''Write a brief but comprehensive guide to machine learning
that is both simple for beginners and technically detailed for experts.
Keep it under 200 words. Formal and professional but also fun and engaging.'''
print(check_for_contradictions(test_prompt))Tone Contradictions: A Closer Look
Tone contradictions are particularly common because many tone descriptors exist on spectrums that are implicitly opposed:
- Formal ←————————→ Casual
- Authoritative ←————→ Approachable
- Urgent ←——————————→ Calm
- Concise ←—————————→ Explanatory
Combining terms from opposite ends of the same spectrum creates a contradiction. Instead of using two opposing terms, locate where on the spectrum you want to be and use a term for that specific point: "conversational but professional" or "direct without being cold."
Scope Contradictions
Scope contradictions arise when the content scope and the length budget are incompatible:
- "Cover all 10 features in 100 words" — 10 words per feature is not enough for meaningful coverage
- "Provide a comprehensive analysis with examples for each point in a 2-minute read"
- "Full product comparison across 8 dimensions for 5 products in one paragraph"
These are mathematical contradictions. The fix is always to either reduce scope or increase the length budget. When both feel non-negotiable, the task needs to be split into multiple outputs.
Audience Contradictions
A prompt can contradict itself about the audience:
- "Write for both beginners and experts" — the explanation depth that works for one is wrong for the other
- "Write for a technical team and their non-technical management" — same problem
- "Accessible to all readers regardless of background" — impossibly broad audience specification
Fix: Pick the primary audience and write for them. If you need two versions, run the template twice with different audience variables rather than trying to produce one output that serves both audiences poorly.
Knowledge Check: Contradictory Requirements
You need to write a product announcement for a new enterprise software tool. You want it to be: (1) exciting and enthusiastic, (2) formal and appropriate for a CEO audience, (3) under 80 words, (4) cover all 7 new features. Which contradiction is most critical to resolve?
Recap: Contradictory Requirements
Contradictory requirements are instructions that cannot both be fully satisfied simultaneously. Unlike vagueness, contradictions give the model too much conflicting information. The model will satisfy the contradiction silently, sacrificing one goal for the other without telling you.
The classic pairs are: brief+comprehensive, formal+fun, simple+detailed. Detect contradictions by listing all instructions and checking pairs. Resolve them by picking a priority, finding a middle-ground term, or splitting the task into multiple outputs.
In the next lesson, you will tackle missing context — the third major category of prompt mistakes.
Frequently asked questions
Is the “Contradictory Requirements” lesson free?
Yes — the full text of “Contradictory Requirements” is free to read here on the web, and the AI Prompt Engineering course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AI Prompt Engineering course, upgrade to CoddyKit PRO.
What will I learn in “Contradictory Requirements”?
How conflicting constraints confuse the model and produce hedged responses. You practise AI Prompt Engineering with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start AI Prompt Engineering?
No prior experience is required. AI Prompt Engineering on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Contradictory Requirements” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this AI Prompt Engineering lesson?
Yes. Every AI Prompt Engineering lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Overly Vague Instructions
- Contradictory Requirements
- Missing Context Errors
- Diagnosing and Fixing Bad Prompts