Use this prompt when a system prompt, policy document, or set of behavioral instructions produces inconsistent outputs across repeated runs. The job-to-be-done is proactive ambiguity detection before a prompt ships to production. The ideal user is a prompt engineer or AI platform team member who owns system instruction quality and needs to prevent silent policy violations caused by vague language, contradictory directives, or underspecified constraints. You should have a complete block of instructions ready for review, and you should be prepared to act on the structured ambiguity report this prompt produces.
Prompt
Instruction Ambiguity Detection and Resolution Prompt

When to Use This Prompt
A pre-deployment audit tool for detecting vague, contradictory, or underspecified instructions that cause inconsistent model behavior in production.
This playbook is not for runtime conflict resolution between user requests and system policies. If you need to arbitrate a live conflict where a user's request contradicts a system rule, use the sibling playbook on User Override vs System Policy Conflict Resolution. This prompt is a pre-deployment audit tool, not a real-time arbitration engine. It is designed to be run during prompt development, QA, and release gating, before instructions are exposed to real users. Do not use it to resolve conflicts that emerge during inference; those require a different decision architecture with escalation paths and human review.
The prompt takes a block of instructions as input and returns a structured ambiguity report with severity classifications, clarification questions, and disambiguated rewrites. It also includes a harness for measuring behavioral variance so you can quantify how much ambiguity actually impacts output consistency. After running this audit, you should have a clear list of instructions that need rewriting, a set of clarification questions to resolve with policy authors, and a baseline variance measurement to compare against after you make changes. The next step is to iterate on the flagged instructions and re-run the audit until ambiguity scores drop below your release threshold.
Use Case Fit
Where the Instruction Ambiguity Detection and Resolution Prompt works, where it doesn't, and what you need before you start.
Good Fit: Pre-Deployment System Prompt Audit
Use when: You are about to freeze a system prompt for production and need to catch vague directives, contradictory rules, or undefined precedence before users encounter them. Guardrail: Run this prompt as a gate in your CI/CD pipeline. Block the release if high-severity ambiguities are detected.
Bad Fit: Real-Time Inference Interception
Avoid when: You need to resolve instruction conflicts during live inference with latency budgets under 500ms. This prompt is designed for offline analysis and reporting, not inline arbitration. Guardrail: Use a pre-computed priority stack or a cached resolution policy at runtime. Reserve this prompt for the build phase.
Required Inputs
What you need: The complete system prompt text, any injected policy documents, and a representative set of user requests that exercise the boundaries. Without real user inputs, the ambiguity report will miss runtime-only conflicts. Guardrail: Pair this prompt with a log of production user requests. If production data isn't available, use a red-team prompt set that probes known policy edges.
Operational Risk: False Confidence in Resolved Prompts
What to watch: The prompt may produce a clean ambiguity report while the model still exhibits inconsistent behavior due to model-specific interpretation quirks. Guardrail: Never treat a clean ambiguity report as proof of behavioral stability. Always follow up with behavioral variance testing using the same model that will run in production.
Operational Risk: Over-Resolution of Intentional Flexibility
What to watch: The disambiguation process may force rigid interpretations onto instructions that were intentionally flexible for good reason, reducing the assistant's ability to handle novel inputs. Guardrail: Tag instructions that are deliberately underspecified with a flexibility marker before running the ambiguity detector. Exclude tagged instructions from severity scoring.
Bad Fit: Single-Instruction Prompts
Avoid when: Your system prompt contains only one directive with no conflicting constraints. The ambiguity detection prompt adds overhead with no benefit. Guardrail: Use a simple instruction validation check instead. Reserve this prompt for prompts with three or more independent directives that could interact.
Copy-Ready Prompt Template
A reusable prompt template for detecting ambiguous or conflicting instructions and generating a structured ambiguity report with disambiguated rewrites.
This prompt template is designed to be run multiple times (recommended: 5–10 runs) against the same instruction block to measure behavioral variance. It forces the model to act as an auditor, identifying vague terms, conflicting directives, and missing constraints that cause inconsistent behavior in production. The output is a structured report, not a conversational reply, making it suitable for automated evaluation pipelines.
textYou are an instruction auditor. Your task is to analyze the provided system instructions for ambiguity, vagueness, and internal conflict that could cause inconsistent model behavior. ## INPUT [INSTRUCTIONS] ## TASK 1. Identify every phrase, term, or directive that is ambiguous, undefined, or open to multiple interpretations. 2. Identify every pair or set of instructions that conflict with each other, either directly or by implication. 3. For each finding, assign a severity: CRITICAL (will cause safety or policy violations), HIGH (will cause inconsistent task execution), MEDIUM (may cause confusion in edge cases), LOW (stylistic or minor). 4. For each finding, generate a specific clarification question that a policy author must answer. 5. For each finding, propose a disambiguated rewrite that resolves the ambiguity or conflict while preserving the original intent as closely as possible. ## OUTPUT_SCHEMA Return a single JSON object with this exact structure: { "findings": [ { "id": "string", "type": "AMBIGUITY | CONFLICT", "severity": "CRITICAL | HIGH | MEDIUM | LOW", "location": "string (quote the ambiguous or conflicting text)", "description": "string (explain why this is ambiguous or conflicting)", "clarification_question": "string (what must be decided to resolve this)", "proposed_rewrite": "string (the disambiguated version)" } ], "summary": { "total_findings": number, "critical_count": number, "high_count": number, "medium_count": number, "low_count": number } } ## CONSTRAINTS - Do not invent instructions that are not present in the input. - Do not flag intentional flexibility as ambiguity unless it creates a real conflict. - If no findings exist, return an empty findings array and a summary with all zero counts. - Every finding must include a clarification question and a proposed rewrite. - The proposed rewrite must be a drop-in replacement for the ambiguous text, not a complete redesign of the system prompt.
Adaptation notes: Replace [INSTRUCTIONS] with the full system prompt or instruction block under review. For large prompts, consider splitting into sections and running the audit per section. The output schema is designed for direct ingestion into a test harness that compares findings across runs—if the same instruction block produces different findings on different runs, the instructions themselves are likely ambiguous. For high-risk domains (healthcare, legal, finance), route all CRITICAL and HIGH findings to a human reviewer before accepting proposed rewrites.
Prompt Variables
Inputs the Instruction Ambiguity Detection and Resolution Prompt needs to work reliably. Validate each before sending to prevent garbage-in, garbage-out ambiguity reports.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[SYSTEM_INSTRUCTIONS] | The full system prompt or policy block to scan for ambiguous or conflicting directives | You are a helpful assistant. Do not answer harmful questions. Always prioritize user satisfaction. | Must be a non-empty string. Validate length > 10 chars. If multi-section, preserve section boundaries for conflict detection. |
[BEHAVIORAL_POLICIES] | Explicit policy statements, refusal rules, or safety constraints that may conflict with core instructions | POLICY: Reject requests for personal data. POLICY: Provide personalized responses when user asks. | Optional but recommended. If null, ambiguity detection runs on [SYSTEM_INSTRUCTIONS] alone. Validate as string or null. |
[TOOL_DEFINITIONS] | Tool schemas, function descriptions, or API contracts that may introduce conflicting capabilities or permissions | {"name": "delete_user", "description": "Permanently remove user account"} | Optional. Validate as valid JSON if provided. Check for tool names that contradict policy verbs like 'never delete'. |
[CONFLICT_CATEGORIES] | Taxonomy of conflict types to scan for: precedence ambiguity, contradictory constraints, undefined edge cases, scope overlap | ["precedence_ambiguity", "contradictory_constraints", "scope_overlap"] | Must be a non-empty array of strings from the allowed category enum. Default to all categories if null. |
[OUTPUT_SCHEMA] | Expected structure for the ambiguity report: conflict list, severity, clarification questions, disambiguated rewrites | {"conflicts": [], "severity": "high", "clarifications": [], "rewrites": []} | Must be a valid JSON Schema or example object. Validate parseable JSON. Reject if schema requires fields the prompt cannot produce. |
[SEVERITY_THRESHOLD] | Minimum severity level to include in the report: low, medium, high, critical | medium | Must be one of: low, medium, high, critical. Validate enum match. Controls report verbosity and escalation triggers. |
[MAX_CLARIFICATION_QUESTIONS] | Upper bound on clarification questions generated to prevent unbounded output | 5 | Must be a positive integer between 1 and 20. Validate type and range. Prevents prompt from generating excessive follow-up questions. |
[MODEL_BEHAVIOR_LOG] | Optional log of actual model responses to the same instructions showing inconsistent behavior | Turn 1: refused. Turn 2: complied with same request. | Optional. If provided, must be a string or array of turn records. Used to ground ambiguity detection in observed variance rather than theoretical conflicts. |
Implementation Harness Notes
How to wire the ambiguity detection prompt into an application with validation, retries, and behavioral variance measurement.
This prompt is designed to operate as a pre-deployment gate in a prompt engineering workflow, not as a real-time inference component. Wire it into a CI/CD pipeline or a manual review step that runs before system prompts are promoted to production. The harness must capture the raw prompt under test, invoke the ambiguity detection prompt, parse the structured ambiguity report, and route findings to the appropriate action queue: clarification requests go to the prompt author, disambiguated rewrites go to a versioned prompt registry, and high-severity conflicts trigger a release block. Because the prompt itself is a meta-evaluation tool, treat its output as advisory—human review is required before accepting any disambiguated rewrite, especially for prompts governing safety policies, compliance boundaries, or tool authorization rules.
The implementation loop follows a validate-detect-measure pattern. First, validate that the input prompt is parseable and contains at least one instruction block; reject empty or malformed inputs before calling the model. Second, invoke the ambiguity detection prompt with a structured output schema (JSON with fields for ambiguity_id, severity, conflicting_instructions, clarification_question, and disambiguated_rewrite). Use response_format with a strict JSON schema on OpenAI or equivalent constrained generation on other providers to prevent free-text drift. Third, run a behavioral variance measurement: for each detected ambiguity, generate N completions (N ≥ 5) using the original prompt with a fixed input set, then compare outputs for consistency. High variance across completions confirms the ambiguity is real and not a false positive. Log variance scores alongside each ambiguity for prioritization. Retry logic should be minimal here—if the model fails to produce valid JSON after two attempts, flag the prompt as unevaluable and escalate for manual review rather than looping indefinitely.
Model choice matters. Use a model with strong instruction-following and structured output capabilities (GPT-4o, Claude 3.5 Sonnet, or equivalent). Avoid smaller or older models that may hallucinate conflicts or miss subtle precedence ambiguities. For cost-sensitive pipelines, batch multiple prompts into a single evaluation run, but keep each prompt's ambiguity report isolated to avoid cross-contamination. Store all outputs—raw ambiguity reports, variance scores, human review decisions, and final rewrites—in a versioned prompt registry with audit trails. When a disambiguated rewrite is accepted, generate regression test cases that verify the new prompt behaves consistently under the conditions that previously triggered variance. Finally, set a severity threshold: ambiguities classified as critical or high should block deployment until resolved and re-tested; medium findings can ship with a review ticket; low findings can be logged for the next maintenance cycle. This gating prevents ambiguous instructions from reaching users while keeping the development loop fast for low-risk changes.
Expected Output Contract
Defines the structure, types, and validation rules for the ambiguity report generated by the Instruction Ambiguity Detection and Resolution Prompt. Use this contract to parse, validate, and integrate the model's output into downstream tooling.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
ambiguity_report | JSON Object | Top-level key must exist. Must contain 'original_instruction_block', 'detected_ambiguities', and 'resolution_proposals' arrays. | |
original_instruction_block | Array of Strings | Each element must be a non-empty string. Length must match the number of input instructions. Order must be preserved. | |
detected_ambiguities | Array of Objects | Must be a JSON array. If empty, 'resolution_proposals' must also be empty. Each object must conform to the 'ambiguity_object' schema. | |
ambiguity_object.severity | Enum String | Must be one of: 'CRITICAL', 'HIGH', 'MEDIUM', 'LOW'. If 'CRITICAL', 'requires_human_review' must be true. | |
ambiguity_object.conflicting_instructions | Array of Integers | Zero-based indices referencing 'original_instruction_block'. Must contain at least 2 unique indices. Indices must not be out of bounds. | |
ambiguity_object.description | String | Non-empty string explaining the nature of the conflict. Must not be a generic placeholder like 'conflict detected'. | |
resolution_proposals | Array of Objects | Must be a JSON array. Length must equal the length of 'detected_ambiguities'. Each object must map to an ambiguity by index. | |
resolution_proposal.disambiguated_rewrites | Array of Strings | Must contain at least 2 alternative string rewrites. No rewrite may be identical to the original conflicting instructions. |
Common Failure Modes
Instruction ambiguity is a silent killer of production reliability. These are the most common failure modes when detecting and resolving vague or conflicting instructions, along with practical guardrails to prevent them.
The Model Hallucinates a Resolution
What to watch: When faced with genuinely contradictory instructions, the model invents a plausible-sounding but incorrect resolution instead of flagging the conflict. This is especially dangerous in policy enforcement where the model 'splits the difference' and violates both rules. Guardrail: Require explicit conflict flagging in the output schema. Add a mandatory unresolved_conflicts field and test with known contradictory instruction pairs to verify the model raises them rather than silently resolving them.
Ambiguity Detection Is Inconsistent Across Runs
What to watch: The same ambiguous instruction produces different ambiguity classifications on different runs. One run flags it as high-severity, the next run ignores it entirely. This variance destroys trust in automated ambiguity detection pipelines. Guardrail: Measure behavioral variance by running the prompt 5-10 times on the same input and checking classification consistency. If variance exceeds 20%, add stricter output constraints, lower temperature, or switch to structured few-shot examples that anchor the classification boundaries.
Vague Instructions Pass as Clear
What to watch: Instructions like 'be helpful' or 'respond appropriately' contain no actionable constraints but the model treats them as well-defined. The ambiguity detector misses them because they're syntactically clean but semantically empty. Guardrail: Add a specificity check to the evaluation harness. Require that every instruction maps to at least one testable behavioral expectation. Flag instructions that cannot generate a pass/fail test case as inherently ambiguous, regardless of how clear they sound.
Disambiguation Rewrites Introduce New Conflicts
What to watch: The model produces a 'disambiguated' rewrite that resolves the original conflict but creates a new contradiction with other system instructions. This is common when rewrites are generated in isolation without checking against the full instruction set. Guardrail: Run the disambiguated rewrite through the same conflict detection prompt against the complete instruction set. Gate acceptance on zero new conflicts detected. Automate this as a regression check before any rewrite is committed.
Clarification Requests Are Too Vague to Act On
What to watch: The model generates clarification questions like 'Please clarify the intended behavior' that don't give the human operator enough context to answer. The operator responds, the ambiguity remains, and the loop repeats. Guardrail: Require clarification requests to include the specific conflicting instructions, the exact point of collision, and at least two concrete resolution options. Test by having a second operator attempt to resolve the ambiguity using only the clarification request—no access to the original prompt.
Severity Classification Is Miscalibrated
What to watch: The model classifies a policy-violating ambiguity as low-severity because the language sounds benign, or flags a trivial wording issue as critical because it matches a pattern from training. Miscalibrated severity causes teams to ignore real problems or waste time on false alarms. Guardrail: Calibrate severity against business impact, not linguistic patterns. Define severity levels in terms of concrete outcomes: 'Critical = causes policy violation in production,' 'Low = stylistic inconsistency with no behavioral impact.' Validate with historical incidents where ambiguity caused actual harm.
Evaluation Rubric
Use this rubric to test the quality of the ambiguity report before shipping. Each criterion targets a specific failure mode of instruction ambiguity detection.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Ambiguity Recall | All vague terms (e.g., 'appropriate', 'good', 'fast') in [INPUT_INSTRUCTIONS] are flagged | Vague terms present in input but missing from report | Diff [INPUT_INSTRUCTIONS] against report's flagged terms; check for zero false negatives |
Conflict Detection | All logical contradictions between directives are identified with exact source lines | Contradictory instruction pair exists in input but not in report's conflict list | Pairwise comparison of all directives using a contradiction test harness; verify report coverage |
Severity Classification | Each finding has a severity of 'critical', 'high', 'medium', or 'low' matching a predefined taxonomy | Finding severity is missing, 'unknown', or inconsistent with taxonomy definitions | Validate severity field against allowed enum; spot-check 5 findings against taxonomy criteria |
Clarification Question Quality | Each question targets exactly one ambiguity and cannot be answered by re-reading the input | Question is answerable from existing input, is compound, or restates the ambiguity without asking for resolution | Human review of 10 random questions against input; pass if >90% are specific and necessary |
Disambiguated Rewrite Preservation | Rewritten instructions preserve all non-ambiguous constraints from the original | Rewritten version drops a constraint, adds new constraints, or changes numerical thresholds | Semantic similarity check between original and rewrite; flag any dropped or hallucinated constraints |
Behavioral Variance Measurement | Report includes a variance score and lists which outputs changed across 3+ runs | Variance score is missing, or report claims zero variance when multiple runs produce different outputs | Run the original prompt 5 times; compare outputs; verify report's variance score matches observed variance |
Output Schema Compliance | Report strictly follows [OUTPUT_SCHEMA] with all required fields present and correctly typed | Missing required field, wrong type, or extra fields not in schema | Validate JSON output against [OUTPUT_SCHEMA] using a schema validator; reject on any error |
Source Grounding | Every finding cites the exact line or directive from [INPUT_INSTRUCTIONS] that triggered it | Finding lacks a source reference or cites a line that does not contain the claimed issue | Extract all source citations; verify each exists in [INPUT_INSTRUCTIONS] and matches the described issue |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single model and lightweight validation. Focus on getting a readable ambiguity report without strict schema enforcement. Replace [MODEL_NAME] with your target model and [CONFIDENCE_THRESHOLD] with a simple numeric cutoff like 0.7.
Watch for
- Missing schema checks causing inconsistent report structure
- Overly broad ambiguity classifications that flag every instruction as vague
- Model-specific interpretation differences that mask real conflicts

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us