This prompt is for reliability engineers, AI operations teams, and platform engineers who own production assistant behavior. It forces the model to act as an adversarial analyst conducting a structured pre-mortem on a proposed policy update. The job-to-be-done is not deployment approval—it is failure mode discovery. You bring the proposed system prompt diff, the current production prompt, and your known failure history. The model returns a ranked register of what can break, how each failure will surface in production, what detection mechanisms exist, and what containment strategies are available. This output informs your go/no-go decision but does not make it.
Prompt
Policy Update Failure Mode Analysis Prompt

When to Use This Prompt
Use this prompt before deploying any system prompt change to identify what can break, how failures will manifest, and what containment strategies should be in place.
Use this prompt when you are changing behavioral rules, role boundaries, refusal policies, tool-use authorization, instruction priority, or any system-level constraint that affects how the assistant responds to users. It is particularly valuable before policy migrations that touch multiple behaviors simultaneously, before rolling out a new system prompt version to production traffic, and after an incident where you need to verify that a proposed fix does not introduce new failure modes. The prompt works best when you provide concrete before-and-after policy text, known edge cases from production logs, and the specific deployment environment context. Do not use this prompt for trivial wording changes, for prompts that have no production exposure, or as a substitute for actual canary testing and production monitoring.
The output is a structured failure mode register with severity rankings, not a binary safe/unsafe verdict. You should expect the model to identify failures you have not considered, but you should also expect false positives—the model may flag risks that your specific architecture, tooling, or user base makes irrelevant. Always review the output with engineering judgment. Pair this analysis with your existing regression test suite, canary deployment plan, and rollback procedures. If the analysis surfaces high-severity failures without adequate detection mechanisms, pause the deployment until you have instrumented the necessary observability. This prompt reduces the risk of silent policy regressions but does not eliminate the need for staged rollout and production validation.
Use Case Fit
Where the Policy Update Failure Mode Analysis Prompt delivers reliable pre-mortem value and where it introduces noise, false confidence, or operational risk.
Good Fit: Pre-Deployment Policy Changes
Use when: analyzing a specific, drafted system prompt change before it reaches production. The prompt excels at structured pre-mortems when the proposed diff is available. Guardrail: always provide the exact before/after policy text; abstract descriptions produce vague failure modes.
Bad Fit: Real-Time Incident Triage
Avoid when: you need immediate root cause analysis during an active incident. This prompt is designed for deliberate analysis, not time-sensitive diagnosis. Guardrail: use a separate incident triage prompt for live issues; reserve this for post-incident review or pre-release analysis.
Required Input: Concrete Policy Diff
What to watch: the prompt produces generic, low-value output when given vague change descriptions like 'updated refusal rules.' Guardrail: require the exact old and new system instruction text, or a structured diff with line-level changes, before running the analysis.
Operational Risk: Over-Confidence in Completeness
What to watch: teams treating the generated failure mode list as exhaustive rather than a starting point. The model cannot anticipate novel failure modes outside its training distribution. Guardrail: always supplement automated analysis with human red-team review, especially for safety-critical policy changes.
Bad Fit: Minor Wording Changes
Avoid when: the policy change is cosmetic, such as fixing typos or rephrasing without behavioral impact. The analysis overhead outweighs the value. Guardrail: use a lightweight diff check to classify change severity before deciding whether to run full failure mode analysis.
Required Input: Deployment Context
What to watch: failure modes that are environment-specific get missed when the prompt lacks context about model version, tool access, user population, and traffic patterns. Guardrail: include deployment environment details, model identifier, available tools, and user base characteristics in the analysis input.
Copy-Ready Prompt Template
A reusable prompt template for conducting a structured pre-mortem on system instruction changes before deployment.
This prompt template is designed to be pasted directly into your orchestration layer, evaluation harness, or manual review workflow. It forces the model to act as a reliability engineer conducting a failure mode and effects analysis (FMEA) on a proposed policy update. The template uses square-bracket placeholders for all dynamic inputs, ensuring you can parameterize it for any system prompt change in your pipeline. Before using this template, ensure you have a clear diff between the current and proposed system instructions, an understanding of the deployment environment, and a defined risk tolerance for the product surface this policy governs.
textYou are a senior site reliability engineer specializing in AI system behavior. Your task is to conduct a structured pre-mortem failure mode analysis on a proposed system instruction (policy) update. ## INPUTS [CURRENT_SYSTEM_PROMPT] [PROPOSED_SYSTEM_PROMPT] [DEPLOYMENT_CONTEXT]: Description of the product, user base, tool access, and environment. [RISK_TOLERANCE]: The organization's risk tolerance for this surface (e.g., 'low: safety-critical', 'medium: customer-facing product', 'high: internal tool'). [CONSTRAINTS]: Any specific areas of concern, regulatory requirements, or known brittle behaviors to examine. ## ANALYSIS REQUIREMENTS For each identified failure mode, provide: 1. **Failure Description**: What specifically breaks and under what conditions. 2. **Trigger Conditions**: The user inputs, tool outputs, or conversation states that activate the failure. 3. **Manifestation**: How the failure appears to users, operators, or downstream systems. 4. **Detection Mechanism**: How this failure would be caught in production (e.g., specific metric, log pattern, user report). 5. **Severity Ranking**: Critical, High, Medium, or Low, justified against the provided risk tolerance. 6. **Containment Strategy**: Immediate action to limit blast radius if detected (e.g., feature flag, rollback, circuit breaker). 7. **Mitigation Priority**: P0 (must fix before deploy), P1 (fix soon after deploy), P2 (accept risk, monitor). ## OUTPUT FORMAT Return a JSON object with the following structure: { "analysis_metadata": { "change_summary": "One-sentence summary of the policy change.", "overall_risk_assessment": "Safe to proceed | Proceed with caution | Do not deploy", "critical_failure_modes_count": 0, "top_mitigation_recommendation": "Primary action before deployment." }, "failure_modes": [ { "id": "FM-001", "failure_description": "string", "trigger_conditions": "string", "manifestation": "string", "detection_mechanism": "string", "severity": "Critical | High | Medium | Low", "severity_justification": "string", "containment_strategy": "string", "mitigation_priority": "P0 | P1 | P2" } ] } ## ANALYSIS INSTRUCTIONS - Focus on behavioral regressions, safety policy gaps, instruction conflicts, and multi-turn degradation. - Consider adversarial inputs that exploit ambiguity between the old and new instructions. - Evaluate tool-use authorization changes if the system prompt governs tool access. - Flag any removal of refusal conditions or safety boundaries. - If no critical or high-severity failure modes are found, explicitly state why the change is low-risk.
To adapt this template, replace each square-bracket placeholder with concrete values from your change management pipeline. The [DEPLOYMENT_CONTEXT] should include whether the assistant has tool access, the user population, and the product surface. The [RISK_TOLERANCE] field calibrates the severity rankings—a failure that is 'Medium' for an internal tool may be 'Critical' for a healthcare application. After running the analysis, validate the JSON output against the schema before ingesting it into your release gate. If the overall_risk_assessment returns 'Do not deploy' or any failure mode is ranked Critical with a P0 mitigation, block the release and require human review of the specific failure modes before proceeding.
Prompt Variables
Required inputs for the Policy Update Failure Mode Analysis Prompt. Each variable must be populated before execution to ensure the analysis is grounded in the specific change being evaluated.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[POLICY_CHANGE_DESCRIPTION] | Natural language summary of the proposed system prompt change | Add refusal boundary for medical advice queries while preserving general health information responses | Required. Must be a concrete, scoped description. Reject if vague or exceeds 500 words. |
[CURRENT_SYSTEM_PROMPT] | The active system prompt version before the proposed change | You are a helpful assistant. You provide general information but do not diagnose medical conditions... | Required. Must be the exact deployed prompt text. Validate against production prompt registry for version match. |
[PROPOSED_SYSTEM_PROMPT] | The new system prompt version containing the policy update | You are a helpful assistant. You provide general health information. You must refuse to diagnose, treat, or prescribe... | Required. Must differ from [CURRENT_SYSTEM_PROMPT]. Run diff check before analysis. Reject if identical. |
[DEPLOYMENT_CONTEXT] | Environment, audience, and integration details where the policy will run | Production customer support chatbot, 50k daily users, integrated with Zendesk and internal knowledge base | Required. Must include environment tier, user base, and tool integrations. Null allowed for pre-production analysis only. |
[KNOWN_FAILURE_MODES] | Previously observed failure patterns from past policy changes or similar systems | Over-refusal on adjacent topics, instruction leakage under multi-turn pressure, tone shift to defensive | Optional. If null, analysis relies on general failure taxonomy. Validate entries are from documented incidents, not speculation. |
[CONFIDENCE_THRESHOLD] | Minimum confidence level for the model to assert a failure mode without flagging uncertainty | 0.85 | Required. Must be a float between 0.0 and 1.0. Default 0.80 if not specified. Lower values produce more speculative failure modes. |
[SEVERITY_SCALE] | Custom severity definitions for ranking failure modes | CRITICAL: user harm or legal exposure; HIGH: broken core functionality; MEDIUM: degraded experience; LOW: cosmetic | Optional. If null, use default 4-tier scale. Validate that each tier has a concrete, testable definition. |
[OUTPUT_SCHEMA] | Expected structure for the failure mode analysis output | JSON array of objects with fields: failure_mode, severity, detection_mechanism, containment_strategy, likelihood | Required. Must be a valid JSON Schema or explicit field list. Reject if schema is malformed or missing required fields. |
Implementation Harness Notes
How to wire the Policy Update Failure Mode Analysis prompt into a pre-release review pipeline with validation, logging, and human approval gates.
This prompt is designed to run as a gated pre-mortem step in a policy change management pipeline, not as an ad-hoc chat. The analysis it produces should block or conditionally approve a system prompt rollout. Wire it into your CI/CD or release management system so that every proposed system instruction diff triggers this analysis before it reaches canary or production. The prompt expects a structured diff of the policy change, the current system prompt, and the target deployment environment as inputs. The output is a structured failure mode register that downstream automation and human reviewers can act on.
Integration pattern: When a policy change PR is opened, a pipeline job extracts the diff and current prompt, formats them into the [POLICY_DIFF] and [CURRENT_SYSTEM_PROMPT] placeholders, sets [DEPLOYMENT_CONTEXT] to the target environment (e.g., production-us-east-1, canary-eu), and sends the assembled prompt to a capable reasoning model. Parse the JSON output and validate it against the expected schema: each failure mode must have a severity score, detection mechanism, and containment strategy. If the output fails schema validation, retry once with a repair prompt that includes the validation errors. If it fails again, escalate to a human reliability engineer and block the release.
Human approval gate: Do not auto-approve a policy change based solely on this analysis. Route the parsed failure mode register to a review queue (e.g., a Jira ticket or Slack approval workflow) where an on-call SRE or AI safety engineer must acknowledge each critical or high severity finding before the deployment proceeds. The approval UI should display the failure mode description, severity, and proposed mitigation side by side. Log the full prompt input, raw model output, parsed register, and reviewer decision to an audit trail for post-incident review. Model selection: Use a model with strong reasoning and structured output capabilities (e.g., Claude 3.5 Sonnet, GPT-4o). Avoid smaller or faster models here—this is a safety-critical analysis where thoroughness matters more than latency.
What to avoid: Do not run this prompt on every minor wording change; gate it on diffs that touch behavioral constraints, refusal rules, tool authorization, or instruction priority. Do not treat the model's severity ratings as ground truth—they are advisory inputs to human judgment. Do not skip the schema validation step; malformed JSON in this workflow can silently drop failure modes from the review queue. Finally, ensure the [DEPLOYMENT_CONTEXT] is specific enough that the model can reason about environment-specific risks (e.g., tenant isolation, data residency, model version differences). A vague context like production produces vague analysis.
Expected Output Contract
Defines the structured JSON output schema for the Policy Update Failure Mode Analysis Prompt. Use this contract to validate model responses before downstream consumption.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
analysis_id | string (UUID v4) | Must match regex ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ | |
policy_version_from | string (semver) | Must match regex ^\d+.\d+.\d+$; must differ from policy_version_to | |
policy_version_to | string (semver) | Must match regex ^\d+.\d+.\d+$; must differ from policy_version_from | |
failure_modes | array of objects | Array length >= 1; each object must conform to failure_mode schema below | |
failure_modes[].id | string (kebab-case) | Must match regex ^FM-[a-z0-9-]+$; unique within array | |
failure_modes[].severity | string (enum) | Must be one of: critical, high, medium, low | |
failure_modes[].detection_mechanism | string | Non-empty; must reference a specific observable signal, metric, or log pattern | |
failure_modes[].containment_strategy | string | Non-empty; must describe a concrete rollback, circuit-breaker, or human-escalation action |
Common Failure Modes
Policy updates are high-stakes changes that can silently break production behavior. These failure modes represent the most common ways system prompt changes degrade assistant performance, and the guardrails that catch them before users do.
Silent Behavioral Regression
What to watch: The new policy unintentionally overrides or weakens an existing behavioral rule, causing the assistant to fail on previously working inputs without any explicit error. This is the most common production failure because prompt changes cascade through instruction priority stacks in unexpected ways. Guardrail: Run a behavioral regression test suite comparing old vs. new policy outputs across a golden dataset of known edge cases before deployment. Flag any output divergence that exceeds tolerance thresholds.
Instruction Priority Collapse
What to watch: The updated policy introduces conflicting directives that the model resolves incorrectly at runtime. When system, safety, and task instructions compete without clear priority, the model defaults to whichever instruction appears most recently or most emphatically in the context window. Guardrail: Explicitly number or tag instruction priority tiers in the system prompt. Test conflict scenarios where safety rules, task rules, and user requests collide, and verify the model consistently defers to the correct priority level.
Over-Refusal After Safety Tightening
What to watch: Adding stricter safety or compliance language causes the assistant to refuse legitimate requests that share surface-level vocabulary with disallowed content. The refusal rate spikes on benign inputs, breaking core product functionality. Guardrail: Measure refusal rates across production traffic segments before and after the policy change. Set a maximum acceptable refusal increase threshold, and automatically roll back if legitimate task completion drops below the threshold during canary deployment.
Multi-Turn Policy Degradation
What to watch: The updated policy holds for the first few conversation turns but degrades as the context window fills. Long conversations, session resumptions, or context shifts cause the model to forget or deprioritize the new behavioral rules. Guardrail: Test policy persistence across conversations of varying lengths, including maximum-context scenarios. Inject policy-check probes at turn 1, turn 10, and turn 50 to verify behavioral consistency. Add periodic policy reinforcement statements if degradation is detected.
Cross-Model Policy Breakage
What to watch: A policy tested and validated on one model family fails silently when deployed to a different model or provider. Instruction following behavior, safety sensitivity, and priority resolution vary significantly across model architectures. Guardrail: Maintain a cross-model compatibility matrix and test every policy change against all target deployment models. Document model-specific adaptations required, and gate deployment on passing behavior checks for each model in the production path.
Tool Authorization Gap Introduction
What to watch: The policy update inadvertently removes or weakens tool-use constraints, allowing the assistant to call tools it should not access, or conversely blocks legitimate tool calls that existing workflows depend on. Guardrail: Test every tool-accessible path with the updated policy, including edge cases where tool calls should be blocked, confirmed, or escalated. Validate that tool authorization rules remain intact and that no new tool-access gaps were introduced by the policy change.
Evaluation Rubric
Use this rubric to evaluate the quality of a failure mode analysis before approving a policy update for production. Each criterion targets a specific dimension of completeness, actionability, and safety coverage.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Failure Mode Coverage | Analysis identifies at least one failure mode for each major policy change in [POLICY_DIFF] | Failure modes only cover obvious or single-point failures; no systemic or interaction failures identified | Manual review: map each change in [POLICY_DIFF] to at least one failure mode in the output |
Manifestation Specificity | Each failure mode includes a concrete, observable user-facing symptom or system behavior | Failure modes described only in abstract terms like 'model may behave badly' without specific output examples | Spot-check: for each failure mode, verify the Manifestation field contains a concrete example of model output or system state |
Detection Mechanism Feasibility | Every failure mode has at least one detection mechanism that can be implemented in production monitoring | Detection mechanisms rely on manual user reports or vague 'review outputs' instructions without automation hooks | Automated check: verify each Detection field maps to a loggable event, metric, or eval that can trigger an alert |
Severity Ranking Consistency | Severity rankings follow a consistent rubric based on user harm, data exposure, and reversibility | Critical failures ranked as Low severity or cosmetic issues ranked as Critical without justification | Manual review: compare severity assignments against a predefined severity matrix; flag any assignment more than one level off |
Containment Strategy Completeness | Each High or Critical severity failure mode includes a specific containment action and rollback trigger | Containment strategies are generic like 'monitor and fix' without specific actions or automated triggers | Parse check: verify all rows with Severity=High or Severity=Critical have non-empty Containment and Rollback Trigger fields |
Mitigation Priority Ordering | Mitigation priorities are ordered by severity first, then by detection feasibility, with clear rationale | Priorities appear random or all items marked as P1 without differentiation | Sort validation: confirm output rows are ordered by Severity descending, then by Detection Feasibility; flag unordered outputs |
Dependency and Interaction Analysis | Analysis identifies failure modes that cascade from interactions between multiple policy changes | All failure modes treat each policy change in isolation; no cross-change interaction failures identified | Manual review: check for at least one failure mode that references multiple changes from [POLICY_DIFF] interacting |
Evidence Grounding | Failure mode predictions reference specific policy language or behavioral contracts from [POLICY_DIFF] | Failure modes are speculative without linking to actual policy text or known behavioral patterns | Citation check: verify each failure mode includes a reference to a specific line, rule, or constraint from the input policy diff |
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
Use the base prompt with a single policy change description and no strict output schema. Focus on getting a useful failure mode list without worrying about structured parsing. Replace [POLICY_DIFF] with a plain-text summary of what changed. Skip severity scoring and detection mechanism fields.
Prompt modification
Remove the [OUTPUT_SCHEMA] placeholder and replace it with: Return a bulleted list of potential failure modes with a one-sentence description for each.
Watch for
- Overly broad failure modes that aren't actionable
- Missing concrete detection signals
- Model conflating "what could go wrong" with "what will definitely break"

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