hSUM / docs / 0.1.0-alpha.1 / errors
Error catalog
64 public subcodes across 18 categories. Every hSUM failure — CLI, CLI JSON, and MCP — names one of these and links here.
INVALID_ARGUMENT
The request was rejected before any work began — an input broke a documented contract. · exit 2
NOT_FOUND
The target could not be located in the authorized index or project. · exit 1
EVIDENCE_FORGOTTEN
The cited evidence was deliberately forgotten and cannot be resolved. · exit 1
MODEL_MISSING
A required local embedding model is not configured or not installed. · exit 3
MODEL_INCOMPATIBLE
The local model does not match this index's pinned contract. · exit 3
DOWNLOAD_FAILED
A model download did not complete or failed verification. · exit 3
PERMISSION_DENIED
The operating system or trust policy denied a required file access. · exit 7
RESOURCE_EXHAUSTED
A disk, quota, or memory budget would be exceeded. · exit 7
INDEX_BUSY
Another writer or the model worker is busy — retry after the reported backoff. · exit 4
INDEX_CORRUPT
The index file is not a valid or self-consistent hSUM database. · exit 5
INTEGRITY_FAILED
Internal evidence indexes disagree — a structural integrity check failed. · exit 5
STALE_CURSOR
A pagination cursor no longer matches current index state. · exit 1
TIMEOUT
Bounded work did not finish before its deadline. · exit 4
CANCELLED
The client cancelled or disconnected before completion. · exit 130
SCHEMA_TOO_OLD
The index schema predates this binary and needs migration or upgrade. · exit 5
SCHEMA_TOO_NEW
The index was written by a newer hSUM binary than this one. · exit 5
SOURCE_INVALID
A source file could not be ingested as valid text. · exit 1
INTERNAL
An unexpected internal failure — preserve the request ID and run hsum doctor. · exit 1