OpenAI published its official prompting guide for GPT-5.2 in December 2025. It is on the OpenAI Cookbook at developers.openai.com/cookbook. Written by Mandeep Singh and Emre Okcular from OpenAI, it covers prompting patterns specific to GPT-5.2's behavior.

We have already covered the GPT-5.4 and GPT-5.5 prompting guides. This article focuses on what is new and different in the GPT-5.2 guidance. The big story: GPT-5.2 is the first model where OpenAI formalizes scope drift prevention as a prompt primitive. That alone makes this guide worth your attention.

What GPT-5.2 Actually Is

GPT-5.2 is OpenAI's flagship model for enterprise and agentic workloads. It builds on GPT-5.1 with better token efficiency on medium-to-complex tasks, cleaner formatting with less unnecessary verbosity, and stronger structured reasoning, tool grounding, and multimodal understanding.

The guide describes five key behavioral shifts from prior models:

  • More deliberate scaffolding. GPT-5.2 builds clearer plans and intermediate structure by default. It benefits from explicit scope and verbosity constraints.
  • Generally lower verbosity. More concise and task-focused. Still prompt-sensitive. You need to articulate your preferences.
  • Stronger instruction adherence. Less drift from user intent. Improved formatting and rationale presentation.
  • Tool efficiency trade-offs. Takes additional tool actions in interactive flows compared with GPT-5.1. Can be further optimized via prompting.
  • Conservative grounding bias. Favors correctness and explicit reasoning. Ambiguity handling improves with clarification prompts.

Those five traits set the stage for everything that follows. GPT-5.2 is not a model that figures out what you want. It is a model that executes what you specify.

The Big One: <designandscope_constraints>

This is the most important new pattern in the GPT-5.2 guide. OpenAI introduces a dedicated XML block called <designandscope_constraints> to prevent scope drift in code agents and frontend tasks.

Here is what it looks like:

<design_and_scope_constraints>
- Explore any existing design systems and understand them deeply.
- Implement EXACTLY and ONLY what the user requests.
- No extra features, no added components, no UX embellishments.
- Style aligned to the design system at hand.
- Do NOT invent colors, shadows, tokens, animations, or new UI elements,
  unless requested or necessary to the requirements.
- If any instruction is ambiguous, choose the simplest valid interpretation.
</design_and_scope_constraints>

Why this matters: scope drift is the number one failure mode in code agents. You ask for a button fix and the agent rewrites the entire component. You ask for a CSS tweak and the agent adds animations, shadows, and three new design tokens that did not exist before. Every developer working with agentic coding tools has experienced this.

OpenAI is the first major model vendor to formally recognize scope drift as a specific, addressable prompt problem. They give it its own XML block, its own semantic category, and explicit instructions for what to forbid.

The guide even includes a migration note: if you were using a <designsystemenforcement> block from GPT-5.1, keep it, but add "no extra features" and "tokens-only colors" for extra emphasis with GPT-5.2.

This is a signal. When the model vendor itself tells you that scope drift is a real enough problem to warrant a dedicated prompt primitive, that tells you two things. First, they have seen the data on how often agents over-scope tasks. Second, they believe the solution is explicit negative constraints, not better model training.

The broader implication: scope drift prevention is now on the same level as output formatting and tool usage as a first-class prompt concern. Expect other vendors to follow.

<outputverbosityspec>: Verbosity as a Prompt Primitive

The <outputverbosityspec> block appears in both GPT-5.1 and GPT-5.2, but the GPT-5.2 guide elevates it from a nice-to-have to a near-mandatory construct for production agents.

The guide's example:

<output_verbosity_spec>
- Default: 3–6 sentences or ≤5 bullets for typical answers.
- For simple "yes/no + short explanation" questions: ≤2 sentences.
- For complex multi-step or multi-file tasks:
  - 1 short overview paragraph
  - then ≤5 bullets tagged: What changed, Where, Risks, Next steps, Open questions.
- Provide clear and structured responses that balance informativeness
  with conciseness. Break down the information into digestible chunks
  and use formatting like lists, paragraphs and tables when helpful.
- Avoid long narrative paragraphs; prefer compact bullets and short sections.
- Do not rephrase the user's request unless it changes semantics.
</output_verbosity_spec>

Notice the specificity. This is not "be concise." It is a graduated scale that maps task complexity to output length. Simple questions get two sentences. Complex tasks get a structured overview plus five tagged bullets.

The tagged bullets are the key innovation. "What changed, Where, Risks, Next steps, Open questions" is a fixed taxonomy for complex multi-step outputs. It gives the model a concrete structure to fill instead of free-form narration.

