Home / Market / error-patterns

error-patterns

Provides error classification, recovery, and graceful-degradation patterns

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Agent Damage Control

Agent-level error recovery patterns for multi-agent coordination. Maps service-level error categories to agent-level equivalents and defines escalation ladders.

Error Categories

Agent-level error categories extend the service-level taxonomy from error-patterns:

| Agent Category | Service Equivalent | Severity | Recovery | |----------------|-------------------|----------|----------| | AGENT_CRASH | PERMANENT | Critical | Replace agent, reassign tasks | | CONTEXT_OVERFLOW | RESOURCE | Error | Graceful handoff, context shed | | MERGE_CONFLICT | TRANSIENT | Warning | Stop, resolve, resume | | PARTIAL_FAILURE | Mixed | Varies | Triage by sub-category |

Escalation Ladder

Three-tier escalation with clear handoff points:

Tier 1: Agent Self-Recovery
  Agent detects issue, attempts automated recovery
  (retry, context shed, conflict resolution)
        |
        | Fails after 2 attempts
        v
Tier 2: Lead Agent Intervention
  Lead reassigns tasks, spawns replacement agents,
  coordinates resolution across team
        |
        | Cannot resolve or CRITICAL severity
        v
Tier 3: Human Escalation
  Human notified with full context, recommended actions,
  and current state summary

Quick Reference

| Scenario | First Action | |----------|--------------| | Agent stops responding | Check heartbeat, reassign tasks | | Response truncation | Summarize state, create continuation | | File conflicts after parallel work | Stop agents, lead resolves | | Some tasks fail, others succeed | Triage by error category |

Recovery Patterns

Agent Crash Recovery

Context Overflow Handling

Merge Conflict Resolution

Partial Failure Handling

Integration

Reference specific recovery patterns from orchestrator skills:

On agent crash: follow leyline:error-patterns/modules/agent-damage-control.md

Exit Criteria