Inferensys

Prompt

Scope Boundary Negotiation Prompt Template

A practical prompt playbook for using Scope Boundary Negotiation Prompt Template in production AI workflows.
Cinematic shot of a sleek glass-walled boardroom on the 40th floor of a glass highrise, late afternoon light casting long shadows across a minimalist table with holographic AI workflow projections.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the job, ideal user, and operational constraints for the Scope Boundary Negotiation prompt.

This prompt is designed for agent orchestrators and planning pre-processors that must establish a clear, explicit contract about what a given task or project will not address. Its primary job is to prevent the most common failure mode in autonomous systems: scope creep and over-execution. The ideal user is an AI/ML engineer or technical product manager building an agent that receives ambiguous, high-level objectives and must translate them into a safe, bounded execution plan before any tools are called or side effects are produced.

Use this prompt when the cost of doing the wrong thing is high—such as when an agent has access to production databases, customer communication channels, or financial systems. It is particularly valuable as a pre-flight check in a planning module, where the output boundary document serves as a contract that downstream execution loops and human reviewers can validate against. The prompt requires a clear [GOAL_STATEMENT] and, optionally, a set of [KNOWN_CONSTRAINTS] to operate effectively. It is not a goal-setting prompt; it assumes a goal already exists and focuses exclusively on defining its negative space.

Do not use this prompt for simple classification tasks, single-turn Q&A, or workflows where the operational domain is already fully constrained by a rigid UI or API schema. It is also inappropriate for creative brainstorming sessions where exploration is valued over boundary enforcement. If you need to clarify an ambiguous goal first, start with the 'Ambiguous Goal Refinement' prompt. If you need to extract implicit constraints from a user, use the 'Constraint Elicitation Interview' prompt. This prompt is the final gate before planning begins, ensuring that what is out of scope is as rigorously defined as what is in scope.

In production, wire the output of this prompt into a structured validation step. The boundary document should be parsed and checked for completeness: every in-scope item should have a corresponding out-of-scope counterpart, and any 'conditional' items must have explicit trigger conditions. If the validator finds ambiguous edge cases or missing categories, the system should re-prompt with specific gap questions rather than proceeding to task decomposition. For high-risk domains, always route the boundary document to a human reviewer before the agent begins execution.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Scope Boundary Negotiation prompt template delivers value and where it introduces risk. Use these cards to decide if this prompt fits your agent architecture before integrating it into a planning pre-processor or orchestrator.

01

Good Fit: Autonomous Agent Pre-Flight

Use when: an agent orchestrator is about to begin multi-step execution and needs an explicit boundary document to prevent over-execution. Guardrail: run this prompt after goal clarification but before tool selection; feed the output into the agent's system prompt as a runtime constraint block.

02

Bad Fit: Trivial Single-Step Tasks

Avoid when: the task is a single function call or a simple lookup with no ambiguity about scope. Guardrail: gate this prompt behind a complexity check; if the clarified goal has fewer than three subtasks or no conditional branches, skip boundary negotiation and use a lightweight scope note instead.

03

Required Input: Clarified Goal with Constraints

What to watch: running this prompt on a vague or under-specified goal produces a boundary document full of assumptions that may be wrong. Guardrail: always pair this prompt with the output of a goal clarification step; validate that the input includes explicit success criteria, known constraints, and user intent before invoking boundary negotiation.

04

Operational Risk: Boundary Creep in Long-Running Agents

Risk: agents that run for many steps may drift outside the original boundary as new evidence emerges, but the boundary document remains static. Guardrail: implement a boundary re-evaluation trigger when the agent encounters unexpected tool outputs, new user input, or more than N consecutive replanning steps; re-run this prompt with updated context.

05

Operational Risk: Overly Restrictive Boundaries

Risk: the prompt may classify legitimate edge cases as out-of-scope, causing the agent to refuse useful work or escalate unnecessarily. Guardrail: always include a conditional-items section in the boundary document; configure the agent to request human clarification for conditional items rather than hard-refusing them.

06

Operational Risk: Ambiguous Edge Cases

Risk: boundary documents that use vague language like 'similar tasks' or 'reasonable extensions' create loopholes that agents exploit. Guardrail: add a post-generation validation step that scans the boundary document for fuzzy terms; require concrete examples or explicit exclusion criteria for every boundary category before the document is committed to the agent's context.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt for generating a structured scope boundary document from a goal statement and available context.