Why this matters for GPT-5.2 specifically: the guide warns that GPT-5.2 has "generally lower verbosity" but is "still prompt-sensitive" about it. Without explicit constraints, GPT-5.2 may undershoot or overshoot. The <outputverbosityspec> block eliminates that ambiguity.

The comparison with GPT-5.5 is instructive. GPT-5.5 guidance says "shorter, outcome-first prompts usually work better than process-heavy prompt stacks." GPT-5.2 guidance takes the opposite approach: it wants explicit, detailed output specifications. This reflects a genuine behavioral difference between the models. GPT-5.5 has internalized brevity. GPT-5.2 has not, and needs you to spell it out.

<uncertaintyandambiguity>: Built-In Hallucination Guard Rails

The GPT-5.2 guide introduces a dedicated block for handling ambiguity and hallucination risk:

<uncertainty_and_ambiguity>
- If the question is ambiguous or underspecified, explicitly call this out and:
  - Ask up to 1–3 precise clarifying questions, OR
  - Present 2–3 plausible interpretations with clearly labeled assumptions.
- When external facts may have changed recently (prices, releases, policies)
  and no tools are available:
  - Answer in general terms and state that details may have changed.
- Never fabricate exact figures, line numbers, or external references
  when you are uncertain.
- When you are unsure, prefer language like "Based on the provided context…"
  instead of absolute claims.
</uncertainty_and_ambiguity>

And for high-stakes domains:

<high_risk_self_check>
Before finalizing an answer in legal, financial, compliance,
or safety-sensitive contexts:
- Briefly re-scan your own answer for:
  - Unstated assumptions,
  - Specific numbers or claims not grounded in context,
  - Overly strong language ("always," "guaranteed," etc.).
- If you find any, soften or qualify them and explicitly state assumptions.
</high_risk_self_check>

These blocks reflect GPT-5.2's "conservative grounding bias." The model defaults to caution. These blocks give it permission to express uncertainty instead of fabricating answers.

The <highriskself_check> block is particularly notable. It asks the model to audit its own output for unstated assumptions, ungrounded numbers, and absolute claims. This is a form of built-in verification that operates at the prompt layer rather than the model training layer. It is cheap, effective, and composable.

<longcontexthandling>: Forcing Re-Grounding

The guide introduces a specific pattern for long-context tasks:

<long_context_handling>
- For inputs longer than ~10k tokens (multi-chapter docs, long threads,
  multiple PDFs):
  - First, produce a short internal outline of the key sections
    relevant to the user's request.
  - Re-state the user's constraints explicitly (e.g., jurisdiction,
    date range, product, team) before answering.
  - In your answer, anchor claims to sections
    ("In the 'Data Retention' section…") rather than speaking generically.
- If the answer depends on fine details (dates, thresholds, clauses),
  quote or paraphrase them.
</long_context_handling>

This is a forcing function for re-grounding. Instead of trusting the model to hold 10K+ tokens in working memory, you make it outline, restate constraints, and anchor claims to specific sections.

This pattern addresses the "lost in the scroll" problem. When context is long, models tend to answer from their training data rather than the document you provided. The <longcontexthandling> block forces the model back to the source material at three points: before generating, while generating, and after generating.

<userupdatesspec> and <solution_persistence>: Agent State Management

The GPT-5.2 guide inherits <userupdatesspec> and <solution_persistence> blocks from GPT-5.1, but adds two key tweaks:

  1. Clamp verbosity of updates. Shorter, more focused progress reports.
  2. Make scope discipline explicit. Do not expand the task beyond what the user asked.

The updated <userupdatesspec>:

<user_updates_spec>
- Send brief updates (1–2 sentences) only when:
  - You start a new major phase of work, or
  - You discover something that changes the plan.
- Avoid narrating routine tool calls ("reading file…", "running tests…").
- Each update must include at least one concrete outcome
  ("Found X", "Confirmed Y", "Updated Z").
- Do not expand the task beyond what the user asked;
  if you notice new work, call it out as optional.
</user_updates_spec>

That last bullet is a scope drift guard rail embedded in a progress update block. The model must flag new work as optional rather than silently expanding the task. This pairs directly with the <designandscope_constraints> block. Together, they create a two-layer defense against over-scope: one at the design level, one at the progress reporting level.

Compaction: Extending Context via the Responses API

GPT-5.2 introduces response compaction via the /responses/compact endpoint. This is worth understanding even if you are not on the GPT-5.2 API yet, because it signals how OpenAI thinks about long-running agent workflows.

Compaction performs a loss-aware compression pass over prior conversation state. It returns encrypted, opaque items that preserve task-relevant information while reducing token footprint. This allows the model to continue reasoning across extended workflows without hitting context limits.

