Inferensys

Prompt

Ambiguous Requirement Clarification Prompt

A practical prompt playbook for using the Ambiguous Requirement Clarification Prompt in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job-to-be-done, the ideal user, and the constraints where this prompt adds the most value before writing a single Gherkin scenario.

This prompt is for BDD practitioners, product owners, and QA leads who are staring at a user story or feature brief that feels 'almost ready' but collapses under scrutiny. The job-to-be-done is not to generate acceptance criteria yet—it is to surface the hidden assumptions, missing actors, and silent failure modes that will cause rework later. Use this prompt when a requirement contains vague adjectives ('fast', 'secure', 'intuitive'), when the happy path is clear but error states are invisible, or when multiple stakeholders interpret the same sentence differently. The ideal user is someone who can recognize that a requirement is underspecified but needs a structured, ranked list of questions to drive a productive clarification session with the product trio.

Do not use this prompt when the requirement is already formalized as a detailed technical specification with defined error codes, when you need executable Gherkin immediately (use the User Story to Gherkin Scenario Prompt instead), or when the ambiguity is purely about UI layout rather than system behavior. This prompt is also a poor fit for trivial feature tweaks where the cost of a clarification meeting exceeds the cost of getting the implementation slightly wrong. The output is a structured analysis artifact, not a replacement for human judgment—every clarification question should be reviewed by someone who understands the domain context and can distinguish between a genuine implementation risk and a theoretical edge case with no user impact.

Before running this prompt, gather the raw requirement text, any supporting documents (PRD sections, user research snippets, dependency diagrams), and a list of known constraints such as regulatory requirements, performance SLAs, or legacy system limitations. Feed these into the [REQUIREMENT] and [CONTEXT] placeholders. After receiving the output, use the ranked clarification questions to drive a focused session with engineering, product, and design. Resolve each question before proceeding to acceptance criteria generation. If the model flags a risk you believe is irrelevant, document the dismissal reason—this becomes part of the requirement's audit trail and protects against future assumptions.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Ambiguous Requirement Clarification Prompt delivers value and where it introduces risk. Use this guide to decide if the prompt fits your workflow before integrating it into your BDD or QA pipeline.

01

Good Fit: Pre-Sprint Refinement

Use when: A product owner has drafted a user story or feature brief and the team needs to surface hidden assumptions before estimation or coding begins. Guardrail: Run the prompt before acceptance criteria are written. The output should feed directly into a refinement session, not replace it.

02

Bad Fit: Fully Specified Technical Tasks

Avoid when: Requirements are already defined as precise API contracts, database schemas, or machine-readable specs with no ambiguity. Guardrail: If the input contains no natural-language ambiguity, the prompt will generate low-value or redundant questions. Use a schema validation prompt instead.

03

Required Input: Source Requirement Text

What to watch: The prompt is only as good as the requirement text it analyzes. Vague one-liners produce vague clarification questions. Guardrail: Provide the most complete version of the requirement available, including user story format, acceptance criteria drafts, and any referenced documents. Attach context, not just a title.

04

Operational Risk: Over-Questioning

What to watch: The model may generate an exhaustive list of questions, including low-impact edge cases that stall decision-making. Guardrail: Use the built-in risk-ranking in the prompt template. Filter the output to only the top-N questions by implementation risk before sharing with stakeholders.

05

Operational Risk: False Consensus

What to watch: Teams may treat the model's clarification questions as a complete or authoritative list, missing domain-specific risks the model cannot see. Guardrail: Always append a human review step where a domain expert adds questions the model missed. The prompt is a starter, not a replacement for experienced judgment.

06

Bad Fit: Regulatory or Safety-Critical Requirements

Avoid when: The requirement involves life safety, financial compliance thresholds, or legal obligations where a missed assumption has regulatory consequences. Guardrail: For regulated domains, use this prompt only as a brainstorming aid. All clarification questions must be reviewed and supplemented by a qualified compliance or legal reviewer before acceptance criteria are finalized.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt that surfaces hidden assumptions in requirements by generating structured clarification questions ranked by implementation risk.

This template is the core of the Ambiguous Requirement Clarification playbook. It is designed to take a raw or partially defined requirement and force the model to act as a disciplined BDD analyst. The prompt instructs the model to identify what is unsaid, rank those gaps by the risk they pose to implementation, and propose concrete resolution paths. You can copy this template directly into your prompt library, replace the square-bracket placeholders with your specific inputs, and run it against a new requirement before any Gherkin scenarios are written.

