Agent Failure Mode Catalog (What Can Go Wrong?)

AI SafetyLLM EvaluationRisk AssessmentQuality Assurance

Problem Statement

The project aims to systematically identify, categorize, and assess the failure modes of an LLM agent based on its goals, tools, personas, and prior incidents. The workflow must produce actionable risk insights, including severity and likelihood ratings, detection signals, mitigations, and high‑risk test cases. This supports safer deployment, structured monitoring, and proactive risk reduction.

Steps

1

Ingest Agent Context

INGEST

Collect and parse the agent's goals, tools, user personas, and known incidents. Normalize this information into a structured form suitable for downstream analysis.

2

Brainstorm Failure Modes

EXECUTE

Generate a categorized list of concrete, public-safe failure modes that the agent might encounter based on the provided context. Group failures into logical risk categories such as reasoning errors, tool misuse, or user-misinterpretation issues.

3

Rate Severity and Likelihood

EXECUTE

Assign severity and likelihood scores to each identified failure mode using a consistent rubric. Prioritize high-risk items for deeper analysis.

4

Define Detection Signals

EXECUTE

For each failure mode, enumerate observable signals or telemetry patterns that would help detect the issue in real time or via monitoring pipelines.

5

Draft Mitigations and Guardrails

EXECUTE

Recommend mitigations, guardrails, and design adjustments for each failure mode. Ensure recommendations are constructive and public-safe.

6

Produce High-Risk Test Cases

EXECUTE

For failure modes rated as high-risk, create specific, non-sensitive test cases for evaluation and regression testing.

Prompt Configurations

Failure Mode Analysis Prompt

Model: gpt-4oTemp: 0.4
You are an AI risk analysis assistant. Given the agent's goals, tools, user personas, and known incidents, generate: (1) a categorized list of public-safe and concrete failure modes, (2) severity and likelihood ratings, (3) detection signals, (4) mitigations, and (5) high-risk test cases. Keep tone risk-aware and constructive. Avoid sensitive or harmful scenarios. Do not invent tools or personas beyond the provided details. Organize output clearly by category and maintain consistency across all sections.

Example Inputs/Outputs

Input:

Agent goal: Summarize internal project updates for employees. Tools: Document search, calendar lookup. User personas: project managers, engineers. Known incidents: occasional incorrect attribution of project owners.

Output:

Generated risk report including categories such as factual accuracy issues, tool misalignment, and context-misinterpretation risks. Severity/likelihood ratings assigned, with detection signals like unusually high uncertainty indicators or mismatched document metadata. Mitigations included stricter metadata validation and grounding checks. High-risk test cases focused on updates with ambiguous ownership and overlapping teams.