Key properties from the guide:

  • Produces opaque, encrypted items. Internal logic may evolve.
  • Designed for continuation, not inspection.
  • Compatible with GPT-5.2 and the Responses API.
  • Safe to run repeatedly in long sessions.

Best practices:

  • Monitor context usage and plan ahead.
  • Compact after major milestones, not every turn.
  • Keep prompts functionally identical when resuming to avoid behavior drift.
  • Treat compacted items as opaque. Do not parse or depend on internals.

This is a different approach from what we saw in the GPT-5.4 and GPT-5.5 guides. GPT-5.4 guidance focused on completeness contracts and tool persistence. GPT-5.5 guidance focused on outcome-first prompting. GPT-5.2 adds a compaction layer for managing context over long sessions. If you are building agents that run for dozens of turns, this matters.

Tool Usage Rules

GPT-5.2 improves on GPT-5.1 in tool reliability and scaffolding, especially in MCP and Atlas-style environments. The guide recommends:

  • Crisp tool descriptions. One to two sentences for what each tool does and when to use it.
  • Explicit parallelism. Encourage parallel reads when scanning codebases or fetching multiple records.
  • Verification steps for high-impact operations. Orders, billing, infrastructure changes all require explicit verification.

The <toolusagerules> block:

<tool_usage_rules>
- Prefer tools over internal knowledge whenever:
  - You need fresh or user-specific data (tickets, orders, configs, logs).
  - You reference specific IDs, URLs, or document titles.
- Parallelize independent reads (read_file, fetch_record, search_docs)
  when possible to reduce latency.
- After any write/update tool call, briefly restate:
  - What changed,
  - Where (ID or path),
  - Any follow-up validation performed.
</tool_usage_rules>

This is more conservative than GPT-5.4 guidance, which focused on getting the model to use tools more persistently. GPT-5.2's guidance focuses on using tools more correctly: prefer tools over internal knowledge, parallelize reads, and verify writes.

Structured Data Extraction

GPT-5.2 is strong at structured data extraction, and the guide gives a clear pattern:

<extraction_spec>
You will extract structured data from tables/PDFs/emails into JSON.

- Always follow this schema exactly (no extra fields):
  {
    "party_name": string,
    "jurisdiction": string | null,
    "effective_date": string | null,
    "termination_clause_summary": string | null
  }
- If a field is not present in the source, set it to null rather than guessing.
- Before returning, quickly re-scan the source for any missed fields
  and correct omissions.
</extraction_spec>

The key insight: "set it to null rather than guessing" and "re-scan the source for any missed fields." These are anti-hallucination measures specific to extraction tasks. They pair with the conservative grounding bias.

For multi-document extraction, add guidance to serialize per-document results separately and include a stable ID like filename, contract title, or page range.

Migration from Prior Models

The guide includes a migration table:

Current model Target Target reasoning_effort Notes
GPT-4o GPT-5.2 none Treat 4o/4.1 migrations as "fast/low-deliberation." Only increase effort if evals regress.
GPT-4.1 GPT-5.2 none Same mapping as GPT-4o. Preserve snappy behavior.
GPT-5 GPT-5.2 same value except minimal → none Preserve existing effort levels.
GPT-5.1 GPT-5.2 same value Preserve existing effort selection. Adjust only after running evals.

The default reasoning level for GPT-5 is medium. For GPT-5.1 and GPT-5.2, the default is none. This is a significant change. OpenAI is telling you that for most production workloads, GPT-5.2 does not need to think deeply by default. Only increase reasoning effort after you have tried prompt-level fixes and your evaluations show you need more depth.

The migration steps are explicit:

  1. Switch models. Do not change prompts yet.
  2. Pin reasoning_effort to match your prior model's latency/depth profile.
  3. Run evaluations for a baseline.
  4. If regressions appear, tune the prompt. Use the Prompt Optimizer and targeted constraints.
  5. Re-run evaluations after each small change.

This is solid engineering advice. One change at a time. Measure before optimizing.

Web Research Agent Pattern

The guide includes a comprehensive prompt for a web research agent that combines many of the patterns discussed above. It defines core mission, persona, factuality and accuracy requirements, citation rules, research methodology, writing guidelines, and ambiguity handling.

Key elements from the web research agent pattern:

  • Explicit citation requirements after each paragraph containing web-derived claims.
  • Deep research iteration: keep searching until additional searching is unlikely to materially change the answer.
  • A completeness pass before finalizing: did I answer every subpart, include concrete examples, and cover tradeoffs where relevant?
  • Never ask clarifying questions. Instead, cover all plausible intents comprehensively.

