Skip to main content

JSONRPC_WORKSPACE_EVICTED

Constant JSONRPC_WORKSPACE_EVICTED 

Source
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)

CodeVariantSemantics
-32000ToolTimeoutPer-tool tool_timeout_secs deadline elapsed (Phase 8c U6).
-32001WorkspaceBuildFailedBuild failed, no prior good graph.
-32002WorkspaceStaleExpiredStale-serve window exceeded stale_serve_max_age_hours.
-32003MemoryBudgetExceededAdmission cannot fit even after evicting all non-pinned.
-32004WorkspaceEvictedWorkspace gone mid-rebuild; caller must re-get_or_load.
-32005WorkspaceIncompatibleGraphOn-disk graph cannot be used by this binary (plugin or format mismatch).
-32602InvalidArgumentTool-argument validation failure (JSON-RPC standard).
-32603InternalCatch-all bubbled from sqry_mcp::daemon_adapter execution.
n/aAlreadyRunningAnother sqryd holds the pidfile lock (Task 9 U1). Exit 75.
n/aAutoStartTimeoutstart_detached socket poll timed out (Task 9 U1). Exit 69.
n/aSignalSetuptokio::signal handler install failed (Task 9 U1). Exit 70.