Inferensys

Prompt

Severity Scoring Rubric Prompt for Escalation Triage

A practical prompt playbook for using Severity Scoring Rubric Prompt for Escalation Triage in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, reader, and constraints for the severity scoring rubric prompt.

This prompt is for safety engineers, compliance officers, and trust and safety teams who need a consistent, calibrated method for scoring the severity of guardrail violations before they enter a human review queue. The job-to-be-done is not just classification, but calibrated triage: converting a messy detection event into a structured severity score, a rationale grounded in organizational impact levels, and a recommended priority that downstream systems and human reviewers can act on. The ideal user is someone who already has a guardrail detection system producing violation records and needs to add a repeatable severity layer on top, rather than relying on ad-hoc reviewer judgment that drifts over time and across individuals.

Use this prompt when you have a defined set of organizational impact levels (e.g., 'P0-Critical Safety', 'P1-High Regulatory Risk', 'P2-Policy Violation', 'P3-Minor') and a library of golden-labeled examples to calibrate against. The prompt expects a violation record as input, including the policy that was triggered, the content or action in question, and any surrounding context. It is designed to be run after detection and before the evidence package is assembled for human review, so the severity score can inform routing priority and reviewer assignment. Do not use this prompt for real-time blocking decisions where latency is measured in milliseconds; it is a triage and queue-management tool, not an inline enforcement mechanism. Do not use it without first running calibration tests against your golden set to ensure the rubric's language maps correctly to your organization's risk tolerance.

The primary constraint is inter-rater consistency. The prompt includes calibration instructions that reference your golden-labeled examples, and you should evaluate its output against those examples before deployment. If your organization lacks a labeled severity dataset, invest time in creating one with at least 50–100 examples that span your severity levels and edge cases. The prompt also requires human review for any violation scored as high-severity, and you should log every severity decision with the rationale for auditability. Next, move to the prompt template section to copy the base structure, then to the implementation harness to wire it into your escalation pipeline with validation and retries.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Severity Scoring Rubric Prompt delivers consistent triage and where it introduces risk.

01

Good Fit: Calibrated Severity Assessment

Use when: you need consistent severity scores across a high volume of guardrail violations. Guardrail: Provide a detailed rubric with organizational impact levels and calibrate against a golden set of labeled examples before production use.

02

Bad Fit: Novel or Unprecedented Violations

Avoid when: the violation type has never been seen before and no rubric exists. Risk: The model will force-fit the novel event into an existing severity bucket. Guardrail: Route novel violation types directly to a human for rubric creation before applying automated scoring.

03

Required Inputs

Must have: a detailed severity rubric with clear organizational impact definitions, the full violation record, and any relevant policy text. Guardrail: If any input is missing, the prompt must return an INSUFFICIENT_DATA error instead of a guess.

04

Operational Risk: Inter-Rater Drift

What to watch: The model's severity calibration can drift over time or with new model versions, leading to inconsistent triage. Guardrail: Implement an automated inter-rater consistency check that compares model scores against a static golden dataset on a weekly basis.

05

Operational Risk: Escalation Fatigue

What to watch: A poorly calibrated rubric can cause the model to over-escalate low-severity issues, flooding human review queues. Guardrail: Monitor the distribution of severity scores in production and set alerts for anomalous spikes in high-severity classifications.

06

Operational Risk: Rationale Hallucination

What to watch: The model may generate a plausible-sounding but factually incorrect rationale to justify its severity score. Guardrail: The prompt must force the model to anchor its rationale in specific, quoted evidence from the violation record, not general knowledge.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for scoring the severity of a guardrail violation against a defined organizational rubric, producing a calibrated score, rationale, and impact assessment for escalation triage.

The following prompt template is designed to be copied directly into your prompt management system, IDE, or orchestration layer. It takes a structured violation record and a defined severity rubric as input, then produces a consistent severity score with supporting rationale. The template uses square-bracket placeholders for all dynamic inputs, making it straightforward to parameterize in code. Before using this in production, you must define your own severity levels, impact dimensions, and calibration examples that reflect your organization's risk tolerance and operational realities.

text
You are a severity scoring specialist for an AI safety operations team. Your task is to assign a calibrated severity score to a guardrail violation using the provided rubric.

## INPUT

### Violation Record
[VIOLATION_RECORD]

### Severity Rubric
[RUBRIC_DEFINITION]

### Calibration Examples
[CALIBRATION_EXAMPLES]

## INSTRUCTIONS

1. Analyze the violation against each dimension in the rubric.
2. Consider the context, affected users, potential harm, and reversibility of the violation.
3. Assign a severity score that maps to the defined levels in the rubric.
4. Provide a clear rationale that references specific rubric criteria and evidence from the violation record.
5. If the violation spans multiple severity dimensions, explain how you weighted each.
6. Flag any ambiguity or missing information that prevented a higher-confidence assessment.

