Inferensys

Prompt

Underspecified Fine-Tuning Objective Interruption Prompt

A practical prompt playbook for using Underspecified Fine-Tuning Objective Interruption 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

Use this prompt to gate fine-tuning dataset generation on a complete, unambiguous training objective, preventing wasted compute and misaligned models.

This prompt is designed for the initial stage of a fine-tuning data preparation agent. Its job is to act as a gate: if a user's training objective is underspecified, the agent must halt all dataset generation work and request targeted clarification. The ideal user is an ML engineer or data scientist who is submitting a request to an automated data curation pipeline. The required context is a user-submitted training objective, which may be a single sentence or a loose set of requirements. The prompt forces the agent to evaluate the objective against three non-negotiable pillars: a clear task definition, explicit evaluation criteria, and well-defined data scope. If any pillar is missing or vague, the agent's only job is to formulate a precise, structured question that guides the user toward a complete specification.

You should not use this prompt when the objective is already complete and unambiguous, or when you are in an exploratory phase where a loose objective is acceptable to generate a small sample of data for manual review. This prompt is also inappropriate for systems that are designed to make reasonable assumptions and proceed with a best-effort dataset, as it will aggressively block progress. In a production harness, the agent's response should be parsed by a validator that checks for the presence of a clarification question. If the validator confirms the agent is asking a question, the system must surface this to the user and block the dataset generation job from being queued. Logging the specific missing pillar (task, eval, or scope) is critical for tracking the types of underspecification your users struggle with most, which can inform UI improvements or documentation.

The primary risk of deploying this prompt is over-interruption, where the agent requests clarification for objectives that a reasonable practitioner would consider complete. To mitigate this, you should build a small evaluation set of borderline objectives and tune the prompt's strictness. The next step after implementing this gate is to design the follow-up prompt that takes the user's clarification and the original objective to produce a final, locked specification document before data generation begins. Avoid the temptation to let the agent proceed with a 'best guess' if the clarification is still vague; a second interruption is far cheaper than generating a misaligned dataset.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Underspecified Fine-Tuning Objective Interruption Prompt works and where it introduces risk. Use these cards to decide if this prompt fits your workflow before integrating it into a fine-tuning data preparation pipeline.

01

Good Fit: Gated Dataset Generation

Use when: A product or platform lets users request custom fine-tuning datasets, and you must prevent costly, low-quality data generation from vague instructions. Guardrail: Place this prompt as a synchronous gate before any dataset creation job. The harness must block execution until the clarification response passes a completeness validator.

02

Bad Fit: Expert-Only Internal Tools

Avoid when: The only users are ML engineers who always provide complete task definitions, evaluation criteria, and data scope in a structured form. Guardrail: Adding an interruption prompt here creates unnecessary friction. Instead, validate inputs with a deterministic schema check and surface errors without an LLM call.

03

Required Inputs

What must exist: The user's raw training objective text, a defined taxonomy of valid task types, and a schema for acceptable evaluation criteria. Guardrail: If your system cannot enumerate what a complete objective looks like, the prompt cannot reliably detect underspecification. Define the completeness schema first.

04

Operational Risk: Clarification Loop Exhaustion

What to watch: Users who repeatedly provide underspecified objectives, triggering multiple clarification rounds without resolution. Guardrail: Implement a maximum clarification count (recommended: 2). After the limit, escalate to a human reviewer with the full history rather than looping indefinitely.

05

Operational Risk: Over-Interruption on Edge Cases

What to watch: The prompt may flag legitimate, domain-specific objectives as underspecified because they use unfamiliar terminology or non-standard evaluation approaches. Guardrail: Maintain a small registry of known edge-case objectives that bypass the interruption check. Review this registry monthly to prevent drift.

06

Integration Point: Pre-Job Validation Hook

What to watch: Teams wiring this prompt into an async job queue may be tempted to fire-and-forget the clarification, leaving users waiting. Guardrail: This prompt belongs in a synchronous request-response path. The user should receive the clarification immediately, and the dataset job should not be enqueued until the response passes validation.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

Paste this prompt into your system instructions for a fine-tuning data preparation agent. Replace square-bracket placeholders with your specific taxonomy and escalation rules.

This prompt template is designed to be the core system instruction for an agent that prepares fine-tuning datasets. Its primary job is not to generate data, but to act as a gatekeeper. When a user requests a new training dataset, the agent must first evaluate the objective's completeness against a strict rubric. If the objective is underspecified, the agent will halt all work and produce a structured clarification request, preventing wasted compute on poorly defined tasks.

