{"record":{"id":"4a50f96d85215288","repo":"tinyhumansai/openhuman","slug":"unknown-namespace-namespace-run-openhuman","errorCode":null,"errorMessage":"unknown namespace '{namespace}'. Run `openhuman --help` to see available namespaces.","messagePattern":"unknown namespace '(.+?)'\\. Run `openhuman --help` to see available namespaces\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":543,"sourceCode":"    args: &[String],\n    grouped: &BTreeMap<String, Vec<ControllerSchema>>,\n) -> Result<()> {\n    let Some(schemas) = grouped.get(namespace) else {\n        // Reachable only when `grouped` really was filtered — i.e. under\n        // `run`/`serve`/TUI, which build a `CoreContext`. On a plain CLI\n        // invocation there is no ambient context, so nothing is filtered and a\n        // gated namespace is still present; the per-function gate below is what\n        // fires there. Consult the UNFILTERED registry before reporting a typo:\n        // silence reads as a mistyped command and sends the user off debugging\n        // their own command line, which is exactly what `docs/specs/kernel.md`\n        // §3.3 carves the CLI out of. Same reasoning as the retained `mcp` and\n        // `tui` arms above. A namespace that does not exist at all yields `None`\n        // and still reports unknown.\n        crate::core::cli_capability::ensure_capability_blocking(\n            all::sole_capability_for_namespace(namespace),\n            &format!(\"openhuman {namespace}\"),\n        )?;\n        return Err(anyhow::anyhow!(\n            \"unknown namespace '{namespace}'. Run `openhuman --help` to see available namespaces.\"\n        ));\n    };\n\n    if args.is_empty() || is_help(&args[0]) {\n        // If there's a domain-specific CLI handler for this namespace, use it as the default.\n        if let Some(cli_handler) = all::cli_handler_for_namespace(namespace) {\n            return cli_handler(args);\n        }\n        print_namespace_help(namespace, schemas);\n        return Ok(());\n    }\n\n    let function = args[0].as_str();\n\n    // Gate BEFORE resolving the schema, not in the not-found arm below.\n    //\n    // `grouped` comes from `all_controller_schemas()`, which filters through the","sourceCodeStart":525,"sourceCodeEnd":561,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L525-L561","documentation":"Namespace-resolution failure when dispatching a generic controller command from the CLI: the first token is not a registered RPC namespace even after consulting the UNFILTERED registry (so it is not merely a compile/runtime-gated namespace hidden by the ambient CoreContext). Effectively a typo guard for `openhuman <namespace> ...`.","triggerScenarios":"Thrown at src/core/cli.rs:543 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `openhuman --help` to list available namespaces","Check the namespace spelling (it is case-sensitive)","If the namespace is feature-gated, rebuild with the corresponding cargo feature enabled"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}