Skip to main content

Module error

Module error 

Source
Expand description

Daemon-wide error type.

Thin thiserror enum covering every fallible surface of the daemon: config loading, workspace lifecycle, admission control, IPC transport, rebuild dispatch, and lifecycle management (pidfile, signals, auto-start). Tasks 6–10 extend this enum as each surface lands. Every variant maps cleanly to a JSON-RPC error code when the error crosses the IPC boundary (see DaemonError::jsonrpc_code).

§Exit-code mapping (Task 9 U1)

Variants that can be returned before the IPC server binds (lifecycle errors) map to POSIX sysexits.h exit codes via DaemonError::exit_code:

VariantExit codesysexits.h constant
AlreadyRunning75EX_TEMPFAIL
AutoStartTimeout69EX_UNAVAILABLE
SignalSetup70EX_SOFTWARE
Config78EX_CONFIG
Io73EX_CANTCREAT
Other variants70EX_SOFTWARE (default)

Enums§

DaemonError
All daemon-surface error variants.

Constants§

KIND_QUERY_TOO_BROAD
Wire-stable kind tag for the cost-gate rejection on the daemon-hosted MCP path. Mirror of sqry_mcp::error::KIND_QUERY_TOO_BROAD for byte-identical envelopes across the standalone and daemon-hosted MCP transports.

Type Aliases§

DaemonResult
Result alias for daemon operations.