tinyhumansai/openhuman · error
unknown namespace ' '. Run `openhuman --help` to see…
Error message
unknown namespace '{namespace}'. Run `openhuman --help` to see available namespaces. What it means
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> ...`.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:543 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/4a50f96d85215288.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:543
args: &[String],
grouped: &BTreeMap<String, Vec<ControllerSchema>>,
) -> Result<()> {
let Some(schemas) = grouped.get(namespace) else {
// Reachable only when `grouped` really was filtered — i.e. under
// `run`/`serve`/TUI, which build a `CoreContext`. On a plain CLI
// invocation there is no ambient context, so nothing is filtered and a
// gated namespace is still present; the per-function gate below is what
// fires there. Consult the UNFILTERED registry before reporting a typo:
// silence reads as a mistyped command and sends the user off debugging
// their own command line, which is exactly what `docs/specs/kernel.md`
// §3.3 carves the CLI out of. Same reasoning as the retained `mcp` and
// `tui` arms above. A namespace that does not exist at all yields `None`
// and still reports unknown.
crate::core::cli_capability::ensure_capability_blocking(
all::sole_capability_for_namespace(namespace),
&format!("openhuman {namespace}"),
)?;
return Err(anyhow::anyhow!(
"unknown namespace '{namespace}'. Run `openhuman --help` to see available namespaces."
));
};
if args.is_empty() || is_help(&args[0]) {
// If there's a domain-specific CLI handler for this namespace, use it as the default.
if let Some(cli_handler) = all::cli_handler_for_namespace(namespace) {
return cli_handler(args);
}
print_namespace_help(namespace, schemas);
return Ok(());
}
let function = args[0].as_str();
// Gate BEFORE resolving the schema, not in the not-found arm below.
//
// `grouped` comes from `all_controller_schemas()`, which filters through theView on GitHub (pinned to 7491200858)