text
You are a Fine-Tuning Data Preparation Gatekeeper. Your primary directive is to prevent the creation of any training dataset from an underspecified objective. You will receive a user request to generate fine-tuning data. Before any data generation, you must evaluate the request against the required dimensions below. If any dimension is missing or ambiguous, you must not proceed. Instead, you will immediately halt and output a structured clarification request.

## Evaluation Dimensions
Evaluate the user's request for the presence and clarity of the following:
1.  **Task Definition:** Is the specific task clearly defined (e.g., 'summarize a legal contract' vs. 'process documents')?
2.  **Success Criteria:** Are the metrics for a successful model output defined (e.g., 'extract all named entities with F1 > 0.9' vs. 'understand the text')?
3.  **Data Scope:** Are the boundaries of the input data defined (e.g., 'English-language, 2-page maximum lease agreements' vs. 'contracts')?
4.  **Output Schema:** Is the required structure of the model's response defined (e.g., a specific JSON schema, a list of key-value pairs)?
5.  **Constraints & Safety:** Are there explicit rules, exclusions, or safety boundaries (e.g., 'never hallucinate a missing date', 'redact PII in the output')?

## Action Rules
- **If ALL dimensions are sufficiently clear:** Respond with a brief confirmation of the understood objective and state that you are ready to proceed to the data generation phase. Do not generate data yet.
- **If ANY dimension is missing or ambiguous:** Halt immediately. Generate a JSON object with the following structure. Do not include any other text.

## Clarification Request Schema
{
  "status": "halted_underspecified",
  "missing_clarifications": [
    {
      "dimension": "[DIMENSION_NAME]",
      "question": "[SPECIFIC_QUESTION_TO_USER]",
      "context_from_request": "[RELEVANT_SNIPPET_FROM_USER_INPUT]"
    }
  ],
  "next_step": "Please provide the missing information so I can proceed with the fine-tuning data preparation."
}

## Example
User Request: 'I need a dataset to fine-tune a model for analyzing customer feedback.'
Agent Response:
{
  "status": "halted_underspecified",
  "missing_clarifications": [
    {
      "dimension": "Task Definition",
      "question": "What specific analysis task should the model perform? For example, should it classify sentiment, extract feature requests, identify churn risk, or summarize the feedback?",
      "context_from_request": "analyzing customer feedback"
    },
    {
      "dimension": "Success Criteria",
      "question": "How will you measure success? For instance, is a 95% accuracy on a held-out sentiment test set required, or is the goal to capture at least 80% of feature requests?",
      "context_from_request": "fine-tune a model"
    },
    {
      "dimension": "Data Scope",
      "question": "What are the boundaries of the data? Should it include only NPS survey responses, app store reviews, long-form email tickets, or all of the above? Are there language or date-range constraints?",
      "context_from_request": "customer feedback"
    }
  ],
  "next_step": "Please provide the missing information so I can proceed with the fine-tuning data preparation."
}

To adapt this template, replace the Evaluation Dimensions with your organization's specific taxonomy for a well-formed training objective. You might add dimensions like [PRIVACY_BUDGET] or [EXISTING_MODEL_BASELINE]. The critical design choice is the strict binary gate: the agent must never proceed with partial information. The JSON output schema is designed to be machine-readable by an orchestration harness, which can then surface the questions to the user in a UI and block the data generation pipeline until the halted_underspecified status is resolved.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Underspecified Fine-Tuning Objective Interruption Prompt. Each placeholder must be populated before the prompt is assembled. Missing or invalid inputs will cause the interruption logic to fail silently or produce unhelpful clarification requests.

PlaceholderPurposeExampleValidation Notes

[USER_OBJECTIVE]

The raw fine-tuning objective as submitted by the user

I want to fine-tune a model to write better emails

Must be non-empty string. If null or whitespace-only, block prompt assembly and return a missing-input error to the harness.

[TASK_DEFINITION_REQUIRED]

Boolean flag indicating whether the task type must be explicitly stated

Must be true or false. If true, the prompt will require the user to specify classification, generation, extraction, etc. before proceeding.

[EVAL_CRITERIA_REQUIRED]

Boolean flag indicating whether success metrics must be defined

Must be true or false. If true, the prompt will require the user to define accuracy, F1, human preference, or other measurable criteria.

[DATA_SCOPE_REQUIRED]

Boolean flag indicating whether data boundaries must be specified

Must be true or false. If true, the prompt will require the user to define domain, source, size, or exclusion criteria for training data.

[ALLOWED_TASK_TYPES]

Enum list of valid task categories the system supports

["classification", "generation", "extraction", "summarization"]

Must be a non-empty array of strings. If empty, the prompt cannot validate task type and must escalate. Validate against supported task catalog before use.

[MAX_CLARIFICATION_ROUNDS]

Integer limit on how many clarification exchanges are allowed before escalation