## OUTPUT SCHEMA

Return a JSON object with this exact structure:
{
  "severity_score": "string (must match one of the defined rubric levels)",
  "confidence": number (0.0 to 1.0),
  "rationale": "string (explain which rubric criteria were met and why)",
  "impact_assessment": {
    "affected_users": "string (scope and characteristics of affected users)",
    "potential_harm": "string (nature and severity of possible harm)",
    "reversibility": "string (how easily the violation's effects can be undone)"
  },
  "missing_information": ["string (list any gaps that affected scoring)"],
  "escalation_recommendation": "string (immediate_review | standard_review | low_priority | no_escalation)"
}

## CONSTRAINTS

- Do not invent or assume violation details not present in the input.
- If the rubric does not cleanly fit the violation, explain the mismatch rather than forcing a score.
- For violations involving [RISK_LEVEL] risk categories, flag for immediate human review regardless of computed score.
- If confidence is below 0.7, recommend escalation even if the computed score is low.
- Do not include markdown formatting inside JSON string values.

To adapt this template for your environment, start by replacing [RUBRIC_DEFINITION] with your organization's actual severity levels, impact dimensions, and scoring criteria. A well-formed rubric defines clear boundaries between levels (e.g., critical, high, medium, low) with concrete examples of what constitutes each. The [CALIBRATION_EXAMPLES] placeholder should contain 3-5 golden-labeled violation examples that demonstrate correct scoring across your severity spectrum. These examples serve as few-shot anchors that dramatically improve scoring consistency. The [RISK_LEVEL] placeholder in the constraints section should be replaced with your highest-risk categories (e.g., "child safety," "financial fraud," "PII exposure") that always warrant human review regardless of the computed score.

Before deploying this prompt, validate it against a held-out set of 20-50 violations that your team has independently scored. Measure inter-rater agreement between the prompt's scores and your human reviewers using Cohen's kappa or a similar metric. Pay particular attention to boundary cases where violations sit between two severity levels—these are where scoring drift most commonly occurs. If you observe systematic over-scoring or under-scoring, adjust the rubric language and calibration examples rather than adding more instructions to the prompt. After deployment, log every severity score alongside the eventual human adjudication outcome to build a feedback loop for continuous rubric improvement.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Severity Scoring Rubric Prompt. Each placeholder must be populated before the prompt is assembled and sent. Missing or malformed inputs are the most common cause of scoring inconsistency.

PlaceholderPurposeExampleValidation Notes

[VIOLATION_DESCRIPTION]

The full text description of the guardrail violation event that needs severity scoring

User prompt attempted to extract system instructions by requesting a 'developer mode' override with 3 escalating payloads

Required. Must be non-empty string. Reject if null or whitespace-only. Minimum 20 characters to ensure sufficient context for scoring.

[POLICY_REFERENCE]

The specific policy clause, rule ID, or guardrail definition that was violated

Policy: System Prompt Protection v2.1, Rule: SPR-004 (Direct Instruction Extraction Attempts)

Required. Must match a known policy identifier pattern. Validate against active policy registry. Reject if policy ID is deprecated or not found.

[ORGANIZATIONAL_IMPACT_LEVELS]

The defined severity scale with organizational impact definitions for each level

Level 1: Negligible (no user impact), Level 2: Minor (single-user confusion), Level 3: Moderate (brand risk), Level 4: Major (data exposure), Level 5: Critical (system compromise)

Required. Must contain at least 3 levels. Each level must have a label and impact definition. Validate that levels are ordinal and non-overlapping.

[GOLDEN_LABELED_EXAMPLES]

A set of pre-scored violation examples with consensus severity labels for calibration reference

Example A: 'User asked for password reset without verification' → Level 2 (Minor). Example B: 'User injected SQL into search field' → Level 5 (Critical)

Required. Must contain at least 3 examples. Each example must have violation text, assigned severity level, and rationale. Validate that examples span at least 3 severity levels.

[INTER_RATER_CONSISTENCY_THRESHOLD]

The minimum acceptable agreement rate between model scoring and human reviewers, expressed as a decimal

0.85

Required. Must be a float between 0.0 and 1.0. Typical threshold is 0.80-0.90. Reject if below 0.70 as scoring will be too unreliable for production use.

[OUTPUT_SCHEMA]

The exact JSON schema the severity score and rationale must conform to

{"severity_level": "integer", "severity_label": "string", "rationale": "string", "policy_clause_cited": "string", "confidence_score": "float"}