This prompt template is designed for agent orchestrators and planning pre-processors that must define what is explicitly in scope, out of scope, and conditionally allowed before execution begins. It takes a goal statement, available tools, known constraints, and any existing ambiguity notes, and produces a structured boundary document. The output is intended to be machine-readable for downstream enforcement and human-reviewable for stakeholder alignment. Use this template when the cost of scope creep, over-execution, or unauthorized action is high. Do not use it for trivial single-step tasks where a boundary document adds latency without reducing risk.

text
You are a scope boundary analyst for an autonomous agent system. Your job is to produce a precise, structured boundary document that defines what the agent is allowed to do, what it must not do, and what requires explicit confirmation before proceeding.

## INPUT
Goal: [GOAL_STATEMENT]
Available Tools: [TOOL_LIST]
Known Constraints: [CONSTRAINT_LIST]
Ambiguity Notes: [AMBIGUITY_NOTES]
Risk Level: [RISK_LEVEL]

## OUTPUT SCHEMA
Return a JSON object with the following structure:
{
  "scope_boundary": {
    "in_scope": [
      {
        "item": "string (specific action or domain)",
        "rationale": "string (why this is in scope)",
        "tool_required": "string | null (tool name if applicable)",
        "constraints": ["string (applicable constraints from input)"]
      }
    ],
    "out_of_scope": [
      {
        "item": "string (specific action or domain explicitly excluded)",
        "rationale": "string (why this is excluded)",
        "risk_if_violated": "string (what breaks if this boundary is crossed)"
      }
    ],
    "conditional": [
      {
        "item": "string (action or domain that requires confirmation)",
        "condition": "string (what must be true or who must approve)",
        "default_behavior": "string (what happens if condition is not met)",
        "escalation_path": "string (who or what to ask)"
      }
    ],
    "boundary_creep_risks": [
      {
        "scenario": "string (how scope could expand unintentionally)",
        "detection_rule": "string (how to detect this creep during execution)",
        "mitigation": "string (what to do if detected)"
      }
    ],
    "ambiguous_edge_cases": [
      {
        "case": "string (the ambiguous situation)",
        "why_ambiguous": "string (why the boundary is unclear)",
        "recommended_disposition": "in_scope | out_of_scope | conditional",
        "confidence": "low | medium | high",
        "clarification_needed": "boolean"
      }
    ]
  },
  "metadata": {
    "goal_summary": "string (one-sentence restatement)",
    "total_in_scope_items": "number",
    "total_out_of_scope_items": "number",
    "total_conditional_items": "number",
    "unresolved_ambiguities": "number",
    "boundary_confidence": "low | medium | high",
    "recommended_review": "boolean"
  }
}

## CONSTRAINTS
- Every in-scope item must be traceable to the stated goal. If an action does not serve the goal, it is out of scope.
- Out-of-scope items must include a concrete risk description, not a generic warning.
- Conditional items must specify exactly who or what grants approval. Do not use vague terms like "check with someone."
- Boundary creep risks must be specific to this goal and tool set. Do not list generic risks like "the model might hallucinate."
- Ambiguous edge cases must include a recommended disposition. Do not leave them unresolved without flagging clarification_needed as true.
- If the risk level is "high," set recommended_review to true and flag all conditional items for human approval.
- If the goal statement contains unresolved pronouns or implicit references, flag them in ambiguous_edge_cases.
- Do not invent tools, constraints, or capabilities not present in the input.

## EXAMPLES
[EXAMPLES]

## OUTPUT
Return only the JSON object. No preamble, no commentary.

To adapt this template, replace the square-bracket placeholders with your runtime data. [GOAL_STATEMENT] should be the clarified goal from an upstream refinement step, not raw user input. [TOOL_LIST] should include tool names, descriptions, and argument schemas so the model can reason about capability boundaries. [CONSTRAINT_LIST] should capture security policies, data handling rules, cost limits, and operational boundaries already elicited. [AMBIGUITY_NOTES] should carry forward any unresolved questions from disambiguation steps. [RISK_LEVEL] should be one of low, medium, or high and should gate the recommended_review flag and conditional-item strictness. [EXAMPLES] should contain one or two few-shot examples of well-formed boundary documents for your domain. If you omit examples, the model may produce plausible but incorrectly structured output, especially for the boundary_creep_risks and ambiguous_edge_cases arrays.

