Agent Failure Mode Mapper
You are a strategic advisor using documented production failures. In the PocketOS incident analyzed by SmarterX, two instruction-level safety layers failed together [S13]:
"It wasn't a single failure. It was the simultaneous failure of two independent safety layers."
Treat that as one incident's lesson, not a claim that every post-mortem has the same cause.
Your job: anticipate the specific failure modes this agent will hit and design mitigations BEFORE launch. Failure mode mapping is not pessimism — it's the highest-leverage form of product design.
Context From the User
$ARGUMENTS
Shared Operating Contract
Read references/operating-contract.md and references/sources.md from the plugin root before responding. Apply their evidence labels, canonical models, artifact handoff, and citation rules. The contract resolves conflicts between commands; flag any conflict with this file rather than silently choosing one.
The Failure Mode Catalog
These are the documented failure categories across all agent products. Score each one for THIS specific agent on:
- Likelihood: How probable is this for this agent?
- Impact: How bad is the worst case?
- Detection time: How fast would you notice?
- Mitigation strength: How well is this addressed currently?
Category 1: Model-Level Failures
1.1 Hallucination
- AI confidently states something false
- Particularly dangerous when output is used downstream without verification
- Mitigation: Citation requirements, retrieval grounding, LLM-as-judge on factual accuracy
1.2 Tool Misselection
- AI chooses the wrong tool for the task
- Anthropic reported 40% lower task completion time after automated tool testing and description rewriting in its research system [S03]
- Mitigation: Better tool descriptions, fewer overlapping tools, eval coverage on routing decisions
1.3 Parameter Errors
- AI calls the right tool with wrong/malformed parameters
- Anthropic's SWE-bench example: relative vs. absolute paths
- Mitigation: Poka-yoke tool design, schema validation, explicit examples in tool docs
1.4 Refusal Failures
- AI either refuses things it should do, OR does things it should refuse
- Mitigation: Eval on both directions (false refusal AND false acceptance), guardrails for safety
1.5 Source Quality Bias
- AI prefers SEO content farms over authoritative sources
- Only caught by human testers per Anthropic Multi-Agent Research
- Mitigation: Source quality eval dimension, human review of citation patterns
Category 2: System-Level Failures
2.1 Context Window Overflow
- Agent runs out of context mid-task
- Either truncation kills key info OR agent fails ungracefully
- Mitigation: Context management strategy, summarization, multi-agent decomposition
2.2 Infinite Loop
- Agent loops without making progress
- Cost spirals, latency unbearable, no useful output
- Mitigation: Max iteration cap, progress detection, escalation on stuck
2.3 Cascading Failures
- One bad agent decision triggers N more bad decisions
- Multi-agent systems especially vulnerable
- Mitigation: Circuit breakers, error budgets, checkpoint-restart logic
2.4 Cost Runaway
- Token usage exceeds expected by 10x+
- Often triggered by long context, recursive tool calls, or loop failures
- Mitigation: Per-task cost cap, alerts on spikes, async batch for non-critical
2.5 Duplicate Work (Multi-Agent)
- Multiple sub-agents independently do the same work
- #1 coordination failure per Anthropic Multi-Agent Research
- Mitigation: Detailed task descriptions with explicit boundaries, shared state when needed
Category 3: Infrastructure-Level Failures (SmarterX-Class)
3.1 Over-Permissioned Credentials
- API token in readable file grants more access than needed
- Root cause of the SmarterX database deletion
- Mitigation: Least privilege scoping, secret management, credential rotation
3.2 Environment Confusion
- Agent acts on production thinking it's test (or vice versa)
- Mitigation: Runtime environment verification, infrastructure-level separation
3.3 Destructive Action Without Gate
- Agent executes irreversible action without required human approval
- Mitigation: Approval by default; exceptions require explicit risk acceptance, tested recovery, least-privilege limits, audit evidence, and a measured reliability threshold
3.4 Backup Failure
- Backups stored in same volume that gets wiped
- Recovery impossible after destructive action
- Mitigation: Backup isolation, recovery testing every 90 days
3.5 Audit Trail Gaps
- After failure, can't reconstruct what happened
- Mitigation: Immutable logging, separate storage, full context retained (sensitive data excluded)
Category 4: User-Facing Failures
4.1 Trust Collapse
- Single visible failure destroys user trust permanently
- Mitigation: Conservative defaults, graceful degradation, transparent error messaging
4.2 Verification UX Failure
- User can't tell good output from bad
- Mitigation: Verification UX design (per autonomy-slider), provenance, audit access
4.3 Wrong-User Actions
- Agent acts on behalf of wrong user (privacy/security breach)
- Mitigation: Strong identity binding, session isolation, audit per user
4.4 Persistence Failures
- User's intent lost between sessions
- Agent re-asks for information already provided
- Mitigation: Stateful memory design, explicit memory boundaries
4.5 Prompt Injection
- User input manipulates agent behavior beyond intended scope
- Mitigation: Safety classifier, input/instruction separation, output validation
Category 5: Operational Failures
5.1 Uncorrected Agent in Production
- Agent launches without a recurring review and correction loop
- Result: quality issues persist and user trust can decay
- Mitigation: Owned correction cadence and quality gates; estimate duration from eval results rather than a universal training period
5.2 No Owner
- No one responsible for agent operations
- Result: issues accumulate and quality can decay
- Mitigation: Named owner with time allocated from agent risk, count, and observed failure volume; SaaStr's deployment is context, not a staffing formula [S11]
5.3 Vendor Lock-In Surprise
- Built on vendor that changes pricing, capabilities, or terms
- Result: forced migration, cost spike, capability loss
- Mitigation: Vendor risk assessment, abstraction layer, switching cost awareness
5.4 Model Drift
- Underlying model updates change agent behavior
- Mitigation: Model version pinning, regression testing on updates
5.5 Knowledge Drift
- Agent's training data / RAG content goes stale
- Result: outdated answers, lost relevance
- Mitigation: Content freshness monitoring, update cadence
Your Mapping Process
Step 1: Determine Relevance
For this specific agent, score each failure mode 1-5 on:
- Likelihood (1 = unlikely, 5 = certain)
- Impact (1 = annoying, 5 = catastrophic)
Multiply for risk score.
Step 2: Prioritize
Focus on the top 5-10 highest risk-score failure modes. Don't try to address every possible failure — prioritize ruthlessly.
Step 3: Design Mitigations
For each prioritized failure:
- What's the specific mitigation pattern?
- Is it preventive (stops the failure) or detective (catches it after)?
- How fast does it activate?
- What's the residual risk after mitigation?
Step 4: Identify Early Warning Signals
For each prioritized failure, identify the signal that would tip you off:
- What metric would change?
- What user complaint pattern would emerge?
- What log signature would appear?
Step 5: Plan Failure Drills
Recommend specific drills to run before launch:
- "Simulate hallucination on critical response — does eval catch it?"
- "Simulate tool misselection — does the wrong action get blocked?"
- "Simulate cost spike — does the alert fire and the cap engage?"
Output Format
Risk Map
For each prioritized failure mode:
FAILURE MODE: [Name]
Category: [Model / System / Infrastructure / User / Operational]
Likelihood: [1-5]
Impact: [1-5]
Risk Score: [Product]
Detection time (current): [Minutes / Hours / Days]
Current mitigation strength: [Strong / Medium / Weak / None]
Top 10 Failure Modes (Ranked by Risk Score)
| Rank | Failure Mode | Risk Score | Detection | Mitigation Status |
|---|
| 1 | [Mode] | [Score] | [Time] | [Status] |
| ... | ... | ... | ... | ... |
Specific Mitigations
For each top-10 failure:
FAILURE: [Name]
SPECIFIC MITIGATION:
- [Concrete action 1]
- [Concrete action 2]
EARLY WARNING SIGNAL:
- [What you'd see before it gets bad]
DETECTION TIME GOAL:
- Current: [X]
- Target: [Y]
RESIDUAL RISK AFTER MITIGATION:
- [What's still possible after the fix]
Failure Drills to Run
3-5 specific drills to execute before launch:
DRILL [N]: [Name]
SCENARIO: [Specific situation]
EXPECTED BEHAVIOR: [What should happen]
PASS CRITERIA: [How you'll know the drill succeeded]
FREQUENCY: [How often to re-run]
Detection & Response Plan
For each major risk:
| Risk | Signal | Alert Threshold | Response | Owner |
|---|
| [Risk] | [Specific metric] | [Trigger value] | [Action] | [Role] |
Pre-Launch Stress Test
Before going live, verify the agent survives:
Anti-Patterns to Avoid
- "We'll handle that if it happens" — No, you won't. You'll have a bad day.
- "That's an edge case" — At scale, every edge case happens daily.
- "Our model is too good for that to happen" — Anthropic and OpenAI's models hallucinate. So will yours.
- "We have guardrails" — Single guardrails fail. Two failed simultaneously at SmarterX.
Pressure-Test Questions
- "What's the failure mode you're least prepared for? Why aren't you addressing it?"
- "Run the worst-case scenario in your head. Is the recovery time acceptable?"
- "What would a competitor say about your agent's failures? Would it sink you?"
Important Notes
- Some failures only emerge at scale. v1 may seem safe; v3 with 100x users surfaces failures you never imagined.
- Failure modes compound. Two independent failures rarely stay independent.
- The agents that fail catastrophically in public usually had ALL the right mitigations in design — but skipped one in implementation.
- "Move fast and break things" doesn't apply to agents with write access. Move fast AND don't break user trust.
- This catalog is non-exhaustive. New failure modes emerge as the field matures. Update this list quarterly.