pub fn broker_error(message: String) -> WorkspaceErrorExpand description
Classify a broker or document string error into the right envelope variant, preserving the
exact message text. Grant and document backends return Result<_, String>, so command sites
call this at the map_err boundary instead of relying on the blanket From<String>, which
would flatten every broker rejection to Other and lose the not-found/denied distinction.