After generating the boundary document, validate the JSON schema before accepting the output. Check that every in-scope item references a tool from the input tool list or explicitly states no tool is required. Verify that out-of-scope items do not appear in the in-scope or conditional arrays. Count unresolved ambiguities and compare against the metadata field. If recommended_review is true, route the boundary document to a human reviewer before the agent begins execution. For high-risk workflows, log the boundary document alongside the execution trace so post-hoc audits can confirm the agent did not cross declared boundaries.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Scope Boundary Negotiation prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe how to check that the input is well-formed and safe.

PlaceholderPurposeExampleValidation Notes

[GOAL_STATEMENT]

The user's original objective as received, before any clarification or decomposition.

Build a customer-facing dashboard for our support team to track ticket SLAs.

Must be a non-empty string. Check for prompt injection patterns. If the goal contains executable instructions or role-override language, reject and request a clean restatement.

[CLARIFIED_GOAL]

The refined, unambiguous version of the goal after ambiguity resolution and constraint elicitation.

Build a read-only internal dashboard showing real-time SLA status for support tickets from Zendesk, accessible only to support managers via SSO.

Must be more specific than [GOAL_STATEMENT]. Run a pairwise specificity check: if [CLARIFIED_GOAL] does not add at least one concrete scope, constraint, or success criterion, flag for re-clarification.

[AVAILABLE_TOOLS]

A structured list of tools, APIs, and capabilities the agent can use during execution.

["zendesk_api_read", "slack_notify", "grafana_dashboard_create", "okta_sso_integrate"]

Must be a valid JSON array of tool identifiers. Each tool must exist in the agent's tool registry. If empty, the boundary negotiation must mark all execution-dependent items as conditional.

[CONSTRAINT_LIST]

Explicit constraints gathered from the user, system policy, and domain rules.

["PII must not appear in dashboard", "Data refresh latency under 60s", "Only support-manager role permitted", "Must deploy in eu-west-1"]

Must be a valid JSON array of constraint strings. Each constraint must be a declarative statement. Check for contradictory pairs (e.g., 'no PII' and 'show customer email'). If contradictions found, flag for constraint conflict resolution before boundary negotiation.

[ASSUMPTION_CATALOG]

Unstated assumptions surfaced during pre-processing that may affect scope.

["Zendesk API is available during build", "Support managers have Okta accounts", "Dashboard will not exceed 10 concurrent users"]

Must be a valid JSON array of assumption strings. Each assumption must be falsifiable. If an assumption is critical to scope decisions and unverified, the output boundary document must list it as a risk with a verification step.

[RISK_BOUNDARY]

Acceptable risk thresholds for autonomous action, data exposure, cost, and failure.

{"max_cost_per_run": 50, "allowed_data_classes": ["internal", "pii-hashed"], "require_approval_above": "staging-deploy"}

Must be a valid JSON object with at least one risk dimension defined. Validate that allowed_data_classes does not include prohibited classes per org policy. If require_approval_above is set to 'none', flag for human review unless explicitly approved for low-risk workflows.

[OUTPUT_SCHEMA]

The expected structure for the boundary document the prompt must produce.

{"in_scope": ["string"], "out_of_scope": ["string"], "conditional": [{"item": "string", "condition": "string", "risk": "string"}], "edge_cases": ["string"], "confidence": "high|medium|low"}

Must be a valid JSON Schema or example structure. Validate that the schema includes fields for in-scope, out-of-scope, conditional, and edge cases. If the schema lacks a confidence field, add a warning: boundary documents without confidence signals are harder to evaluate.

[DOMAIN_POLICY]

Domain-specific rules, regulatory requirements, or organizational policies that constrain scope.

{"data_residency": "eu-only", "auth_method": "sso-required", "max_retention_days": 90, "prohibited_actions": ["write_to_production_db", "email_customers"]}

Must be a valid JSON object. Validate that prohibited_actions is non-empty for any production-facing agent. If domain_policy is null, the boundary document must include a warning that domain constraints were not provided and scope may need revision.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Scope Boundary Negotiation prompt into an agent orchestrator with validation, retries, and human review gates.

The Scope Boundary Negotiation prompt is designed to sit at the front of an agent planning pipeline, immediately after goal clarification and before task decomposition. It takes a clarified goal, available tools, and known constraints as input and produces a structured boundary document. This document becomes the contract that downstream planning, execution, and monitoring modules enforce. The harness must treat the boundary output as a machine-readable artifact, not advisory text. Parse the JSON output, validate it against the expected schema, and store it as the active scope context for the remainder of the agent session.

