Task decomposition: split complex requests into checkable tasks
Task decomposition breaks a complex request into smaller, verifiable sub-tasks with defined order and outputs. Specify what each step receives and produces, and which later steps depend on it, so omissions and errors are easier to find. Not every problem needs decomposition: for a simple task, it can add instruction and review overhead.
Task decomposition breaks a complex request into smaller, verifiable sub-tasks with defined order and outputs. Specify what each step receives and produces, and which later steps depend on it, so omissions and errors are easier to find. Not every problem needs decomposition: for a simple task, it can add instruction and review overhead.
Why split a task?
A request such as “analyze customer feedback and write actionable recommendations” combines several kinds of judgment. It may be unclear what to do first or what standard the final result must meet. Decomposition makes distinct goals—understanding the data, classifying it, checking evidence, and synthesizing conclusions—visible and reviewable.
It is more than dividing instructions into sentences. Identify subtasks that can be done independently, steps that must wait, and the inputs and outputs for each. Independent subtasks may run in parallel; dependent steps should wait for their prerequisite results.
How do you define the steps and handoffs?
Start by defining the final deliverable and its success criteria. Then give each subtask one verifiable output, make dependencies explicit, and state what happens when a step fails.
| Step | Input and work | Intermediate output | Check |
|---|---|---|---|
| 1. Scope | Confirm request, audience, period, and constraints | Scope and exclusions | Ambiguities and unknowns are flagged |
| 2. Extract | Find relevant facts in source records | Evidence list linked to sources | Key material is covered and uncertainty noted |
| 3. Analyze | Apply stated categories or rules | Results and exceptions | Categories are defined; boundary cases reviewed |
| 4. Synthesize | Compare validated results | Patterns and limitations | Evidence is separated from interpretation |
For a hypothetical project to recommend product improvements from customer feedback files, first confirm the file scope and questions. Categorize each comment using defined labels and leave ambiguous cases unresolved rather than forcing a label. Summarize patterns, then link each recommendation to the comments that support it. Do not describe the file as representative of all customers unless that has been established. This illustrates a workflow; it is not a claim that data were analyzed.
What should a prompt specify?
For each subtask, state the input source and scope, the action, output format, acceptance criteria, and what to do with missing or uncertain input. If one stage feeds another, pass a named structured result or concise specification so errors can be traced. A classification output might include an item ID, label, supporting excerpt, and reason for low confidence.
When a workflow spans model calls or tools, pass only the results the next step needs and check intermediate outputs. OpenAI describes workflows that combine planning and decision-making on complex problems with execution of well-defined tasks. This does not mean every task needs multiple models. Choose only the steps justified by quality, cost, latency, and recovery needs.
Is decomposition the same as exposing hidden reasoning?
No. Decomposition is a design that makes actionable sub-tasks, dependencies, deliverables, and checks explicit. It is different from asking a model to reveal hidden internal reasoning. Often it is enough to request the evidence, conclusion, uncertainty, or concise method a person or system needs to verify the result.
When should you decompose—or keep it simple?
Decomposition helps when a task combines sources, depends on earlier judgments, or contains subtasks with different criteria. A short, clear request that can be checked at once is usually simpler to handle directly. Too many stages repeat prompts, propagate intermediate mistakes, and increase context and call costs.
Before production use, evaluate the end-to-end workflow with representative inputs and difficult boundary cases. Inspect intermediate outputs for omissions and error propagation, not only the final document. Decide whether a failed step should be retried, restarted, or sent for human review. Clear responsibilities and checks matter more than maximizing the number of steps.
References
[OpenAI API: Prompt engineering](https://developers.openai.com/api/docs/guides/prompt-engineering) — explicit instructions, complex workflows, and evaluation. Read 2026-11-22.
[OpenAI API: Reasoning best practices](https://developers.openai.com/api/docs/guides/reasoning-best-practices) — planning and decision-making for complex problems, and execution of defined tasks. Read 2026-11-22.