text
You are a senior BDD analyst and QA architect. Your task is to review a product requirement and identify hidden assumptions, ambiguities, and missing details that would prevent writing executable acceptance criteria.

## INPUT
Requirement text:
[REQUIREMENT_TEXT]

Supporting context (user story, PRD excerpt, or system notes):
[CONTEXT]

## CONSTRAINTS
- Do not solve the requirement or write acceptance criteria.
- Do not ask questions that are already answered in the requirement or context.
- Focus on gaps that would cause a developer to make an incorrect assumption or a tester to miss a failure condition.
- For each question, explain *why* the answer changes implementation or testing.

## OUTPUT_SCHEMA
Return a JSON object with a single key "clarification_questions" containing an array of objects. Each object must have the following fields:
- "id": string, a short unique identifier (e.g., "CQ-01")
- "category": string, one of ["Data & Boundaries", "Error & Failure Handling", "User & Permissions", "Performance & Scale", "State & Ordering", "Integration & Dependencies", "UX & Copy", "Compliance & Audit"]
- "question": string, the specific clarification question
- "risk_if_unresolved": string, one of ["High", "Medium", "Low"]
- "impact": string, a one-sentence explanation of what breaks or is untestable if this question is not answered
- "suggested_resolution": string, a recommended method to resolve the ambiguity (e.g., "Stakeholder interview", "Review existing API contract", "Legal review", "Performance modeling")

## EXAMPLES
[EXAMPLES]

## RISK_LEVEL
[RISK_LEVEL]

To adapt this template, start by populating [REQUIREMENT_TEXT] with the exact language from your ticket, PRD, or user story. The [CONTEXT] field is critical for avoiding redundant questions—paste in any related acceptance criteria drafts, system diagrams, or API docs you already have. The [EXAMPLES] placeholder should be replaced with 1-3 few-shot examples of good clarification questions for your domain, which dramatically improves output quality. The [RISK_LEVEL] field allows you to filter the output by setting a minimum risk threshold (e.g., "Only return questions with risk_if_unresolved equal to High or Medium"). If you are working in a regulated domain, ensure the "Compliance & Audit" category is represented in your examples. After running the prompt, validate the output against the schema before feeding the questions into a stakeholder review session or a downstream Gherkin generation prompt.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Ambiguous Requirement Clarification Prompt. Each variable must be populated before the prompt can produce reliable clarification questions.

PlaceholderPurposeExampleValidation Notes

[REQUIREMENT_TEXT]

The raw, unedited requirement or user story to analyze for ambiguity

As a user, I want to export my data so I can use it elsewhere.

Must be non-empty string. Check for minimum 10 words to ensure sufficient context. Reject if only a title or label.

[DOMAIN_CONTEXT]

Optional domain knowledge that helps the model interpret terminology and constraints

Healthcare claims processing system with HIPAA compliance requirements.

Null allowed. If provided, must be under 500 words to avoid context dilution. Check for contradictory statements against [REQUIREMENT_TEXT].

[STAKEHOLDER_ROLE]

The perspective from which to analyze the requirement for hidden assumptions

QA Engineer responsible for integration testing

Must be a defined role string. Validate against allowed role list if using routing. Null defaults to general product perspective.

[SYSTEM_BOUNDARY]

Description of what the system owns vs external dependencies to scope clarification questions

The export service owns file generation. Authentication and storage are external.

Must explicitly state ownership boundaries. Check for missing dependency declarations. Reject if boundary is described as everything or nothing.

[RISK_TOLERANCE]

The acceptable risk level that determines question depth and prioritization

HIGH - this is a payment-related feature with financial liability

Must be one of: LOW, MEDIUM, HIGH, CRITICAL. Controls question count and depth. Default to MEDIUM if unset.

[MAX_QUESTIONS]

Upper limit on the number of clarification questions to generate

8

Must be integer between 3 and 20. Values above 15 risk question quality degradation. Validate as integer and enforce range.

[OUTPUT_FORMAT]

Desired structure for the clarification question output

JSON array with question, risk_level, assumption_exposed, and resolution_path fields

Must match one of: JSON, MARKDOWN_TABLE, or BULLET_LIST. Validate against allowed enum. JSON required for automated downstream processing.