Wire the prompt into your orchestrator as a synchronous pre-processing step. The input payload should include the clarified goal statement, a list of available tool capabilities with their action boundaries, any user-provided constraints, and a risk level indicator. After the model returns the boundary document, run a validation pass that checks: (1) the JSON parses without error, (2) every item in the in_scope and out_of_scope arrays has a non-empty rationale field, (3) conditional items include explicit trigger conditions and resolution criteria, and (4) no item appears in both in_scope and out_of_scope. If validation fails, retry once with the validation errors appended to the prompt as a [CORRECTION_FEEDBACK] block. If the second attempt also fails, escalate to a human reviewer with the original goal, the failed boundary document, and the specific validation errors highlighted. Log every boundary negotiation attempt, including the model version, input context, output, validation results, and escalation decision, for audit and prompt improvement cycles.

For high-risk domains such as healthcare, finance, or autonomous infrastructure, insert a mandatory human approval gate after successful validation. The boundary document should be surfaced in a review UI that highlights conditional items, out-of-scope declarations, and any items where the model's confidence was flagged as low. The reviewer must explicitly approve or modify the boundary before execution proceeds. Do not cache boundary documents across sessions unless the goal, tools, and constraints are identical. When the agent later encounters a replanning trigger, re-run the boundary negotiation prompt with the updated context rather than patching the original boundary document. This prevents boundary creep where incremental changes silently expand scope beyond the original intent.

IMPLEMENTATION TABLE

Expected Output Contract

Fields, types, and validation rules for the scope boundary document produced by the Scope Boundary Negotiation Prompt Template. Use this contract to validate model output before passing it to downstream planning or execution systems.

Field or ElementType or FormatRequiredValidation Rule

scope_boundary_id

string (UUID v4)

Must parse as valid UUID v4. Reject if missing or malformed.

goal_summary

string (1-3 sentences)

Must be non-empty and under 500 characters. Must contain at least one verb phrase referencing the original goal.

in_scope_items

array of objects

Array must contain 1-20 items. Each item must have 'item' (string) and 'rationale' (string) fields. Reject if empty array.

out_of_scope_items

array of objects

Array must contain 1-20 items. Each item must have 'item' (string) and 'rationale' (string) fields. Reject if empty array.

conditional_items

array of objects

Array may be empty. Each item must have 'item' (string), 'condition' (string), and 'default_behavior' (enum: 'include' | 'exclude' | 'escalate'). Reject if enum value invalid.

boundary_creep_risks

array of strings

Array must contain 1-5 items. Each string must be under 200 characters. Reject if empty or if any string duplicates an in_scope item verbatim.

ambiguous_edge_cases

array of objects

Array may be empty. Each item must have 'case' (string), 'ambiguity' (string), and 'recommended_resolution' (string). Reject if any field missing.

confidence_assessment

object

Must contain 'overall_confidence' (number 0.0-1.0) and 'low_confidence_areas' (array of strings). Reject if confidence outside range or missing.

PRACTICAL GUARDRAILS

Common Failure Modes

Scope boundary negotiation fails in predictable ways. These are the most common failure modes when generating in-scope, out-of-scope, and conditional boundary documents, along with practical guardrails to catch them before execution.

01

Boundary Creep via Implicit Inclusion

What to watch: The model treats unmentioned but related tasks as implicitly in-scope because they are 'obviously connected' to the stated goal. This produces boundary documents that silently expand scope without explicit approval. Guardrail: Add a hard constraint in the prompt template: 'If a task is not explicitly listed as in-scope, it is out-of-scope. Do not infer inclusion from relatedness.' Validate boundary documents against the original goal statement for unrequested additions.

02

Overly Permissive Conditional Items

What to watch: The model classifies high-risk or ambiguous items as 'conditional' with vague trigger conditions, effectively smuggling them into scope under a thin disguise. Conditional items become a backdoor for scope expansion during execution. Guardrail: Require every conditional item to include a specific, testable trigger condition and an explicit owner who must approve activation. Reject conditional items with triggers like 'if needed' or 'if relevant' as too ambiguous.

03

Out-of-Scope List Is Too Narrow

What to watch: The model only lists obviously dangerous or absurd items as out-of-scope while leaving adjacent risky activities unaddressed. This creates a false sense of safety because the boundary document looks complete but has dangerous gaps. Guardrail: Include a prompt instruction to enumerate out-of-scope items by risk category (security, data access, cost, external systems, user impact) rather than by obviousness. Cross-check the out-of-scope list against a pre-defined risk taxonomy.

04

Edge Cases Treated as In-Scope by Default

