Skip to main content
GitHub

Error Taxonomy

10 modules, 31 categories, 154 error codes.

Risicare classifies agent errors using a hierarchical taxonomy designed for AI systems. The taxonomy covers both single-agent failures (perception, reasoning, tool use, memory, output) and multi-agent failures (coordination, communication, orchestration, consensus, resources).

Taxonomy Structure

Module (10)
└── Category (31)
    └── Error Code (154)
        └── Format: MODULE.CATEGORY.CODE

Modules Overview

Quick Reference

ModuleCategoriesCodesFocus
PERCEPTIONINPUT, PARSING, CONTEXT15Input processing, validation, context
REASONINGLOGIC, HALLUCINATION, PLANNING, DECISION20Logic, inference, planning, decisions
TOOLINVOCATION, EXECUTION, RESULT15Tool calling, execution, results
MEMORYSTATE, RETRIEVAL, CONTEXT_WINDOW14State management, retrieval, context window
OUTPUTFORMAT, QUALITY, SAFETY15Formatting, quality, safety
COORDINATIONWORKFLOW, HANDOFF, SYNCHRONIZATION15Workflow, handoffs, synchronization
COMMUNICATIONDELIVERY, CONTENT, ROUTING15Message delivery, content, routing
ORCHESTRATIONLIFECYCLE, SCALING, DELEGATION15Lifecycle, scaling, delegation
CONSENSUSAGREEMENT, CONFLICT, VOTING15Agreement, conflict resolution, voting
RESOURCESACCESS, CONTENTION, QUOTA15Access control, contention, quotas

Error Code Format

TOOL.EXECUTION.TIMEOUT
  │      │        │
  │      │        └── Code (specific error)
  │      └── Category (error type)
  └── Module (system area)

Severity Levels

Each error code has a severity from 1 to 5:

LevelNameDescription
5CriticalSystem failure, data loss, or safety risk
4HighTask failure requiring intervention
3MediumDegraded performance or partial failure
2LowRecoverable issue with minimal impact
1InfoInformational, no action needed

Using Error Codes

In Dashboards

Filter traces by error code:

error_code:TOOL.EXECUTION.TIMEOUT
error_code:TOOL.*  # All TOOL module errors

In Alerts

Create alerts for specific errors:

alert:
  name: "High timeout rate"
  condition: error_code == "TOOL.EXECUTION.TIMEOUT"
  threshold: "> 5% of traces in 5 minutes"

In Fixes

Target fixes at specific errors:

{
  "fix_type": "retry",
  "target_errors": ["TOOL.EXECUTION.TIMEOUT"],
  "config": { "max_retries": 3, "initial_delay_ms": 1000, "exponential_base": 2.0 }
}

Next Steps

Select a module to see all its error codes: