This prompt is for AI reliability engineers and platform teams who need to systematically analyze where escalation policies break in production. Use it when you have a defined escalation policy—a documented set of rules, thresholds, and routing paths—and need to identify failure modes, root causes, impact severity, and mitigation recommendations before those failures reach users. The prompt produces a structured failure mode inventory that feeds directly into risk assessments, test planning, and policy hardening. It is not a prompt for designing escalation policies from scratch, nor is it for real-time incident response. It assumes you already have a documented escalation policy to analyze and that your goal is proactive reliability engineering, not reactive firefighting.
Prompt
Escalation Policy Failure Mode Analysis Prompt

When to Use This Prompt
Identify when to deploy the Escalation Policy Failure Mode Analysis Prompt and when to reach for a different tool.
The ideal user has access to the full escalation policy document, including risk thresholds, routing rules, tool-use authorization boundaries, and human-in-the-loop criteria. The prompt works best when you provide the complete policy text, the operational context in which it runs (e.g., a customer support AI, an autonomous coding agent, a healthcare triage system), and any known production incidents or near-misses. The output is a structured table of failure modes, each with a unique identifier, a description of the failure, the policy clause it violates, root cause categories (such as threshold ambiguity, missing edge case, or instruction conflict), severity ratings, and concrete mitigation steps. This inventory becomes the foundation for your failure mode and effects analysis (FMEA), your regression test suite, and your policy versioning decisions.
Do not use this prompt when you are still drafting the escalation policy itself. For that, start with the Escalation Threshold Definition Prompt Template or the Conditional Autonomy Policy Prompt. Do not use it during an active incident—the output is analytical and structured, not time-sensitive. For real-time escalation decisions, use the High-Risk Transaction Escalation Prompt or the Customer Support Escalation Routing Prompt. Also avoid this prompt if you lack a written policy to analyze; the model will hallucinate failure modes for an imaginary policy, producing plausible-looking but untethered results. Finally, if your goal is to test an existing policy against adversarial inputs rather than analyze its failure modes, use the Escalation Policy Testing Harness Prompt instead. This prompt is for systematic failure mode discovery, not adversarial red-teaming.
Use Case Fit
Where the Escalation Policy Failure Mode Analysis Prompt works, where it breaks, and what you must provide before using it in a production reliability workflow.
Good Fit: Pre-Deployment Policy Audit
Use when: you have a written escalation policy and need to find gaps before it reaches production. The prompt excels at static analysis of policy documents, identifying missing risk thresholds, ambiguous escalation paths, and unhandled edge cases. Guardrail: always provide the complete policy text as [POLICY_DOCUMENT]; partial policies produce incomplete failure mode inventories.
Good Fit: Post-Incident Policy Review
Use when: an escalation failure occurred in production and you need to identify whether the policy itself was flawed. The prompt cross-references incident timelines against policy rules to find authorization gaps, threshold miscalibrations, and missing escalation triggers. Guardrail: supply structured [INCIDENT_REPORT] with timestamps, actions taken, and policy rules that were applied or bypassed.
Bad Fit: Real-Time Escalation Decisions
Avoid when: you need the model to decide whether to escalate a live request. This prompt analyzes policy design, not operational decisions. Using it for runtime escalation adds latency and conflates policy analysis with execution. Guardrail: route live decisions to the Escalation Threshold Definition Prompt or Risk Score Calculation Prompt instead.
Bad Fit: Undocumented or Implicit Policies
Avoid when: escalation rules exist only in team knowledge or informal runbooks. The prompt requires explicit policy text to analyze; it cannot infer unwritten norms or tribal knowledge. Guardrail: document the policy first using the Escalation Threshold Definition Prompt Template, then run failure mode analysis against the written output.
Required Inputs
Must provide: [POLICY_DOCUMENT] with full escalation rules, risk levels, and decision criteria. Strongly recommended: [INCIDENT_HISTORY] for empirical grounding, [SYSTEM_CONTEXT] describing the agent or workflow the policy governs, and [REGULATORY_REQUIREMENTS] if compliance boundaries apply. Guardrail: missing incident history reduces the analysis to theoretical failures only, missing real-world failure patterns.
Operational Risk: Over-Confidence in Coverage
Risk: the model may claim comprehensive coverage when it has only analyzed surface-level policy text, missing emergent failure modes from tool interactions, multi-turn state drift, or adversarial inputs. Guardrail: always pair this prompt with the Escalation Policy Testing Harness Prompt to validate findings against simulated edge cases, and require human review of the failure mode inventory before closing any gaps.
Copy-Ready Prompt Template
A copy-ready template for analyzing an escalation policy to produce a structured failure mode inventory with root causes, impact assessments, and mitigation recommendations.
This template is designed to be dropped into your AI reliability workflow. It instructs the model to act as an AI Reliability Engineer and systematically decompose a provided escalation policy into a comprehensive failure mode inventory. The prompt enforces coverage across all major failure categories—false negatives, false positives, boundary ambiguity, state corruption, and more—and requires concrete production manifestations and evidence for each finding. Use this as your starting point before adding domain-specific constraints or integrating it into an automated evaluation harness.
markdownYou are an AI Reliability Engineer. Analyze the following escalation policy for failure modes. Produce a structured failure mode inventory with root causes, impact assessments, and mitigation recommendations. Cover all failure categories listed below. For each failure mode, explain how it would manifest in production and what evidence would indicate its occurrence. **Escalation Policy to Analyze:** [ESCALATION_POLICY_TEXT] **Required Failure Categories to Cover:** [FAILURE_CATEGORIES] **Output Schema:** Return a JSON object with a single key "failure_modes" containing an array of objects. Each object must have the following fields: - "failure_mode_id": string (unique slug, e.g., "FN_MISSED_PII") - "category": string (must match one of the provided failure categories) - "description": string (concise description of the failure) - "root_causes": array of strings (underlying reasons this failure occurs) - "production_manifestation": string (how an operator would observe this failure in a live system) - "evidence_indicators": array of strings (logs, metrics, or alerts that would signal this failure) - "impact_assessment": string (severity and scope of the impact: Critical, High, Medium, Low) - "mitigation_recommendations": array of strings (concrete steps to prevent, detect, or recover from this failure) **Constraints:** - Do not invent failure modes not plausibly supported by the provided policy text. - If a failure category is not applicable, state "No plausible failure modes identified for this category" and do not fabricate entries. - For each failure mode, the evidence indicators must be observable in a standard production logging and monitoring stack. - Prioritize failures that would lead to user harm, regulatory violation, or significant business impact.
To adapt this template, replace the [ESCALATION_POLICY_TEXT] placeholder with the exact policy document, system prompt excerpt, or configuration file you are reviewing. The [FAILURE_CATEGORIES] placeholder should be replaced with a bulleted list of categories relevant to your domain, such as False Negative Escalations, False Positive Escalations, Threshold Boundary Ambiguity, Multi-Turn State Corruption, Tool-Authorization Bypass, and Injection-Induced Escalation Suppression. After running the prompt, validate the output JSON against the schema programmatically. For high-stakes policies in regulated environments, always route the generated failure mode inventory to a human reliability engineer for review and prioritization before accepting it as a complete risk assessment.
Prompt Variables
Required inputs for the Escalation Policy Failure Mode Analysis Prompt. Each placeholder must be populated before the prompt can produce a reliable failure mode inventory.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[ESCALATION_POLICY_TEXT] | The full escalation policy document to analyze for failure modes | Escalation Policy v2.3: All transactions above $10,000 require manager approval. Critical severity incidents must escalate within 5 minutes. | Must be non-empty string. Minimum 50 characters. Reject if only a URL or file reference without inline text. |
[SYSTEM_CONTEXT] | Description of the production system where the policy operates, including tool access, user roles, and deployment environment | Payment processing agent with access to refund API, customer database, and Slack notification tools. Deployed in AWS us-east-1 with 3 human reviewers on-call. | Must include at least one tool or capability boundary. Null allowed if policy is system-agnostic, but failure mode coverage will degrade. |
[FAILURE_CATEGORIES] | Taxonomy of failure mode categories to structure the analysis | Silent escalation failure, false positive escalation, escalation delay, incorrect routing, policy ambiguity exploitation, context loss during handoff | Must be a list of 3-10 categories. Each category must be distinct. Reject categories that overlap by more than 50% in definition. |
[PRIOR_KNOWN_FAILURES] | Previously observed escalation failures to seed the analysis and avoid redundant findings | 2024-11-03: Refund over $10k processed without approval due to currency conversion edge case. 2024-12-15: Critical alert escalated to off-duty reviewer. | Null allowed for first-run analysis. If provided, each entry must include date and failure description. Duplicate detection check against new findings required. |
[RISK_TOLERANCE_THRESHOLD] | Organization-specific risk tolerance that determines which failure modes are flagged as critical | Critical: failures with regulatory impact or financial loss above $50k. High: failures causing SLA breach. Medium: failures causing manual workaround. | Must define at least two severity levels with concrete thresholds. Reject purely subjective scales like low/medium/high without measurable criteria. |
[OUTPUT_SCHEMA] | Expected structure for each failure mode entry in the output inventory | {"failure_mode_id": "string", "category": "string", "root_cause": "string", "impact_severity": "string", "detection_difficulty": "string", "mitigation": "string"} | Must be valid JSON schema or field list. Each field must have a type annotation. Reject schemas missing root_cause or mitigation fields. |
[CONSTRAINTS] | Boundary conditions limiting the analysis scope, such as excluded scenarios or maximum output size | Exclude failure modes related to network outages. Maximum 20 failure modes. Do not propose mitigations requiring policy engine rewrite. | Must be explicit exclusions or limits. Null allowed for unrestricted analysis. If provided, each constraint must be testable against output. |
Implementation Harness Notes
How to wire the Escalation Policy Failure Mode Analysis Prompt into an AI reliability workflow with validation, retries, and human review gates.
This prompt is designed to run as a batch analysis job or an on-demand diagnostic tool, not as a real-time inline check. You feed it a complete escalation policy document and receive a structured failure mode inventory. The primary integration point is a CI/CD pipeline for policy changes, a scheduled reliability review, or a pre-release gate before a new escalation policy ships to production. Do not wire this prompt into a live decision path—it is an offline analysis tool that informs policy improvements, not a runtime safety net.
Model choice and configuration: Use a model with strong reasoning capabilities and a large context window (e.g., GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro). Set temperature to 0.1–0.2 for consistent structured output. Enable JSON mode or structured output if your provider supports it, mapping directly to the [OUTPUT_SCHEMA] defined in the prompt template. Validation layer: After the model returns the failure mode inventory, run a programmatic validator that checks: (1) every failure mode has a non-empty root_cause, impact_assessment, and mitigation_recommendation field; (2) severity ratings are within the defined enum; (3) the total count of failure modes is non-zero and below a reasonable upper bound (e.g., 50) to catch runaway generation. If validation fails, retry once with the same prompt plus the validation error message appended as a [CONSTRAINTS] update. If the second attempt also fails, flag for human review.
Logging and audit trail: Log every invocation with the policy version hash, the full prompt payload, the raw model output, validation results, and any retry attempts. This is critical because failure mode analysis informs safety-critical policy changes. Store logs in an append-only audit store (e.g., a dedicated S3 bucket or an internal compliance database). Human review gate: The output of this prompt should never auto-apply changes to an escalation policy. Route the validated failure mode inventory to a human reviewer (typically an AI safety engineer or reliability lead) who triages findings, dismisses false positives, and accepts actionable items into the policy improvement backlog. The review interface should display each failure mode with its severity, root cause, and mitigation recommendation, plus an accept/dismiss/edit action.
Integration with policy testing: Pair this prompt with the Escalation Policy Testing Harness Prompt from the same content group. After the failure mode analysis identifies gaps, use the testing harness to generate targeted test scenarios that validate whether mitigations actually close those gaps. What to avoid: Do not run this prompt on every minor policy edit—reserve it for major version changes, pre-release reviews, and scheduled quarterly reliability audits. Do not treat the output as exhaustive; the model may miss novel failure modes that require adversarial red-teaming or production incident postmortems to surface. Always combine automated analysis with human judgment and real-world incident data.
Expected Output Contract
Defines the required fields, types, and validation rules for the structured failure mode analysis output. Use this contract to parse, validate, and store the model response in your escalation policy testing pipeline.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
failure_mode_id | string | Must match pattern FM-XXX where X is a digit. Must be unique within the array. | |
failure_mode_name | string | Must be a concise, descriptive label (5-15 words). Cannot be null or empty. | |
escalation_policy_rule | string | Must reference a specific rule ID or verbatim rule text from the [ESCALATION_POLICY] input. If no specific rule exists, use 'Implicit/Undefined'. | |
root_cause_category | enum | Must be one of: 'Ambiguous Threshold', 'Missing Condition', 'Overly Permissive', 'Overly Restrictive', 'Context Decay', 'Injection Vulnerability', 'Tool Misuse', 'Data Leakage', 'Other'. | |
failure_description | string | Must describe the sequence of events leading to the failure in 2-5 sentences. Must reference specific placeholders from the prompt template if applicable. | |
severity | enum | Must be one of: 'Critical', 'High', 'Medium', 'Low'. 'Critical' requires immediate human review flag. | |
mitigation_recommendation | string | Must propose a concrete change to the [ESCALATION_POLICY] or system prompt. Cannot be a generic statement like 'improve testing'. | |
requires_human_review | boolean | Must be true if severity is 'Critical' or if the mitigation involves policy changes that affect compliance boundaries. |
Common Failure Modes
When using an Escalation Policy Failure Mode Analysis Prompt, these are the most common ways the analysis breaks in production and how to guard against them.
Over-Indexing on Generic Failures
What to watch: The model produces a list of textbook failure modes (e.g., 'network timeout', 'invalid input') without analyzing the specific escalation policy logic, risk thresholds, or tool-authorization rules in your prompt. Guardrail: Always inject the actual escalation policy text as [POLICY_DOCUMENT] and instruct the model to cite specific policy clauses for each failure mode it identifies.
Missing Silent Policy Conflicts
What to watch: The analysis misses failures caused by conflicting instructions, such as a safety policy demanding escalation while a user-experience policy demands seamless autonomy. The model treats each policy in isolation. Guardrail: Add a dedicated analysis pass: 'Identify every pair of policy statements that could conflict under the same input conditions and describe the resulting failure mode.'
Ignoring Multi-Turn State Decay
What to watch: The failure mode analysis assumes a single-turn request. It misses failures where escalation context, risk scores, or prior decisions are lost or contradicted across a long conversation. Guardrail: Explicitly require analysis of 'multi-turn state persistence' as a failure category, testing scenarios where the conversation length exceeds the model's effective context window for policy adherence.
Hallucinated Mitigation Steps
What to watch: The model confidently recommends mitigations that are technically impossible, such as referencing non-existent API parameters, proposing a human review loop with zero latency, or suggesting a tool-call confirmation that the platform doesn't support. Guardrail: Constrain the output with [AVAILABLE_TOOLS] and [PLATFORM_CONSTRAINTS] schemas. Instruct the model to only propose mitigations using defined capabilities.
False Negative on Ambiguity Escalation
What to watch: The analysis fails to identify that the policy's ambiguity-handling rules are themselves ambiguous. For example, 'escalate if uncertain' without defining a measurable uncertainty threshold creates a runtime deadlock. Guardrail: Add a meta-evaluation step: 'For each escalation trigger, determine if the trigger condition is objectively measurable by the system. Flag all triggers that rely on undefined or subjective criteria.'
Catastrophic Forgetting of Edge Cases
What to watch: The model generates a strong analysis of common-path failures but omits low-probability, high-impact edge cases, such as an escalation prompt being triggered by another escalation prompt's output, creating an infinite loop. Guardrail: Prime the analysis with a checklist of high-severity edge-case archetypes (infinite loops, privilege escalation, dual-use tool calls) and require the model to reason about each one explicitly.
Evaluation Rubric
Use this rubric to test output quality before shipping the Escalation Policy Failure Mode Analysis Prompt into your policy review pipeline. Each criterion targets a specific failure mode of the analysis itself.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Failure Mode Coverage | Output identifies at least 5 distinct failure modes for the provided [ESCALATION_POLICY] | Output lists fewer than 3 failure modes or repeats the same mode with different phrasing | Count unique failure modes; check for semantic deduplication using an LLM judge |
Root Cause Specificity | Each failure mode includes a root cause that references a specific policy clause, system constraint, or operational condition | Root causes are generic phrases like 'human error' or 'system failure' without linking to the policy | Parse each root cause; verify it contains a reference to a policy element or system component from [CONTEXT] |
Impact Assessment Completeness | Each failure mode includes impact on users, business operations, and compliance posture | Impact descriptions are missing one or more dimensions or use vague language like 'bad outcomes' | Check for presence of user impact, business impact, and compliance impact keywords in each assessment |
Mitigation Actionability | Each mitigation recommendation includes a specific owner, action, and verification method | Mitigations are aspirational statements without clear ownership or verification steps | Parse mitigation text; confirm presence of an owner noun, an action verb, and a verification phrase |
Severity Rating Consistency | Severity ratings follow the defined [SEVERITY_SCALE] and are consistent across similar failure modes | Two failure modes with similar impact receive ratings that differ by more than one level without justification | Pairwise comparison of severity ratings; flag inconsistencies for human review |
No Hallucinated Policies | All referenced policy rules, thresholds, and conditions are present in the provided [ESCALATION_POLICY] input | Output invents policy rules, thresholds, or conditions not present in the input | Extract all policy references; cross-reference against the source [ESCALATION_POLICY] text using string matching |
Output Schema Validity | Output is valid JSON matching the [OUTPUT_SCHEMA] without missing required fields | Output is malformed JSON, missing required fields, or contains extra untyped fields | Validate against the JSON schema; reject on parse error or missing required fields |
Edge Case Consideration | Output includes at least one failure mode triggered by boundary conditions, high load, or adversarial inputs | All failure modes describe only happy-path degradation scenarios | Scan failure mode descriptions for keywords: boundary, overload, adversarial, edge, spike, or threshold |
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 prompt and a single escalation policy document. Remove structured output requirements initially—let the model return free-text failure modes. Use a lightweight eval: count distinct failure modes and check that each has a root cause and impact.
codeAnalyze [ESCALATION_POLICY] for failure modes. For each failure mode, describe what breaks, why it breaks, and the blast radius.
Watch for
- Overly broad failure modes that lack specific triggers
- Missing blast radius or impact assessment
- Model inventing failure modes not present in the policy

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