3

Must be a positive integer. If exceeded, the harness must escalate to human review with full conversation history rather than looping indefinitely.

[ESCALATION_QUEUE_ID]

Identifier for the human review queue that receives escalated objectives

fine-tuning-intake-review

Must be a non-empty string matching a valid queue ID in the routing system. Validate against active queue registry before prompt execution.

[PREVIOUS_CLARIFICATIONS]

Array of prior clarification questions and user responses in this session

[]

Must be an array, empty on first turn. Each entry must have question and response fields. If malformed, reset to empty and log a schema violation.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Underspecified Fine-Tuning Objective Interruption Prompt into a data preparation pipeline to block dataset generation on ambiguous objectives.

This prompt is designed to act as a pre-execution gate in a fine-tuning data preparation agent. It should be invoked immediately after a user submits a training objective request and before any data sourcing, example generation, or labeling work begins. The harness must treat the model's output as a structured decision: either the objective is sufficiently specified and the workflow proceeds, or it is underspecified and the system must return a clarification request to the user and halt further processing. The prompt is not a conversational nicety; it is a blocking control point that prevents wasted compute, incorrect datasets, and misaligned models.

To implement this, wrap the prompt in a stateful workflow function that receives the user's raw objective string and any provided context. The function should inject the objective into the [TRAINING_OBJECTIVE] placeholder and call the LLM. The output must be parsed as a JSON object with a top-level status field. If status is "proceed", extract the validated specification and pass it to the next stage of the data pipeline. If status is "clarify", surface the clarification_questions array directly to the user interface and block all downstream tool calls (e.g., web scraping, synthetic data generation, API calls to labeling services). A simple state machine in your orchestrator (e.g., WAITING_FOR_CLARIFICATION) should prevent any accidental progression until the user resubmits with the missing information. Log the full prompt, the raw LLM output, and the parsed decision for every invocation to create an audit trail of why a job was blocked or allowed.

Validation and retries are critical here. After parsing the JSON, validate that the status field is exactly "proceed" or "clarify". If the model returns an unparseable response or an unexpected status, retry once with a stricter instruction appended to the prompt (e.g., 'You MUST respond with valid JSON only.'). If the retry also fails, escalate to a human operator with the raw output and do not proceed. For the "proceed" path, validate that the task_definition, evaluation_criteria, and data_specification objects are present and non-empty before allowing the workflow to continue. This is not a low-risk classification task; a false "proceed" on an underspecified objective can waste significant resources and produce a useless fine-tuned model. Consider using a more capable model (e.g., GPT-4, Claude 3.5 Sonnet) for this gating decision, even if the rest of your data pipeline uses a smaller or cheaper model, because the cost of a wrong decision here is high.

Do not use this prompt in isolation for high-stakes domains. If the fine-tuning data will be used for a regulated application (e.g., healthcare, finance), add a human review step even for objectives that pass the automated gate. The harness should route "proceed" decisions to a review queue where a human can inspect the extracted specification before dataset generation begins. This prompt reduces ambiguity but does not guarantee correctness of the user's stated objective. Finally, monitor the ratio of "clarify" to "proceed" outcomes over time; a sudden drop in clarification requests may indicate prompt drift or users learning to game the gate by adding filler text, which warrants a review of your prompt's specificity.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structured clarification object the model must return when it interrupts a fine-tuning data preparation request due to an underspecified objective. Use this contract to validate the output before surfacing it to the user or logging it for review.

Field or ElementType or FormatRequiredValidation Rule

interruption_type

string enum: underspecified_objective

Must exactly match the string underspecified_objective. Any other value is a schema violation.

missing_dimensions

array of strings

Must contain at least one element. Each string must be one of: task_definition, evaluation_criteria, data_scope, output_schema, constraints. No duplicate entries allowed.

clarification_questions

array of objects

Array length must equal the length of missing_dimensions. Each object must contain a dimension field matching an entry in missing_dimensions and a question field that is a non-empty string.

current_understanding

string

Must be a non-empty string summarizing what the system inferred from the request so far. If nothing was inferred, must be an explicit statement like No task definition could be inferred.

blocked_actions

array of strings

Must contain at least dataset_generation. May also include example_curation, labeling, format_conversion. Must not be an empty array.

resumption_instruction

string

Must be a non-empty string instructing the user how to provide the missing information to resume the workflow. Must reference the clarification_questions.

escalation_flag

boolean

Must be true if the request appears intentionally vague, contradictory, or potentially abusive. Set to false for ordinary underspecification. A true value must route to a human review queue.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when a fine-tuning data preparation agent receives an underspecified objective, and how to guard against it.

01

Hallucinated Task Definition

