Skip to main content

boot_error_to_cli

Function boot_error_to_cli 

Source
pub fn boot_error_to_cli(workspace_root: &Path, e: BootError) -> CliError
Expand description

Lift a memstead_base::BootError into the typed CLI envelope. The boot seam previously flattened these through anyhow, so the main downcast missed them and every boot failure surfaced as code: INTERNAL with no next step (plenum 2026-08-06/07, expertise 2026-08-07). The typed material lives on memstead_base::BootError::code; this function only wraps it in the CLI’s exit shape. The message is memstead_base::BootError::surface_message verbatim — identical on the MCP server’s boot diagnostics for the same broken workspace.