This last point contradicts the <uncertaintyandambiguity> block, which allows asking one to three clarifying questions. The web research agent pattern explicitly forbids it. The resolution: the ambiguity block is for general-purpose agents. The web research pattern is for research agents where breadth is more valuable than clarification. Choose the pattern that matches your use case.

How This Compares to GPT-5.4 and GPT-5.5 Guidance

We covered the GPT-5.4 and GPT-5.5 guides in earlier articles. Here is where GPT-5.2's guidance diverges:

GPT-5.4 focused on starting minimal, defining output contracts, and specifying what "done" means. Its key construct was the <completeness_contract>. It defaulted reasoning to none and told you to increase only after prompt-level fixes.

GPT-5.5 told you to start fresh. Don't carry over your old prompt stack. Use outcome-first, not process-heavy instructions. Higher reasoning effort can make things worse if your prompt has conflicting instructions or open-ended tool access. The guidance was about stripping away scaffolding.

GPT-5.2 is in between. It wants explicit scaffolding, but targeted scaffolding. It introduces <designandscopeconstraints> as a new primitive. It retains <outputverbosityspec> from GPT-5.1 but elevates it. It adds <uncertaintyandambiguity>, <highriskselfcheck>, and <longcontexthandling> as new blocks. It inherits <userupdatesspec> and <solution_persistence> from GPT-5.1 but adds scope discipline to the update rules.

The arc across the three guides tells a story. GPT-5.4: be explicit about what done looks like. GPT-5.2: be explicit about scope, verbosity, and uncertainty. GPT-5.5: be explicit about outcomes, then get out of the way.

GPT-5.2 is the model that needs the most hand-holding of the three. It needs you to specify output length, scope boundaries, uncertainty handling, and context management. But the hand-holding is structured and composable. You are not writing a wall of instructions. You are assembling blocks.

What Practitioners Should Take Away

Scope drift is now a prompt primitive. OpenAI has formalized it. Use <designandscope_constraints> in any agent that touches code, UI, or multi-step tasks. This is the single most important takeaway from this guide.

Verbosity must be specified, not assumed. GPT-5.2 will not read your mind. Use <outputverbosityspec> with graduated length rules mapped to task complexity.

Uncertainty is a feature, not a bug. GPT-5.2's conservative grounding bias means it would rather express doubt than fabricate. Use <uncertaintyandambiguity> and <highriskself_check> to lean into this behavior.

Long context needs forced re-grounding. Do not trust the model to hold 10K+ tokens without anchoring. Use <longcontexthandling> to force outlining, constraint restatement, and section-level citations.

Compaction is the new context management. For long-running agents, the /responses/compact endpoint is your escape hatch from context window limits. Compact at milestones, not every turn.

Migration is incremental. One change at a time. Pin reasoning effort first, then evaluate, then tune prompts.

The blocks compose. You can mix and match <outputverbosityspec>, <designandscopeconstraints>, <uncertaintyandambiguity>, <toolusagerules>, and <extractionspec> based on what your agent actually needs. You do not need all of them. You need the ones that address your measured failure modes.

Citations

Suggested Title

GPT-5.2's Prompting Guide Makes Scope Drift a First-Class Problem

Word Count

2,862

Fact-Check Notes

  • The <designandscopeconstraints> block, <outputverbosityspec> block, <uncertaintyandambiguity> block, <highriskselfcheck> block, <longcontexthandling> block, <userupdatesspec> block, <toolusagerules> block, and <extraction_spec> block are all directly quoted from the official OpenAI Cookbook GPT-5.2 Prompting Guide. Verified.
  • The migration table (GPT-4o/4.1/5/5.1 → GPT-5.2 reasoning effort mappings) is directly from the official guide. Verified.
  • The /responses/compact endpoint is described in the official guide. Verified.
  • The default reasoning effort for GPT-5 is medium, for GPT-5.1 and GPT-5.2 is none. This is stated in the official guide. Verified.
  • The claim that GPT-5.2 is "the first vendor to formalize scope drift prevention as a prompt primitive" is an interpretive claim based on my review of other vendor guides. Other vendors may have similar patterns, but OpenAI is the first to give it a dedicated, named XML block in official first-party guidance. This should be verified against Anthropic's and Google's current guides before publishing.
  • The comparison with GPT-5.4 and GPT-5.5 guidance is based on our prior articles and the official guidance documents for those models. Verified against our published articles.
  • The GPT-5.2 guide was authored by Mandeep Singh and Emre Okcular per the Cookbook page. Verified.
  • The guide was published December 11, 2025 per the Cookbook page. Verified.