This prompt is designed for Site Reliability Engineers (SREs) and platform engineering teams who are integrating AI agents into infrastructure-as-code (IaC) and operational toolchains. The core job-to-be-done is to generate a structured, human-reviewable change request whenever an agent proposes a modification to a production environment. The ideal user is an operator who needs a consistent, auditable artifact that captures the what, why, and how of a change, along with a pre-computed blast radius assessment and a clear rollback procedure, before any terraform apply or kubectl command is executed.
Prompt
Production Configuration Change Escalation Prompt

When to Use This Prompt
Define the job, reader, and constraints for the Production Configuration Change Escalation Prompt.
You should use this prompt when the cost of an autonomous error is high. This includes scenarios like modifying production load balancer configurations, updating database parameter groups, scaling stateful workloads, or altering network security group rules. The prompt forces the agent to surface a configuration diff, map the change to affected services, and estimate the blast radius before a human ever sees the request. It is not a generic change log; it is a pre-execution gate that transforms an agent's intent into a decision support document for an on-call engineer. The required context includes the current configuration state, the proposed state, and a service dependency map.
Do not use this prompt for low-risk, read-only operations or for environments where full autonomy is already accepted and tested, such as a development sandbox with no customer impact. It is also the wrong tool for simple notification workflows that don't require a structured decision. If your goal is just to log that a change happened, use a standard audit logging prompt. This playbook is specifically for the high-stakes escalation moment where a human must understand the risk and explicitly approve the action. After reading this section, proceed to the prompt template to see the exact input contract and then to the implementation harness to learn how to wire this into a deployment pipeline with mandatory peer review gates.
Use Case Fit
Where the Production Configuration Change Escalation Prompt works and where it introduces unacceptable risk.
Good Fit: Infrastructure-as-Code Pipelines
Use when: An agent proposes a terraform apply, Kubernetes manifest change, or cloud resource modification. The prompt structures the diff, blast radius, and rollback plan before a human operator approves. Guardrail: Require the agent to include the full plan output and affected resource IDs.
Bad Fit: Real-Time Incident Remediation
Avoid when: Latency is critical and waiting for human review would extend an active outage. The escalation prompt adds a blocking step that is inappropriate for automated failover or health checks. Guardrail: Use this prompt for post-incident change review, not during automated recovery.
Required Input: Concrete Configuration Diff
Risk: Without a machine-readable diff, the model hallucinates the scope of changes. Guardrail: The prompt must receive a structured diff (e.g., terraform plan JSON) as a required input. Do not rely on the agent's summary of what it intends to change.
Required Input: Service Dependency Map
Risk: The blast radius assessment is guesswork without a dependency graph. Guardrail: Provide a current service topology or allow the agent to query a live service catalog tool before generating the escalation request.
Operational Risk: Incomplete Rollback Procedure
Risk: The agent proposes a change with a vague rollback plan, leaving operators with no clear path to recovery. Guardrail: The prompt must enforce a specific rollback template with exact commands, state recovery steps, and validation checks. Reject the request if the rollback plan is empty or generic.
Operational Risk: Missing Peer Review Gate
Risk: The prompt generates a beautiful change request that a single operator approves without a second set of eyes. Guardrail: The output must include a mandatory required_reviewers field based on the blast radius score, and the downstream system must enforce multi-party approval for high-severity changes.
Copy-Ready Prompt Template
A reusable prompt template for generating structured production change requests with risk assessment, blast radius, and rollback procedures before infrastructure-as-code execution.
This prompt template is designed to be inserted into an agent workflow that detects, proposes, or is instructed to make a production configuration change. It forces the model to produce a structured change request document before any tool invocation, which a human operator or approval system can then review. The template uses square-bracket placeholders that your application must populate with live context from your infrastructure-as-code repository, monitoring systems, service catalog, and change management policies.
textYou are an SRE assistant operating under a strict change management policy. You are NOT authorized to execute any configuration changes directly. Your sole output is a structured Change Request document for human review. ## Current Context - **Proposed Change:** [PROPOSED_CHANGE_DESCRIPTION] - **Triggering Event:** [TRIGGER_EVENT_OR_ALERT] - **Target Environment:** [TARGET_ENVIRONMENT] - **Affected Service(s):** [AFFECTED_SERVICES_LIST] - **Configuration Source:** [CONFIGURATION_REPOSITORY_AND_PATH] - **Current Configuration Snippet:** ```[CONFIG_LANGUAGE] [CURRENT_CONFIGURATION_SNIPPET]
- Proposed Configuration Snippet:
code
[PROPOSED_CONFIGURATION_SNIPPET] - Service Dependency Graph (simplified): [DEPENDENCY_GRAPH_OR_DESCRIPTION]
- Recent Incident History (last 7 days): [RECENT_INCIDENT_SUMMARY]
- Change Window Policy: [CHANGE_WINDOW_POLICY]
- Required Approvers: [REQUIRED_APPROVER_ROLES]
Task
Generate a Production Configuration Change Request with the following sections. Be precise, factual, and conservative in your assessment. If information is missing or uncertain, explicitly state it rather than assuming.
Output Schema
json{ "change_request_id": "[GENERATE_UNIQUE_ID]", "timestamp_utc": "[CURRENT_UTC_TIMESTAMP]", "requestor": "[AGENT_IDENTITY_OR_SYSTEM]", "summary": "One-sentence summary of the change.", "change_type": "emergency | standard | normal", "configuration_diff": { "file_path": "string", "diff_unified": "string (unified diff format)", "lines_added": "number", "lines_removed": "number" }, "blast_radius_assessment": { "directly_affected_services": ["list"], "indirectly_affected_services": ["list"], "affected_customer_facing_features": ["list"], "estimated_user_impact": "none | degraded | partial_outage | full_outage", "rationale": "Explanation of impact reasoning." }, "risk_assessment": { "risk_score": "low | medium | high | critical", "risk_factors": ["list of specific risk factors"], "mitigation_in_place": ["list of existing safeguards"], "worst_case_scenario": "Description of worst-case outcome if change fails." }, "rollback_procedure": { "rollback_command_or_steps": ["ordered list of steps"], "rollback_automation_available": "boolean", "estimated_rollback_time_seconds": "number", "rollback_verification": ["steps to confirm successful rollback"] }, "test_evidence": { "tests_executed": ["list of test names or descriptions"], "test_results_summary": "pass | fail | partial | not_executed", "staging_validation_done": "boolean" }, "approval_gate": { "required_approvers": ["list of roles"], "peer_review_completed": "boolean", "peer_reviewer_identity": "string or null", "scheduled_window": "UTC time range or null" }, "missing_information": ["list any data you need but don't have to complete this assessment"] }
Constraints
- Do NOT execute any commands or tools. Only output the JSON document.
- If the
risk_scoreishighorcritical, theapproval_gate.peer_review_completedfield must befalseuntil a human explicitly sets it. - If the
blast_radius_assessment.estimated_user_impactispartial_outageorfull_outage, thechange_typemust beemergencyand therollback_proceduremust include a communication plan step. - Cite specific configuration parameters, service names, and monitoring metrics. Do not use vague language like "may affect some services."
- If you cannot determine any field from the provided context, set it to
nulland add the field name tomissing_information.
To adapt this template, your application must replace each square-bracket placeholder with live data before sending the prompt to the model. The [CONFIGURATION_REPOSITORY_AND_PATH] and [DEPENDENCY_GRAPH_OR_DESCRIPTION] placeholders are critical for accurate blast radius assessment—without them, the model will guess and the output will be unreliable. After receiving the JSON response, validate it against the schema before presenting it to a human reviewer. If the missing_information array is non-empty, your system should attempt to fetch the missing data and re-invoke the prompt rather than proceeding with an incomplete assessment.
Prompt Variables
Required inputs for the Production Configuration Change Escalation Prompt. Each placeholder must be populated before the prompt is assembled and sent. Missing or malformed variables will cause the agent to produce incomplete change requests or skip mandatory risk gates.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[CONFIG_DIFF] | The full configuration diff showing what changed between current and proposed state | diff --git a/nginx.conf b/nginx.conf
| Must be non-empty string. Validate diff format is parseable. Reject if only whitespace or placeholder text like 'TODO'. |
[SERVICE_NAME] | Primary service or application affected by the configuration change | api-gateway-prod | Must match a known service in the service registry. Validate against allowed service list. Reject unknown or empty values. |
[ENVIRONMENT] | Target deployment environment for the change | production-us-east-1 | Must be one of the allowed environment identifiers. Validate against environment enum. Block changes to environments not in the approved list. |
[BLAST_RADIUS_SERVICES] | List of downstream services, databases, or integrations within the blast radius | ["auth-service", "billing-api", "user-profile-db"] | Must be a valid JSON array of strings. Each entry must match a known service. Empty array allowed only if explicitly justified. Validate array structure before prompt assembly. |
[ROLLBACK_PROCEDURE] | Step-by-step rollback instructions to reverse the change if it fails |
| Must be non-empty string with at least 3 distinct steps. Validate step count. Reject single-line or vague rollback descriptions like 'revert change'. |
[CHANGE_REQUESTER] | Identity of the person or system requesting the configuration change | Must be a valid email or system identifier. Validate format. Reject anonymous or generic values like 'admin' or 'system'. Required for audit trail. | |
[PEER_REVIEWERS] | List of required peer reviewers who must approve before execution | Must be a valid JSON array of at least one reviewer email. Validate array structure and email format. Reject empty arrays. At least one reviewer must differ from [CHANGE_REQUESTER]. | |
[RISK_CATEGORY] | Pre-classified risk level for the change based on organizational taxonomy | HIGH | Must be one of: LOW, MEDIUM, HIGH, CRITICAL. Validate against allowed enum. If CRITICAL, require additional approval fields and extended blast radius documentation before prompt submission. |
Implementation Harness Notes
How to wire the Production Configuration Change Escalation Prompt into an infrastructure-as-code agent workflow with validation, retries, and human review gates.
This prompt is designed to sit between an agent that proposes infrastructure changes and the human operator who must approve or reject them. It is not a standalone chatbot prompt—it is a structured escalation gate. The agent should invoke this prompt when it has generated a configuration diff and needs human sign-off before applying the change. The prompt expects the agent to supply a complete change request payload including the diff, blast radius assessment, affected services, and rollback procedure. The output is a structured escalation record that can be routed to an approval queue, logged for audit, or used to block execution until a human responds.
Wire this prompt into your agent's tool execution loop as a mandatory pre-apply hook for any configuration change targeting production environments. The agent should call a tool like request_change_approval that formats the prompt with the required inputs and returns a structured approval request. Implement a state machine that blocks the apply tool until the approval record transitions to approved. Use a dead-letter queue for approvals that time out—never default to auto-approval on timeout. Log the full prompt input, output, reviewer identity, and timestamp to an append-only audit store. For model choice, use a model with strong instruction-following and structured output support (GPT-4o, Claude 3.5 Sonnet, or equivalent). Set temperature=0 to maximize consistency in risk classification and escalation path selection. Validate the output against a JSON schema that enforces required fields: change_id, risk_level, blast_radius.services, rollback_procedure.steps, and approval_chain. If validation fails, retry once with the validation errors injected into the prompt context. If the second attempt fails, escalate to a human operator with the raw agent output and validation failure details.
For high-risk changes (risk_level high or critical), enforce a multi-step approval chain before the apply tool is unlocked. Route the approval request to the service owner first, then to the on-call SRE. Use the approval_chain field from the prompt output to drive routing logic. Implement a circuit breaker: if more than three changes are pending approval for the same service, block new change requests and alert the platform team. Test this harness with golden cases: a routine config update (should auto-classify as low risk and route to a single reviewer), a database migration (should flag schema impact and require DBA approval), and a network ACL change (should detect blast radius across dependent services). Measure false-positive escalation rates—if more than 20% of changes are escalated unnecessarily, recalibrate the risk scoring weights in the prompt's [RISK_LEVEL] guidance. Never allow the agent to self-approve or bypass the approval gate through prompt injection; validate that the approval record was created by the escalation prompt and signed by a human identity from your IdP.
Expected Output Contract
Defines the required fields, types, and validation rules for the structured change request object produced by the Production Configuration Change Escalation Prompt. Use this contract to parse and validate the model's output before routing it to a human approval queue.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
change_id | string (UUID v4) | Must match UUID v4 regex. Reject if missing or malformed. | |
change_summary | string (<= 200 chars) | Must be non-empty and <= 200 characters. Reject if null or exceeds limit. | |
configuration_diff | object (JSON) | Must contain 'before' and 'after' keys with valid JSON values. Schema check required. | |
blast_radius_assessment | object | Must contain 'affected_services' (array of strings) and 'risk_level' (enum: low, medium, high, critical). Reject if risk_level is not in enum. | |
rollback_procedure | string (>= 50 chars) | Must be a non-empty string with a minimum length of 50 characters. Reject if too short or missing. | |
peer_review_gate | object | Must contain 'required' (boolean) and 'assigned_reviewers' (array of strings). Reject if 'required' is true but 'assigned_reviewers' is empty. | |
scheduled_window | object | If present, must contain 'start_time' and 'end_time' in ISO 8601 format. Reject if dates are in the past or end_time is before start_time. | |
confidence_score | number (0.0 - 1.0) | If present, must be a float between 0.0 and 1.0. Flag for human review if below 0.8. |
Common Failure Modes
What breaks first when using a production configuration change escalation prompt, and how to guard against it.
Incomplete Blast Radius Assessment
What to watch: The prompt generates a change request that lists only the primary service but omits downstream dependencies, shared infrastructure, or customer-facing endpoints. This leads to an understated risk score and insufficient review. Guardrail: Require the prompt to explicitly enumerate upstream and downstream dependencies from a service catalog or topology map. Add an eval check that fails the output if the blast radius section contains fewer than two affected components.
Missing or Generic Rollback Procedure
What to watch: The model produces a vague rollback step like 'revert the change' without specifying the exact command, artifact version, or state validation check. In an incident, this ambiguity wastes critical minutes. Guardrail: Constrain the output schema to require a step-by-step rollback procedure with explicit CLI commands, expected state checks, and a rollback success criterion. Validate that the rollback field contains actionable instructions, not a single sentence.
Bypassed Peer Review Gate
What to watch: The prompt generates a complete change request but the agent or workflow executes it without routing through a mandatory peer review queue. This is the most common governance failure in production. Guardrail: The prompt output must include a review_status field set to pending_approval and a required_reviewers list. The calling system must enforce that no execution occurs until an external review service returns approved. Never let the model set its own approval status.
Hallucinated Configuration Diff
What to watch: When the model lacks access to the live configuration state, it invents a plausible-looking diff that does not match reality. Reviewers approve a change that was never actually needed. Guardrail: The prompt must receive the actual current configuration and the proposed configuration as structured inputs. The diff must be computed by a deterministic tool, not generated by the model. The model's role is to summarize and assess the pre-computed diff, not to create it.
Overconfident Risk Classification
What to watch: The model classifies a high-risk change as low or routine because the prompt lacks calibrated risk definitions. This causes the change to skip required escalation tiers. Guardrail: Embed a risk rubric directly in the prompt with concrete thresholds for each tier. Require the model to cite which specific criterion triggered the classification. Add an eval that flags any low classification when the blast radius includes production customer traffic.
Stale Service Dependency Data
What to watch: The prompt uses a dependency map that is weeks out of date. New services, decomissioned endpoints, and shifted ownership are invisible to the assessment. Guardrail: The prompt must receive a timestamped dependency graph as input, and the calling system must reject any graph older than a configurable TTL. The output should include the graph's last_updated timestamp so reviewers can assess data freshness.
Evaluation Rubric
Use this rubric to test the Production Configuration Change Escalation Prompt before deployment. Each criterion targets a specific failure mode common in infrastructure-as-code agent workflows.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Change Request Completeness | Output contains all required fields: configuration diff, blast radius assessment, affected services list, rollback procedure, and peer review gate status. | Missing one or more required sections; placeholder text left in output; diff is described but not included. | Schema validation against [OUTPUT_SCHEMA]; manual spot-check of 10 generated outputs for field presence. |
Blast Radius Accuracy | Blast radius assessment correctly identifies all downstream services, data stores, and user-facing features impacted by the configuration change. | Assessment omits a documented dependency; radius is described as 'minimal' without evidence; impact on async consumers or batch jobs is ignored. | Compare blast radius against service dependency graph or CMDB; test with known high-dependency config changes (e.g., connection pool size, feature flag). |
Rollback Procedure Validity | Rollback procedure includes specific commands, expected duration, state verification steps, and a rollback success criterion. | Rollback is described as 'revert the change' without specifics; procedure references non-existent tooling; no verification step after rollback. | Execute rollback procedure in a sandbox environment; check that each step maps to a real tool or command available to the operator. |
Peer Review Gate Enforcement | Output includes a peer review status field that is set to 'required' when risk score exceeds threshold; reviewer identity and approval timestamp fields are present. | Peer review gate is marked 'optional' for high-risk changes; reviewer field is empty or contains placeholder; approval can be bypassed by agent without human interaction. | Inject test cases with risk scores above and below threshold; verify gate status matches policy; attempt to submit output with gate bypassed and confirm rejection. |
Risk Score Calibration | Risk score is calculated from weighted factors (blast radius, data sensitivity, reversibility, peak traffic window) and matches operator-defined thresholds. | Risk score is always 'low' or 'medium' regardless of change severity; score does not change when blast radius or data sensitivity inputs are varied. | Run 20 test cases with known risk profiles; measure correlation between input severity and output risk score; flag outputs where score deviates by more than one tier. |
Diff Format and Readability | Configuration diff is presented in unified diff format with context lines; additions, deletions, and modifications are clearly marked; sensitive values are masked. | Diff is a prose description instead of structured format; secrets or credentials appear in plaintext; diff lacks file path or config key context. | Parse diff with standard diff tooling; scan for secret patterns (API keys, passwords, tokens); verify file paths match repository structure. |
Affected Services Enumeration | Affected services list includes service name, environment, expected impact type (latency, availability, data consistency), and monitoring dashboard link. | List contains only the directly changed service; impact type is missing or generic; no links to observability surfaces for post-change verification. | Cross-reference affected services against service catalog; verify each entry has a valid monitoring link; test with changes that span multiple environments. |
Escalation Path Completeness | When risk score exceeds auto-approval threshold, output includes escalation target (team or individual), SLA for response, and fallback if primary approver is unavailable. | Escalation target is 'on-call' without specific contact; no SLA or timeout specified; no fallback path defined for unavailable approvers. | Simulate high-risk change submission; verify escalation target resolves to a real team or rotation; check that timeout triggers fallback notification. |
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
Add the full schema with blast_radius, rollback_procedure, peer_review_gate, and risk_score. Wire in a [SERVICE_CATALOG] variable from your CMDB. Add a validator that rejects outputs missing rollback_procedure or with risk_score below a configurable threshold. Include retry logic with escalating detail requests.
code[CHANGE_TYPE]: [from change management system] [CONFIG_DIFF]: [from git diff or PR] [SERVICE_CATALOG]: [from CMDB API] [DEPLOYMENT_CONTEXT]: [cluster, region, environment] [OUTPUT_SCHEMA]: full schema with blast_radius, rollback, peer_review_gate [CONSTRAINTS]: require rollback steps, require affected service justification
Watch for
- Silent format drift when model changes
risk_scorefrom integer to string peer_review_gatebeing populated with placeholder names instead of actual team assignments- Rollback procedures that are generic (
"revert the change") instead of step-specific

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