[PRIOR_ASSUMPTIONS]

Previously identified assumptions to avoid redundant questioning

We already confirmed that export format will be CSV only, not JSON or PDF.

Null allowed. If provided, model must not generate questions that re-litigate these assumptions. Validate for contradictions with [REQUIREMENT_TEXT].

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Ambiguous Requirement Clarification Prompt into a product workflow with validation, retries, and human review gates.

This prompt is designed to sit between a raw requirement input and the downstream acceptance criteria or Gherkin scenario generation step. It should be called before any behavior specification work begins. The typical integration point is a product or QA workflow where a user pastes a requirement, user story, or feature brief, and the system returns a structured list of clarification questions ranked by implementation risk. The output is not the final artifact—it is a decision-forcing artifact that must be reviewed by a human before the next prompt in the chain executes.

Validation and output contract. The prompt template includes an [OUTPUT_SCHEMA] placeholder that should be replaced with a strict JSON schema. Each clarification question must include: id, question, risk_level (enum: blocker, high, medium, low), category (enum: ambiguity, missing_actor, missing_constraint, conflict, undefined_edge_case, assumption), suggested_resolution_path, and source_quote from the original requirement text. Validate the model response against this schema before surfacing it. Reject any output where risk_level: blocker questions lack a source_quote or where category values fall outside the enum. If validation fails, retry once with the validation error message appended to the prompt as a [CORRECTION] block. After two failures, surface the raw output to a human reviewer with a flag.

Model choice and latency budget. This is a reasoning-heavy task that benefits from models with strong instruction-following and structured output capabilities. GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro are appropriate defaults. Expect 5–15 seconds of latency for a typical requirement paragraph. Do not use a small or quantized model for this prompt unless you have calibrated eval scores against a human-annotated baseline. If latency is a concern, set a 30-second timeout and fall back to a cached set of generic clarification categories with a note that automated analysis was incomplete.

Human review and escalation. Every output from this prompt must pass through a human review step before downstream acceptance criteria generation begins. The review UI should display each question with its risk level, category, and source quote, and allow the reviewer to accept, edit, dismiss, or add questions. Track which questions were dismissed and why—this data is gold for improving the prompt's precision over time. For regulated or safety-critical domains (healthcare, finance, aviation), require a second reviewer sign-off on any blocker questions that were dismissed. Log the full prompt, response, validation result, and reviewer actions for auditability.

Downstream integration. Once the clarification questions are reviewed and resolved, feed the original requirement plus the resolved clarifications into a follow-up prompt such as the User Story to Gherkin Scenario Prompt Template or the Edge Case Discovery Prompt for Acceptance Criteria. The resolved clarifications should be injected as a [RESOLVED_ASSUMPTIONS] block so the downstream prompt has explicit context rather than repeating the same ambiguity. Do not skip the clarification step and go straight to Gherkin generation—the whole point of this prompt is to catch the ambiguities that cause acceptance criteria to be rewritten three sprints later.

What to avoid. Do not treat this prompt as a one-shot magic box. If the input requirement is a single vague sentence, the output will be a long list of low-value questions that frustrate reviewers. Set a minimum input quality bar: the requirement should contain at least an actor, an action, and an outcome before this prompt is invoked. If the input fails that bar, return a polite message asking the user to expand the requirement rather than generating 40 clarification questions. Also avoid chaining this prompt directly into automated test generation without human review—unresolved ambiguities turn into flaky tests.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when using an Ambiguous Requirement Clarification Prompt and how to guard against it.

01

Over-Questioning Trivial Requirements

What to watch: The prompt generates an exhaustive list of clarification questions for a simple, well-understood feature, overwhelming the product owner and stalling momentum. Guardrail: Add a constraint to the prompt template to rank questions by implementation risk and limit output to the top [N] highest-risk items only.

02

Missing Implicit Domain Assumptions

What to watch: The model fails to question assumptions that are obvious to a domain expert but absent from the text, such as expecting a 'user' to always have a verified email. Guardrail: Include a [DOMAIN_CONTEXT] variable in the prompt where you explicitly list standard operational assumptions the model should challenge.

03

Generating Unanswerable Questions

