Skip to main content

Error Codes Reference

Complete reference of all AXAG error codes used in validation, runtime enforcement, and agent communication.

Validation Error Codes

These codes are emitted by static validators and CI lint tools.

CodeSeverityDescription
AXAG-LINT-001ErrorMissing axag-intent on annotated element
AXAG-LINT-002ErrorMissing axag-entity on annotated element
AXAG-LINT-003ErrorMissing axag-action-type on annotated element
AXAG-LINT-004ErrorInvalid axag-action-type value
AXAG-LINT-005ErrorInvalid axag-risk-level value
AXAG-LINT-006WarningHigh/critical risk missing confirmation_required
AXAG-LINT-007WarningWrite/delete missing axag-idempotent declaration
AXAG-LINT-008ErrorOverlapping required and optional parameters
AXAG-LINT-009ErrorInvalid JSON in parameter attribute
AXAG-LINT-010WarningIntent not found in Semantic Manifest
AXAG-LINT-011WarningMissing axag-scope on tenant-sensitive action
AXAG-LINT-012Errorapproval-required without approval-roles

Runtime Error Codes

These codes are returned by AXAG-aware runtimes when contract violations occur.

CodeCategoryHTTP StatusDescription
AXAG_MISSING_PARAMParameter400Required parameter not provided
AXAG_INVALID_TYPEParameter400Parameter value has wrong type
AXAG_OUT_OF_RANGEConstraint400Numeric value outside min/max bounds
AXAG_INVALID_ENUMConstraint400Value not in allowed enum set
AXAG_INVALID_FORMATConstraint400Value doesn't match declared format
AXAG_PRECONDITION_FAILEDPrecondition412Precondition check failed
AXAG_CONFIRMATION_MISSINGSafety428Confirmation required but not provided
AXAG_APPROVAL_MISSINGSafety428Approval required but not provided
AXAG_APPROVAL_INVALIDSafety403Approval from unauthorized role
AXAG_SCOPE_VIOLATIONSecurity403Operation outside declared scope
AXAG_TENANT_BOUNDARYSecurity403Cross-tenant access attempt
AXAG_ROLE_INSUFFICIENTAuthorization403Caller lacks required role
AXAG_INTENT_NOT_FOUNDRouting404Requested intent not in manifest
AXAG_VERSION_MISMATCHCompatibility409Consumer/manifest version incompatible
AXAG_RATE_LIMITEDThrottling429Too many requests for this intent

Error Response Format

{
"error": {
"code": "AXAG_PRECONDITION_FAILED",
"type": "precondition_error",
"message": "Precondition not met: cart must have at least one item",
"details": {
"intent": "cart.begin_checkout",
"failed_precondition": "cart must have at least one item",
"suggestion": "Add items to cart using cart.add_item before beginning checkout"
},
"documentation_url": "https://axag.dev/docs/reference/error-codes#AXAG_PRECONDITION_FAILED"
}
}

Agent Handling Guide

Error CodeAgent Action
AXAG_MISSING_PARAMAdd the missing parameter and retry
AXAG_INVALID_TYPEFix the parameter type and retry
AXAG_OUT_OF_RANGEAdjust value to within bounds and retry
AXAG_PRECONDITION_FAILEDExecute prerequisite action, then retry
AXAG_CONFIRMATION_MISSINGRequest user confirmation, then retry with token
AXAG_APPROVAL_MISSINGRequest approval from authorized role, then retry
AXAG_SCOPE_VIOLATIONDo not retry — operation is out of scope
AXAG_TENANT_BOUNDARYDo not retry — security violation