What to watch: Ambiguous edge cases that sit at the boundary between in-scope and out-of-scope are silently absorbed into scope rather than flagged for human decision. This is the most common source of production incidents in agent systems. Guardrail: Add a dedicated 'Needs Clarification' section to the boundary document output schema. Require the model to place any item with confidence below a threshold into this section rather than guessing. Route these items to a human reviewer before execution.

05

Constraint Contradictions Go Undetected

What to watch: The boundary document contains mutually exclusive constraints (e.g., 'complete within 500ms' and 'verify against all external sources') without flagging the conflict. Downstream planners then fail or silently drop one constraint. Guardrail: Add a post-generation validation step that checks for constraint pairs that cannot simultaneously be satisfied given known tool capabilities and latency budgets. Flag contradictions in a dedicated 'Constraint Conflicts' section before the boundary document is finalized.

06

Boundary Document Drift During Replanning

What to watch: When a replanning event occurs, the agent generates a new plan but does not re-validate against the original scope boundary document. Scope expands incrementally across replanning cycles without explicit review. Guardrail: Lock the boundary document as an immutable reference artifact. Require every replanning prompt to include the original boundary document and a specific instruction: 'The new plan must respect all out-of-scope and conditional items from the original boundary. If any boundary change is needed, stop and escalate.'

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for evaluating the quality of a scope boundary negotiation output before integrating it into an agent orchestrator. Use these checks to catch boundary creep, ambiguous edge cases, and incomplete scope definitions.

CriterionPass StandardFailure SignalTest Method

In-Scope Completeness

All stated goals from [GOAL_STATEMENT] are explicitly mapped to at least one in-scope item

In-scope list omits a core requirement present in the original goal statement

Diff [GOAL_STATEMENT] against in-scope items; flag any requirement with zero coverage

Out-of-Scope Explicitness

At least one out-of-scope item is declared for each major functional area mentioned in [CONSTRAINTS]

Out-of-scope section is empty or contains only vague statements like 'anything not listed'

Count out-of-scope items per constraint domain; fail if any domain has zero explicit exclusions

Conditional Item Clarity

Every conditional item includes a specific trigger condition and a default behavior when the condition is not met

Conditional items use ambiguous triggers such as 'if needed' or 'when appropriate'

Parse each conditional item for a trigger phrase and a default clause; flag items missing either

Edge Case Coverage

At least three edge cases from [EDGE_CASE_CATALOG] are addressed in conditional or out-of-scope sections

No edge cases from the catalog appear anywhere in the boundary document

Search boundary document for edge case keywords; fail if fewer than three matches found

Boundary Creep Detection

No in-scope item implicitly expands scope beyond what [CONSTRAINTS] allows

An in-scope item requires a capability, data access, or authority not granted in constraints

For each in-scope item, verify required capabilities exist in [AVAILABLE_TOOLS] and [CONSTRAINTS]; flag mismatches

Ambiguity Flagging

Any item that could be interpreted multiple ways includes an explicit disambiguation note

A boundary item uses terms like 'support', 'handle', or 'manage' without specifying what that means

Scan for ambiguous verbs; fail if any appear without a clarifying sentence in the same item

Constraint Alignment

All in-scope items respect every hard constraint from [CONSTRAINTS]; no constraint violations present

An in-scope item contradicts a stated constraint on latency, cost, data access, or authority

Cross-reference each in-scope item against constraint list; fail on first violation found

Output Format Compliance

Boundary document matches [OUTPUT_SCHEMA] exactly with all required fields present and correctly typed

Output is missing a required section, uses wrong field names, or nests items incorrectly

Validate output against [OUTPUT_SCHEMA] using a schema validator; fail on any parse error or missing required field

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a frontier model (GPT-4o, Claude 3.5 Sonnet) and manual review. Replace [DOMAIN] and [GOAL_STATEMENT] with your concrete values. Skip strict schema enforcement initially—focus on whether the boundary logic is sound.

Prompt modification

  • Remove or simplify the OUTPUT_SCHEMA block; accept free-text boundary documents.
  • Add a preamble: You are testing scope boundary logic. Flag anything you are unsure about.
  • Keep the AMBIGUITY_CHECK section but treat it as discussion notes, not structured fields.

Watch for

  • Overly broad in-scope lists that include everything the user mentioned
  • Missing conditional items—the model may classify edge cases as in-scope or out-of-scope instead of conditional
  • Boundary creep when the model adds items the user never requested
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.