tinyhumansai/openhuman · error
unknown function ' '. Run `openhuman --help`.
Error message
unknown function '{namespace} {function}'. Run `openhuman {namespace} --help`. What it means
Function-resolution failure within a known namespace: `openhuman <namespace> <function>` was invoked but no controller under that namespace registers the named function. Gated functions were already filtered out before this message, so it fires for genuine typos or functions that exist in no build.
Solutions
- Run `openhuman <namespace> --help` to list that namespace's functions
- Check the function name spelling
- If the function belongs to a gated domain, rebuild with the relevant feature enabled
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:583 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/8a8da5648ee51c39.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:583
// *nothing* is filtered, a gated function is still found here, and a check
// placed only in the not-found arm would never execute — the command would
// simply run. Gating the resolved function instead makes this fire on the
// path users actually take, and it stays correct under `run`/`serve` where
// `grouped` genuinely is filtered.
//
// `capability_for_parts` consults the UNFILTERED registry and yields `None`
// for a function registered nowhere, so a genuine typo short-circuits the
// gate and falls through to the unknown-function message below. Keeping the
// two distinguishable is the point: collapsing them would make real typos
// harder to diagnose, which is the failure `docs/specs/kernel.md` §3.3
// carves the CLI out of.
crate::core::cli_capability::ensure_capability_blocking(
all::capability_for_parts(namespace, function).flatten(),
&format!("openhuman {namespace} {function}"),
)?;
let Some(schema) = schemas.iter().find(|s| s.function == function).cloned() else {
return Err(anyhow::anyhow!(
"unknown function '{namespace} {function}'. Run `openhuman {namespace} --help`."
));
};
if args.len() > 1 && is_help(&args[1]) {
print_function_help(namespace, &schema);
return Ok(());
}
// Generic parameter parsing and validation based on schema.
let params = parse_function_params(&schema, &args[1..]).map_err(anyhow::Error::msg)?;
let method = all::rpc_method_from_parts(namespace, function)
.ok_or_else(|| anyhow::anyhow!("unregistered controller '{namespace}.{function}'"))?;
// Same as the explicit `call` path above — any registered controller may
// ultimately drive an orchestrator turn.
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()View on GitHub (pinned to 7491200858)