pub const JSONRPC_WORKSPACE_EVICTED: i32 = -32004;Expand description
JSON-RPC error code: the workspace was evicted or removed between a
rebuild dispatch and its admission / publish commit. Callers must treat
this as a terminal signal on the affected WorkspaceKey — subsequent
dispatches require a fresh get_or_load first.
Source: Amendment 2 §J (same-workspace rebuild serialization), Task 7
Phase 7b1 (runner-role gate + reserve_rebuild eviction check).
§Daemon public JSON-RPC error codes (authoritative table)
| Code | Variant | Semantics |
|---|---|---|
| -32000 | ToolTimeout | Per-tool tool_timeout_secs deadline elapsed (Phase 8c U6). |
| -32001 | WorkspaceBuildFailed | Build failed, no prior good graph. |
| -32002 | WorkspaceStaleExpired | Stale-serve window exceeded stale_serve_max_age_hours. |
| -32003 | MemoryBudgetExceeded | Admission cannot fit even after evicting all non-pinned. |
| -32004 | WorkspaceEvicted | Workspace gone mid-rebuild; caller must re-get_or_load. |
| -32005 | WorkspaceIncompatibleGraph | On-disk graph cannot be used by this binary (plugin or format mismatch). |
| -32602 | InvalidArgument | Tool-argument validation failure (JSON-RPC standard). |
| -32603 | Internal | Catch-all bubbled from sqry_mcp::daemon_adapter execution. |
| n/a | AlreadyRunning | Another sqryd holds the pidfile lock (Task 9 U1). Exit 75. |
| n/a | AutoStartTimeout | start_detached socket poll timed out (Task 9 U1). Exit 69. |
| n/a | SignalSetup | tokio::signal handler install failed (Task 9 U1). Exit 70. |