Required. Must be a valid JSON Schema object. Validate that required fields include severity_level, rationale, and confidence_score. Reject schemas missing confidence or evidence fields.

[MAX_RATIONALE_LENGTH]

The maximum character count for the severity rationale to keep review queue items scannable

500

Required. Must be a positive integer. Typical range is 300-800 characters. Reject if below 100 as rationale will be insufficient for human adjudication.

[CONFIDENCE_THRESHOLD_FOR_ESCALATION]

The minimum confidence score below which the severity assessment must be flagged for human review regardless of severity level

0.75

Required. Must be a float between 0.0 and 1.0. Reject if set to 0.0 as it disables escalation. Reject if set to 1.0 as it forces all items to human review.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the severity scoring prompt into a production triage pipeline with validation, retries, and human review gates.

The Severity Scoring Rubric Prompt is not a standalone tool; it is a decision component inside a larger escalation pipeline. The prompt expects a structured violation record as input and returns a calibrated severity score with rationale. To integrate this into an application, you must first ensure the upstream guardrail detection system produces a clean, structured violation object containing at minimum the policy violated, the offending content excerpt, and the surrounding context. The scoring prompt should be called synchronously after detection and before the case is routed to a human review queue, so that the severity score can inform queue priority and SLA assignment.

Wire the prompt into a dedicated scoring service with the following contract: Input is a JSON object with violation_type, policy_id, content_excerpt, context_snippet, and optional user_history_summary. Output must conform to a strict schema: { severity_score: integer (1-5), severity_label: string, rationale: string, impact_level: string, confidence: float }. Implement a post-processing validator that rejects any output where severity_score is outside the 1-5 range, confidence is below a configurable threshold (e.g., 0.7), or required fields are missing. On validation failure, retry once with the same input and an added instruction: Your previous output failed schema validation. Ensure all required fields are present and within specified ranges. If the retry also fails, log the raw output and escalate the case to a high-priority review queue with a SCORING_FAILURE flag so a human can assign severity manually. This prevents a prompt formatting error from silently dropping a high-severity violation into a low-priority queue.

For model choice, use a model with strong instruction-following and structured output capabilities. The prompt relies on the model internalizing a multi-factor rubric (impact, urgency, regulatory exposure, user harm potential) and applying it consistently. If your deployment supports structured output modes (e.g., JSON mode, function calling with a strict schema), use them instead of relying solely on the prompt's formatting instructions. This reduces repair-loop frequency. Log every scoring call with the input violation ID, the raw model output, the validated score, and the retry count. This audit trail is essential for calibrating the rubric over time and for demonstrating consistent severity assignment during compliance reviews. Finally, periodically run a golden-set evaluation: a labeled dataset of violations with known severity scores, run through the prompt, with inter-rater agreement measured against human adjudicators. Drift in agreement signals that the rubric language needs recalibration or that the model's behavior has shifted.

IMPLEMENTATION TABLE

Expected Output Contract

Fields, types, and validation rules for the severity scoring rubric output. Use this contract to parse, validate, and route the model response before it reaches a review queue or audit log.

Field or ElementType or FormatRequiredValidation Rule

severity_score

integer (1-5)

Must be an integer between 1 and 5 inclusive. Reject if float, string, or out of range.

severity_label

string enum

Must match one of: 'Critical', 'High', 'Medium', 'Low', 'Informational'. Case-sensitive exact match required.

impact_level

string enum

Must match one of: 'Organization-wide', 'Business Unit', 'Team', 'Individual', 'None'. Validate against allowed enum set.

rationale_summary

string (<=280 chars)

Must be a non-empty string. Length must not exceed 280 characters. Reject if null or whitespace-only.

violated_policy_ids

array of strings

Each element must be a non-empty string matching a known policy ID pattern (e.g., 'POL-XXX-###'). Reject if array is empty or contains invalid IDs.

evidence_excerpt

string (<=500 chars)

Must contain a direct quote or paraphrase from the source material. Reject if null or if string does not contain at least one quotation mark or citation marker.

confidence_score

float (0.0-1.0)

Must be a float between 0.0 and 1.0 inclusive. Reject if null. If below 0.7, flag for human review regardless of severity.

requires_immediate_escalation

boolean

Must be true if severity_score >= 4 or confidence_score < 0.7. Validate consistency with severity_score and confidence_score; reject on mismatch.

PRACTICAL GUARDRAILS

Common Failure Modes

Severity scoring prompts can drift, over-escalate, or produce inconsistent scores that erode trust in the triage system. These are the most common failure modes and how to guard against them before they reach production.

01

Score Inflation Under Ambiguity

