Skip to main content
GitHub

MEMORY

State and context management failures.

The MEMORY module covers errors in how agents store, retrieve, and manage information across interactions. This includes persistent state, retrieval-augmented generation, and context window management.

Categories

STATE

State management failures.

CodeSeverityDescriptionRemediation
MEMORY.STATE.CORRUPTED5State corruption detectedImplement state checksums
MEMORY.STATE.INCONSISTENT4Inconsistent state across componentsUse transactional state updates
MEMORY.STATE.LOST5State was lostImplement state persistence
MEMORY.STATE.STALE3State is outdatedImplement state freshness checks
MEMORY.STATE.OVERFLOW3State size exceeded limitsImplement state pruning

Danger

MEMORY.STATE.CORRUPTED and MEMORY.STATE.LOST are both severity 5 because state loss or corruption can lead to cascading failures across the entire agent workflow.

RETRIEVAL

Memory retrieval failures.

CodeSeverityDescriptionRemediation
MEMORY.RETRIEVAL.NOT_FOUND3Requested memory not foundHandle missing memories gracefully
MEMORY.RETRIEVAL.WRONG_MATCH4Retrieved wrong memoryImprove retrieval precision
MEMORY.RETRIEVAL.OUTDATED3Retrieved outdated memoryImplement memory freshness
MEMORY.RETRIEVAL.INCOMPLETE2Retrieved incomplete memoryStore complete memory records
MEMORY.RETRIEVAL.TOO_MANY2Too many memories retrievedImplement result ranking and filtering

CONTEXT_WINDOW

Context window management failures.

CodeSeverityDescriptionRemediation
MEMORY.CONTEXT_WINDOW.EXCEEDED3Context window exceededImplement context summarization
MEMORY.CONTEXT_WINDOW.FRAGMENTED2Context is fragmentedImplement context consolidation
MEMORY.CONTEXT_WINDOW.PRIORITY_ERROR3Wrong context priorityImprove context prioritization
MEMORY.CONTEXT_WINDOW.DROPPED3Important context was droppedImplement context importance scoring

Note

The CONTEXT_WINDOW category has 4 codes (not 5) because context window issues are a subset of broader memory management. The MEMORY module totals 14 codes across its 3 categories.

Example Diagnosis

{
  "error_code": "MEMORY.RETRIEVAL.WRONG_MATCH",
  "confidence": 0.78,
  "root_cause": "Vector similarity search returned a semantically similar but factually different document, causing the agent to use incorrect context.",
  "suggested_fixes": ["parameter", "prompt"]
}

Next Steps