What to watch: The prompt produces questions that cannot be resolved without architectural decisions or future research, leading to blocked tickets. Guardrail: Instruct the model to classify each question as 'Product Decision', 'Technical Spike Required', or 'Edge Case' and provide a suggested default answer for immediate progress.

04

Hallucinated Constraints

What to watch: The model invents business rules or technical limitations not present in the original requirement, causing the team to chase phantom edge cases. Guardrail: Require the output to include a direct quote or reference from the [INPUT] text for every question. If no text supports the question, the model must mark it as a 'speculative risk'.

05

Format Drift in Structured Output

What to watch: The model deviates from the required JSON schema or Gherkin format, breaking the downstream automation harness that ingests the clarification list. Guardrail: Use a strict [OUTPUT_SCHEMA] with required fields and run a schema validator in the application layer. If validation fails, trigger a retry prompt with the specific parse error.

06

Ignoring Non-Functional Requirements

What to watch: The prompt focuses exclusively on functional behavior and misses critical gaps in performance, security, or usability expectations. Guardrail: Add a [NON_FUNCTIONAL_CHECKLIST] to the prompt template that forces the model to generate at least one question per category (e.g., latency, authz, accessibility) if not already addressed in the input.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to assess the quality of clarification questions generated by the Ambiguous Requirement Clarification Prompt before integrating the output into a BDD workflow. Each criterion targets a specific failure mode common in requirement analysis.

CriterionPass StandardFailure SignalTest Method

Risk Prioritization

Questions are ordered by implementation risk (highest first) with a clear risk rationale for the top 3 items.

Questions appear in random order or are all marked as equal priority without justification.

Manual review: check if the top-ranked question could block a sprint or cause a critical defect if unresolved.

Question Relevance

Every question directly addresses an underspecified term, missing actor, or ambiguous outcome in [REQUIREMENT_TEXT].

Questions ask about topics not mentioned or implied in the source text, or are generic clarifications.

Spot-check 3 random questions against the source requirement. Each must map to a specific phrase or gap in the text.

Resolution Path Completeness

Each question includes a suggested resolution path with at least 2 concrete options or a decision framework.

Resolution paths are missing, contain only a single option, or use vague language like 'discuss further'.

Parse the output for a 'suggested_resolution' field per question. Validate it contains a list with length >= 2 or a structured decision prompt.

Assumption Surfacing

Output explicitly lists hidden assumptions inferred from the requirement that are not stated in the text.

The output only asks questions without stating what the model assumed to generate them, or assumptions are trivial.

Check for an 'assumptions' block in the output. Verify at least one assumption is non-obvious and testable.

Completeness Against Requirement

Questions cover all major components: actors, actions, data, constraints, and acceptance criteria from [REQUIREMENT_TEXT].

An entire domain area (e.g., error handling, permissions, data format) present in the requirement is ignored.

Use an LLM-as-judge with a checklist derived from the source requirement to score coverage. A score below 80% is a failure.

Output Schema Conformance

Output is valid JSON matching the [OUTPUT_SCHEMA] with all required fields present and correctly typed.

JSON parsing fails, required fields like 'question_id' or 'risk_level' are missing, or types are incorrect.

Automated schema validation in a test harness. Run jsonschema.validate(output, schema) and check for no exceptions.

Actionability for BDD

Each question can be directly translated into a Gherkin scenario or an Examples table row once answered.

Questions are philosophical ('What is quality?') or cannot be expressed as a testable condition.

For each question, attempt to draft a one-line Gherkin step. If it's impossible without inventing new actors or systems, the question fails.

No Hallucinated Constraints

The output does not introduce new business rules, technical limitations, or domain facts not present in [REQUIREMENT_TEXT].

A question implies a constraint (e.g., 'given the 100ms latency requirement') that was never stated in the source.

Diff the output against the source requirement. Flag any technical or business term in a question that has no match in the source text.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a lightweight output schema. Focus on getting clarification questions quickly without strict validation. Replace the structured JSON output with a simple numbered list if you're testing in a chat interface first.

Prompt snippet

code
You are a requirements analyst. Read the following requirement and list the top 5 clarification questions ranked by implementation risk. For each question, suggest one resolution path.

Requirement: [REQUIREMENT_TEXT]

Watch for

  • Questions that are too broad or philosophical rather than implementation-blocking
  • Missing risk justification when ranking
  • Overconfidence in resolution suggestions without acknowledging unknowns
Prasad Kumkar

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.