What to watch: The model invents a plausible task, evaluation criteria, or data scope when the user's objective is vague. This leads to generating a dataset for a problem the user never intended to solve. Guardrail: The prompt must require the agent to output a structured clarification request instead of proceeding. Validate that the agent's output contains a clarification_required flag and a list of missing_specifications before any data generation tool is called.

02

Silent Assumption of Defaults

What to watch: The agent fills in missing parameters like evaluation metrics or data format with common defaults without asking the user. This creates a dataset that appears complete but is misaligned with the user's downstream training pipeline. Guardrail: The harness must block execution if required fields in the objective schema are empty. The prompt should instruct the agent to never assume defaults for task_definition, success_metrics, or data_boundaries.

03

Overly Broad Data Scope

What to watch: Without explicit boundaries, the agent may attempt to gather an unmanageably large or irrelevant dataset, wasting compute and producing noisy training data. Guardrail: The clarification prompt must ask the user to specify temporal ranges, domain constraints, and exclusion criteria. The harness should enforce a maximum dataset size or cost estimate before generation begins.

04

Misaligned Evaluation Criteria

What to watch: The agent generates data for a task but applies generic or incorrect success metrics that don't measure the user's actual objective. This leads to a model that optimizes for the wrong signal. Guardrail: The interruption prompt must require the user to define at least one concrete, measurable success metric. The harness should validate that the metric is present and parseable before proceeding.

05

Proceeding with Partial Information

What to watch: The user provides a task but omits the target model architecture or expected input/output format. The agent generates data in a format incompatible with the user's training script. Guardrail: The clarification prompt must ask for the expected input_format and output_format schemas. The harness should validate that the generated data conforms to these schemas before marking the job complete.

06

Ignoring Safety and Policy Boundaries

What to watch: The user requests fine-tuning data for a task that is near or over a safety policy line, and the agent proceeds without flagging it. Guardrail: The prompt must include a policy check step. If the clarified objective still falls into a gray area, the agent must escalate to a human reviewer with a structured summary of the objective and the ambiguous policy clause, rather than generating data.

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for evaluating whether the Underspecified Fine-Tuning Objective Interruption Prompt correctly identifies missing task definitions, metrics, and data boundaries before allowing dataset generation to proceed.

CriterionPass StandardFailure SignalTest Method

Missing task definition detection

Prompt correctly identifies when [TRAINING_OBJECTIVE] lacks a specific task description and requests one

Prompt proceeds to dataset generation without asking for task clarification

Run with empty or vague task field; verify clarification is generated and dataset generation is blocked

Missing evaluation criteria detection

Prompt correctly identifies when [SUCCESS_METRICS] is absent or contains only generic terms like 'good performance'

Prompt accepts 'good performance' or similar vague metrics without requesting specific measurable criteria

Run with missing or vague success metrics; verify prompt requests specific metrics before proceeding

Missing data scope detection

Prompt correctly identifies when [DATA_BOUNDARIES] is absent or unbounded

Prompt proceeds without asking for data domain, size constraints, or exclusion criteria

Run with empty or 'all available data' scope; verify prompt requests boundaries

Combined underspecification handling

Prompt detects and reports all underspecified dimensions in a single structured clarification

Prompt asks about only one missing dimension while ignoring others

Run with all three fields underspecified; verify all missing dimensions appear in clarification

Over-clarification avoidance

Prompt does not request clarification when all required fields are adequately specified

Prompt requests clarification even when task, metrics, and boundaries are clearly defined

Run with fully specified objective; verify prompt proceeds to dataset generation without unnecessary questions

Clarification specificity

Clarification questions reference the user's actual input and ask for concrete missing information

Clarification uses generic templates without referencing the specific underspecified fields

Run with partially specified objective; verify clarification mentions which specific fields need detail

Blocking enforcement

Harness prevents dataset generation until all clarification responses are received and validated

Dataset generation begins after first clarification response even if some fields remain underspecified

Simulate partial clarification response; verify harness continues to block until all fields pass completeness check

Edge case: contradictory specifications

Prompt detects when task definition and success metrics are logically incompatible and flags the contradiction

Prompt silently accepts contradictory specifications and proceeds

Run with task='classification' and metrics='BLEU score'; verify contradiction is flagged

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a simple string-match check for the [CLARIFICATION_REQUIRED] flag. Skip the schema validator and just confirm the model returns a non-empty clarification_questions list before blocking dataset generation.

Prompt modification

code
If the fine-tuning objective is underspecified, respond with [CLARIFICATION_REQUIRED] followed by your questions.

Watch for

  • Model ignoring the flag and generating a dataset anyway
  • Clarification questions that are too vague to be useful
  • No check that the user actually responded before retrying
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.