Skip to main content
GitHub

PERCEPTION

Input processing and understanding failures.

The PERCEPTION module covers errors in how agents receive, parse, and interpret inputs. This includes raw input processing, structured data extraction, and context understanding.

Categories

INPUT

Raw input processing failures.

CodeSeverityDescriptionRemediation
PERCEPTION.INPUT.MALFORMED3Input data is malformed or corruptedValidate input format before processing
PERCEPTION.INPUT.TRUNCATED2Input was truncated due to length limitsImplement chunking or summarization
PERCEPTION.INPUT.ENCODING3Character encoding issues in inputNormalize encoding to UTF-8
PERCEPTION.INPUT.SCHEMA_MISMATCH4Input doesn't match expected schemaValidate against schema before processing
PERCEPTION.INPUT.INJECTION5Potential prompt injection detectedImplement input sanitization

Danger

PERCEPTION.INPUT.INJECTION (severity 5) indicates a potential security threat. Prompt injection attempts should be flagged immediately and blocked before reaching the agent's reasoning layer.

PARSING

Structured data extraction failures.

CodeSeverityDescriptionRemediation
PERCEPTION.PARSING.JSON_INVALID3Failed to parse JSON from inputUse robust JSON parsing with error recovery
PERCEPTION.PARSING.XML_INVALID3Failed to parse XML from inputValidate XML structure
PERCEPTION.PARSING.DATE_FORMAT2Date/time parsing failureNormalize date formats
PERCEPTION.PARSING.NUMBER_FORMAT2Numeric parsing failureHandle locale-specific number formats
PERCEPTION.PARSING.REFERENCE_BROKEN3Broken reference or link in inputValidate references before processing

CONTEXT

Context understanding failures.

CodeSeverityDescriptionRemediation
PERCEPTION.CONTEXT.MISSING4Required context is missingEnsure all required context is provided
PERCEPTION.CONTEXT.STALE3Context is outdated or staleImplement context freshness checks
PERCEPTION.CONTEXT.CONFLICTING4Conflicting information in contextImplement conflict resolution
PERCEPTION.CONTEXT.OVERFLOW3Context exceeds model limitsImplement context compression or summarization
PERCEPTION.CONTEXT.IRRELEVANT2Context includes irrelevant informationImprove context filtering

Example Diagnosis

{
  "error_code": "PERCEPTION.INPUT.SCHEMA_MISMATCH",
  "confidence": 0.85,
  "root_cause": "User input contained a nested array where the schema expected a flat object, causing the agent to misinterpret the data structure.",
  "suggested_fixes": ["guard", "prompt"]
}

Next Steps