This prompt is designed for agent builders and platform engineers who need to create a reliable, human-readable checkpoint before an AI system executes an action with side effects. The core job-to-be-done is to pause an autonomous workflow and generate a structured summary that captures the intent, scope, risk level, and explicit rollback plan for a proposed action. The ideal user is a developer integrating this prompt into an agent harness where a human operator or an approval service must review and confirm the action before execution proceeds. This is not a prompt for generating creative text or answering questions; it is a control-plane component for high-stakes operations such as database writes, API mutations, financial transactions, or infrastructure changes.
Prompt
Pre-Action Summary and Confirmation Prompt Template

When to Use This Prompt
Define the job, reader, and constraints for the Pre-Action Summary and Confirmation Prompt Template.
You should use this prompt when the cost of an incorrect autonomous action is high and a human-readable audit trail is required. It is appropriate for workflows where the action type, target resource, and implications can be clearly defined but the final decision requires human judgment. Do not use this prompt for low-risk, idempotent, or fully reversible read-only operations where a confirmation step adds unacceptable latency. It is also unsuitable for real-time, sub-second decision loops where a human cannot reasonably review the summary in time. The prompt assumes that the calling application has already resolved the action details and can provide them as structured input; it does not perform intent disambiguation or gather missing information from the user.
Before implementing this prompt, ensure your harness can supply the required variables: the action type, the target resource identifier, a clear statement of the intended change, a risk level classification, and a defined rollback or revert plan. If any of these inputs are missing or uncertain, pair this prompt with an Ambiguous Intent Clarification or Missing Information Interruption prompt first. The output of this prompt should be treated as a blocking gate: the system must not proceed to execution until a confirmed approval signal is received. For regulated domains, always log the generated summary, the approval decision, and the reviewer's identity as part of your compliance evidence package.
Use Case Fit
Where this prompt works and where it does not. Use these cards to decide if the Pre-Action Summary and Confirmation template fits your workflow before you integrate it into an agent harness.
Good Fit: Irreversible Write Operations
Use when: the agent is about to execute a destructive or irreversible action such as a database write, a payment, a deployment, or a permission change. Why: the summary creates a human-readable checkpoint that captures intent, scope, and risk before the action proceeds, reducing the blast radius of autonomous mistakes.
Bad Fit: Read-Only or Stateless Queries
Avoid when: the agent is performing a simple lookup, a stateless calculation, or a read-only API call with no side effects. Why: adding a confirmation step to low-risk operations creates unnecessary friction and slows down the user experience without a proportional safety gain.
Required Inputs: Action Context and Rollback Plan
What to watch: the prompt will produce a vague or incomplete summary if the harness does not supply the action type, target resource, and a rollback or mitigation plan. Guardrail: enforce that the harness populates [ACTION_TYPE], [TARGET_RESOURCE], and [ROLLBACK_PLAN] before the prompt is assembled. If any are missing, block execution and request the missing data.
Operational Risk: Summary Fatigue and Blind Approval
What to watch: reviewers may start approving summaries without reading them if the volume is too high or the summaries are too verbose. Guardrail: implement a time-boxed approval window and random audit sampling. If a reviewer approves too quickly or too often, escalate to a second reviewer or temporarily reduce the agent's autonomy level.
Operational Risk: Incomplete Blast Radius Analysis
What to watch: the summary may list the primary target but miss cascading effects on dependent systems, downstream pipelines, or shared resources. Guardrail: add an eval check that verifies the summary includes a blast_radius section. If the section is empty or mentions only the primary target, flag the summary for human enrichment before approval is allowed.
Operational Risk: Stale or Missing Rollback Plan
What to watch: the summary may include a rollback plan that is outdated, untested, or missing entirely, leaving no safe way to undo the action. Guardrail: require that the rollback plan references a specific, versioned runbook or script. If the plan is generic or references a resource that hasn't been tested in the last 30 days, escalate for manual review before execution.
Copy-Ready Prompt Template
A reusable prompt for generating structured, human-readable summaries of planned actions before execution.
This template is the core of the pre-action confirmation workflow. It instructs the model to produce a structured checkpoint that captures the intent, scope, risk, and required confirmation for any planned action. The output is designed to be consumed by a human reviewer or an upstream orchestration system before an irreversible step is taken. Use this template as a starting point and adapt the placeholders to your specific domain, whether that's a database write, a financial transaction, or a configuration change.
textYou are an AI agent preparing to execute a planned action. Before proceeding, you must generate a structured summary for human review and confirmation. Do not execute the action. Only generate the summary. ## Action to Summarize [ACTION_DESCRIPTION] ## Action Type [ACTION_TYPE] ## Target Resource [TARGET_RESOURCE] ## Context [CONTEXT] ## Constraints [CONSTRAINTS] ## Output Schema Generate a JSON object with the following fields: - "action_id": A unique identifier for this action. - "summary": A one-sentence, plain-English summary of what will happen. - "intent": The business or operational goal this action serves. - "scope": A detailed description of what is affected, including specific resources, systems, or data. - "risk_level": One of "low", "medium", "high", "critical". - "risk_rationale": A brief explanation for the assigned risk level. - "irreversible": A boolean indicating if the action can be easily undone. - "rollback_plan": If irreversible is false, describe the steps to undo the action. If true, state "No automated rollback is possible." - "expected_outcome": A description of the system state after successful execution. - "confirmation_required": A boolean, set to true. - "confirmation_prompt": A direct question to the human reviewer, asking for explicit approval to proceed. ## Example Output { "action_id": "deploy-v2.3.1-canary", "summary": "Promote service 'checkout-api' version v2.3.1 to the canary stage, shifting 5% of production traffic.", "intent": "Gradually roll out a new feature flag and performance improvements with minimal blast radius.", "scope": "The 'checkout-api' deployment in the 'production' cluster, canary namespace. 5% of traffic from the 'web' load balancer will be routed to the new version.", "risk_level": "medium", "risk_rationale": "The change is limited to 5% of traffic and the canary stage has automatic rollback triggers on error rate increase. However, it is a production change.", "irreversible": false, "rollback_plan": "Execute the CI/CD pipeline's 'rollback-canary' job, which will shift all traffic back to the stable version v2.3.0.", "expected_outcome": "5% of users will be served by checkout-api v2.3.1. Monitoring dashboards will show a new version in the canary segment.", "confirmation_required": true, "confirmation_prompt": "Proceed with promoting checkout-api v2.3.1 to the canary stage? (yes/no)" }
To adapt this template, replace the square-bracket placeholders with the specific details of the action your agent is about to take. The [ACTION_DESCRIPTION] should be a raw, unstructured description from the planning step. The [ACTION_TYPE] and [TARGET_RESOURCE] help the model categorize the risk. The [CONSTRAINTS] block is where you inject operational policies, like 'All production changes require a rollback plan' or 'Actions on PII data require a data minimization statement.' After generating the summary, your application harness should parse the JSON and present the confirmation_prompt to the designated human reviewer. Do not proceed with the action unless the reviewer explicitly approves.
Prompt Variables
Required inputs for the Pre-Action Summary and Confirmation Prompt Template. Each variable must be populated before the prompt is assembled and sent to the model. Missing or malformed variables will cause the summary to be incomplete or the confirmation gate to be unreliable.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[ACTION_TYPE] | The category of action being proposed (e.g., deploy, delete, update, provision). | database_schema_migration | Must match an entry in the allowed action type registry. Reject unknown action types before prompt assembly. |
[ACTION_DESCRIPTION] | A plain-language description of what the system intends to do, including scope and method. | Apply migration v2.3.1 to add | Must be non-empty and contain a verb. Check for vague terms like 'fix stuff' and request clarification if detected. |
[TARGET_RESOURCE] | The specific resource, system, or entity the action will affect. Use a fully qualified identifier. | database:prod-primary:users | Must match the resource naming convention (e.g., |
[ESTIMATED_IMPACT] | A structured description of the expected blast radius, affected users, and downstream dependencies. | Adds a nullable column; no expected downtime. Downstream: user-service, audit-worker. | Must include both direct and indirect dependencies. Flag if the blast radius section is empty or contains only 'none' without evidence. |
[ROLLBACK_PLAN] | The exact steps required to reverse the action if it fails or causes unexpected harm. | Run | Must be non-empty and executable. Reject rollback plans that are purely manual ('ask the DBA') without a documented runbook reference. |
[RISK_LEVEL] | A machine-readable risk classification for routing and approval logic. | medium | Must be one of |
[REQUESTOR] | The identity of the user, service, or agent initiating the action. | service:deploy-bot/v2.1 | Must be a non-empty string. In automated systems, use service identity. In human-in-the-loop flows, use authenticated user ID. Log for audit. |
[EVIDENCE_REFERENCES] | Links to runbooks, change tickets, monitoring dashboards, or dry-run results that support the action. | https://runbooks.internal/db-migration, ticket:CHG-00421 | Must contain at least one reference. Reject if empty. Validate URLs are reachable or ticket IDs exist in the change management system before showing the summary. |
Implementation Harness Notes
How to wire the Pre-Action Summary prompt into an agent loop with validation, retries, and human review gates.
The Pre-Action Summary and Confirmation prompt is not a standalone chat interaction; it is a synchronous checkpoint inside an agent execution loop. The application must intercept the agent's intent to perform a write, mutation, or irreversible operation, call the LLM with this prompt to generate the summary, and then block further execution until a human reviewer provides explicit confirmation. The harness is responsible for providing the structured [ACTION_DETAILS] context, enforcing the output schema, and routing the generated summary to the correct approval queue.
To implement this, wrap the prompt in a function that is called by the agent's tool-execution middleware. The function should accept a dictionary of action details (type, target, payload, risk level, rollback plan) and format them into the [ACTION_DETAILS] placeholder. After calling the LLM, validate the response against a strict JSON schema that requires summary, risk_level, affected_resources, rollback_plan, and requires_confirmation fields. If validation fails, retry once with the validation error injected into the [CONSTRAINTS] block. If it fails again, log the raw output and escalate to a human operator with a PRE_ACTION_SUMMARY_FAILURE alert. The model choice here should prioritize instruction-following and schema reliability (e.g., GPT-4o, Claude 3.5 Sonnet) over speed, as this is a synchronous blocking step.
Once a valid summary is generated, the harness must render it in a human-readable format (Markdown or a UI card) and push it to a review queue. The queue item should include a unique action_id, the full summary, a timestamp, and two buttons: Approve and Reject. The agent's execution thread must block on this step, polling for a decision or waiting for a webhook callback. A timeout should be set (e.g., 15 minutes for standard operations, 5 minutes for incident response). If the timeout expires, the harness must treat it as a rejection, log the event, and execute the rollback plan if one was provided. Do not proceed with the action on a timeout. For high-risk actions defined by a risk_level of critical or high, require multi-stakeholder approval by routing the summary to a designated approval chain before the agent can proceed.
Expected Output Contract
Defines the required fields, types, and validation rules for the structured summary object returned by the Pre-Action Summary and Confirmation Prompt. Use this contract to parse and validate the model's output before presenting it for human approval.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
action_summary | string | Must be a non-empty string. Check length > 10 characters. Should concisely describe the action, target, and method. | |
action_type | enum string | Must match one of the allowed values from [ACTION_TYPE_LIST]. Reject unknown values. | |
target_resource | string | Must be a non-empty string. Should be a valid identifier (e.g., ARN, file path, user ID). Validate format against a regex if a pattern is known. | |
risk_level | enum string | Must be exactly one of: 'low', 'medium', 'high', 'critical'. Case-sensitive check. | |
implications | array of strings | Must be a non-empty array. Each element must be a non-empty string. Check array length >= 1. | |
rollback_plan | string | Must be a non-empty string. Should describe a concrete rollback action. If no rollback is possible, the value must be exactly 'IRREVERSIBLE - NO ROLLBACK POSSIBLE'. | |
requires_approval | boolean | Must be a strict boolean (true or false). If risk_level is 'high' or 'critical', this field must be true. |
Common Failure Modes
Pre-action summaries fail when they omit critical details, misrepresent risk, or generate prose that humans ignore. These failure modes and guardrails help you catch problems before an irreversible action executes.
Vague Risk Language
What to watch: The model uses generic phrases like 'this action may have some risks' instead of naming specific blast radius, affected systems, or reversibility constraints. Guardrail: Require a structured risk field with enumerated categories (e.g., 'irreversible', 'cost-impact', 'PII-exposure') and reject summaries that lack concrete impact statements.
Missing Rollback Plan
What to watch: The summary describes the action but omits how to undo it, leaving the approver blind to recovery cost and feasibility. Guardrail: Make the [ROLLBACK_PLAN] variable mandatory in the prompt template and add an eval that fails the summary if the rollback section is empty or contains only 'N/A' without justification.
Overconfidence in Irreversible Actions
What to watch: The model presents a destructive action (delete, drop, revoke) with the same neutral tone as a read-only operation, failing to signal irreversibility to the human reviewer. Guardrail: Add a required irreversibility_flag boolean in the output schema and prepend a visual warning marker when true. Test with destructive scenarios to confirm the flag triggers.
Context Drift in Long-Running Workflows
What to watch: The summary references stale state from earlier turns, such as a file that was already modified or a user that was already removed, causing the approver to act on outdated information. Guardrail: Include a context_timestamp and state_snapshot_hash in the summary. Before presenting for approval, re-verify the current state against the snapshot and flag discrepancies.
Approval Fatigue from Verbose Summaries
What to watch: The model generates a wall of text for every action, causing human reviewers to skim or blindly approve without reading. Guardrail: Enforce a concise executive summary at the top with a strict character limit. Use a separate eval to measure summary length and flag outputs that exceed the threshold before they reach the reviewer.
Schema Drift Breaking Downstream Parsers
What to watch: The model subtly changes field names, nesting, or enum values across runs, breaking the approval UI or logging pipeline that expects a stable contract. Guardrail: Validate every generated summary against a strict JSON schema before rendering. On validation failure, retry with the schema injected into the prompt and escalate to a human if retries are exhausted.
Evaluation Rubric
Use these criteria to test whether a pre-action summary is complete, clear, and safe before shipping the prompt into a production approval workflow.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Action Intent Clarity | Summary states what action will be performed, on which resource, and by which agent or principal in one sentence. | Vague verbs like 'update' or 'change' without a specific target resource or principal. | Parse the first sentence of the output. Check for presence of [ACTION_TYPE], [TARGET_RESOURCE], and [PRINCIPAL] placeholders filled with concrete values. |
Scope and Impact Disclosure | Summary lists the blast radius: number of affected items, downstream dependencies, and expected duration. | Missing count of affected items, no mention of dependent services, or 'no impact' claim without evidence. | Schema check: output must contain non-null |
Risk Level Classification | Summary assigns a risk level (low, medium, high, critical) with at least one specific risk factor named. | Risk level is missing, defaults to 'low' without justification, or cites no concrete risk factor. | Enum check: |
Rollback or Reversibility Statement | Summary describes whether the action is reversible, partially reversible, or irreversible, and names the rollback method if applicable. | No reversibility assessment, or claims reversibility for an irreversible action type like data deletion. | Boolean check: |
Required Approvals Enumeration | Summary lists which roles or individuals must approve, in what sequence, and whether approval is blocking. | Approval list is empty for a high-risk action, or no sequence is specified when multiple approvers are listed. | Schema check: |
Precondition and Dependency Check | Summary confirms that required preconditions are met or flags unmet preconditions that block execution. | No precondition section, or lists preconditions as 'none' when the action type requires them (e.g., backup verification before migration). | Schema check: |
Compliance Gate Status | Summary states whether compliance gates (regulatory, policy, contractual) are satisfied, with specific gate names. | No compliance section, or generic 'compliant' claim without naming which gates were checked. | Schema check: |
Human-Readable Urgency and Deadline | Summary communicates any time sensitivity, SLA deadline, or batch window constraint in plain language. | No urgency indicator when the action is time-sensitive, or uses only machine timestamps without human interpretation. | Field check: |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Start with the base template and a single action type. Use a simple JSON schema for the output and test with 5-10 low-risk actions. Skip multi-stakeholder routing and audit trail generation initially.
code[ACTION_TYPE]: "database_write" [TARGET_RESOURCE]: "users_table" [ROLLBACK_PLAN]: "Restore from snapshot"
Watch for
- Summaries that omit the rollback plan
- Risk levels defaulting to "low" without reasoning
- Missing confirmation language when the action is irreversible

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us