Skip to content

Error codes ​

Errors have the form AEG-<AREA>-<NNN> and carry a what, a why and a fix:

text
[AEG-CFG-003] Route 'default' references unknown provider 'main'. Declared providers: ['primary']
  Why: One or more fields in aegis.yaml failed schema validation.
  Fix: Review the field errors below and correct the configuration.

In code they are subclasses of aegis_core.errors.AegisError.

Configuration — AEG-CFG ​

CodeWhatFix
AEG-CFG-001Configuration errorCheck aegis.yaml; see the message for the field.
AEG-CFG-002Configuration file not foundaegis init, or pass the right --config.
AEG-CFG-003Validation failed — bad field, unknown provider or provider type, missing model/base_url, unknown guardrail, bad pack option, or an unenforceable stageCorrect the field named in the message.
AEG-CFG-010Secret reference can't be parsed or resolvedUse secret://<backend>/<path>#<key> and make sure the value exists (e.g. the env var is set).
AEG-CFG-011Secret backend not registeredUse env, or register a SecretProvider for the scheme.
AEG-CFG-020Plugin registry errorCheck installed plugins are compatible and correctly packaged.
AEG-CFG-021Two packages declare the same plugin name in one groupUninstall or rename one.
AEG-CFG-022Plugin not found — usually a pack: that isn't installedaegis plugin list; install the pack.

Authentication — AEG-AUTH ​

CodeHTTPWhatFix
AEG-AUTH-001401No valid bearer keySend Authorization: Bearer aeg-… from aegis keys create.
AEG-AUTH-003403Caller isn't on the paused run's approver listResume as a listed approver.

Server — AEG-SRV ​

CodeWhatFix
AEG-SRV-001aegis serve refused: no authenticator and no --no-authCreate keys, or pass --no-auth for local development only.

Providers — AEG-PRV ​

CodeWhatFix
AEG-PRV-001Provider returned an unexpected errorCheck configuration, credentials and model name.
AEG-PRV-002Provider rejected the credentialsUpdate the key; check it hasn't expired.
AEG-PRV-003Provider rate limitBack off, raise your quota, or add another route.
AEG-PRV-004Provider timed outCheck connectivity; raise the timeout.
AEG-PRV-005Saved provider profile not foundaegis provider list / aegis provider add.

Policy lint — AEG-POL ​

CodeWhatFix
AEG-POL-000Config isn't valid YAMLFix the syntax.
AEG-POL-001Pipeline references an undeclared guardrailDeclare it under guardrails: or remove the reference.
AEG-POL-002A guardrail's pack: isn't installedInstall the package that provides it.
AEG-POL-003Egress guard is non-incremental; route will bufferInformational — use an incremental guard if you need true streaming.
AEG-POL-004tool_call / tool_result is set; aegis serve would refuse to startRemove the key; govern tools with the route's tools: and tool_guards:.
AEG-POL-005A provider's endpoint URL encodes a region that contradicts its residency.regionFix the declaration or point at the right regional endpoint.
AEG-POL-006An exporters: entry names a type that isn't installedInstall the exporter's package or fix type.

MCP — AEG-MCP ​

CodeWhatFix
AEG-MCP-001Can't reach or talk to the MCP serverCheck the server URL and that it's running.
AEG-MCP-002A tool-call guard blocked the callReview the arguments against policy.
AEG-MCP-003A tool-result guard blocked the resultReview the tool's output for injection patterns.
AEG-MCP-004Tool not found on the MCP serverCheck the name against the server's tools/list.

RAG — AEG-RAG ​

CodeWhatFix
AEG-RAG-001Vector store or embedder unreachableCheck the connection and that the service is up.
AEG-RAG-002Namespace not foundIndex at least one document into it.
AEG-RAG-003Retrieved content blocked by an injection guardClean the indexed source documents.
AEG-RAG-004Indexing failedCheck the store is writable and the embedder reachable.