What to watch: The model assigns a high severity score to vague or incomplete violations because it defaults to worst-case assumptions. This floods review queues with false positives and causes reviewer fatigue. Guardrail: Require the prompt to output a confidence field alongside the score. If confidence is below a defined threshold, route to a clarification queue instead of escalating.

02

Policy Drift Over Time

What to watch: The rubric prompt gradually shifts its interpretation of severity levels as new edge cases appear, causing inconsistent scoring between older and newer violations. Guardrail: Pin a golden set of 10-20 labeled violation examples in the system prompt as calibration anchors. Run regression tests against this set on every prompt change.

03

Context Truncation Bias

What to watch: When the violation evidence is near the end of a long conversation, context window limits cause the model to score based on incomplete information, often defaulting to a lower severity. Guardrail: Extract the violation excerpt and surrounding context in a pre-processing step. Pass only the relevant window to the scoring prompt, not the entire conversation.

04

Inter-Rater Inconsistency

What to watch: The same violation receives different severity scores across multiple runs or model versions, undermining trust in the triage pipeline. Guardrail: Run each violation through the scoring prompt 3 times and flag for human review if the scores diverge by more than one severity level. Log variance for model performance monitoring.

05

Severity Level Collapse

What to watch: The model avoids extreme scores (both low and high) and clusters everything in the middle, making the rubric useless for prioritization. Guardrail: Add explicit anchor descriptions in the prompt for each severity level with concrete, non-overlapping examples. Include a forced distribution check in eval: if >80% of scores fall in one bucket, recalibrate.

06

Rationale Hallucination

What to watch: The model generates a plausible-sounding rationale that references policy sections or evidence that don't exist, making the score unverifiable. Guardrail: Constrain the rationale output to require direct quotes from the provided violation evidence and exact policy IDs. Validate that all referenced policy IDs exist in the provided policy document before accepting the score.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the severity scoring prompt against golden-labeled examples before deployment. Each criterion defines a pass standard, a failure signal, and a concrete test method.

CriterionPass StandardFailure SignalTest Method

Severity Score Calibration

Score matches golden label within ±1 level on a 5-point scale for 90% of test cases

Score deviates by 2+ levels or systematic over/under-scoring on specific violation types

Run prompt against 50 golden-labeled violation examples; compute exact match and adjacent-match rates

Impact Level Mapping

Output maps the numeric score to the correct organizational impact level from [IMPACT_LEVELS] without contradiction

Impact level label contradicts the numeric score or references undefined impact tiers

Parse output for impact_level field; validate against allowed enum values; check consistency with severity_score field

Rationale Grounding

Rationale cites at least one specific evidence excerpt from [VIOLATION_CONTEXT] and one policy clause from [POLICY_REFERENCE]

Rationale is generic, omits evidence, or references policies not present in the input

Regex check for quoted text spans from input; substring match against provided policy clauses

Inter-Rater Consistency

Two runs with identical input produce the same severity score and impact level

Score or impact level differs across runs with no change in input

Execute prompt 3 times on same input at temperature=0; assert all severity_score and impact_level values are identical

Edge Case Handling

Prompt assigns correct severity when violation involves multiple policies or ambiguous intent

Prompt defaults to highest severity without analysis or fails to acknowledge ambiguity

Test against 10 multi-policy edge cases; check that rationale field acknowledges conflict before scoring

Refusal on Non-Violation Input

Prompt returns severity_score: 0 or explicit no_violation flag when [VIOLATION_CONTEXT] contains no policy breach

Prompt fabricates a violation or assigns a positive severity score to benign content

Feed 20 benign examples; assert severity_score is 0 or no_violation is true for all

Output Schema Compliance

Response parses as valid JSON matching [OUTPUT_SCHEMA] with all required fields present

Missing required fields, extra untyped fields, or malformed JSON that fails parse

Validate output with JSON Schema validator against the defined schema; reject on parse failure

Confidence Disclosure

Prompt includes a confidence field when severity is borderline between two levels

Confidence is always 1.0 or absent even on ambiguous cases

Check confidence field presence on cases where golden label distribution shows annotator disagreement

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base rubric and a small set of golden-labeled examples. Use a frontier model with a simple system prompt that defines the severity levels and asks for a JSON output with severity_score, rationale, and impact_level. Test against 10-20 hand-labeled violations first.

code
System: You are a severity scoring assistant. Given a guardrail violation record, assign a severity score from 1 (low) to 5 (critical) based on the following impact levels: [IMPACT_LEVELS]. Return JSON with "severity_score", "rationale", and "impact_level".

Violation: [VIOLATION_RECORD]

Watch for

  • Inconsistent scoring across similar violations
  • Over-reliance on surface keywords instead of impact reasoning
  • Missing calibration against human-labeled examples
  • No inter-rater consistency measurement
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.