{"record":{"id":"29bb408e8e72d138","repo":"tinyhumansai/openhuman","slug":"unknown-memory-subcommand-other-run-openhuma","errorCode":null,"errorMessage":"unknown memory subcommand '{other}'. Run `openhuman memory --help`.","messagePattern":"unknown memory subcommand '(.+?)'\\. Run `openhuman memory --help`\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/memory_cli.rs","lineNumber":35,"sourceCode":"\nuse tinymemory_core::ingestion::{MemoryIngestionConfig, MemoryIngestionRequest};\nuse tinymemory_core::store::NamespaceDocumentInput;\n\n/// Entry point for `openhuman memory <subcommand>`.\npub fn run_memory_command(args: &[String]) -> Result<()> {\n    if args.is_empty() || is_help(&args[0]) {\n        print_memory_help();\n        return Ok(());\n    }\n\n    match args[0].as_str() {\n        \"ingest\" => run_ingest(&args[1..]),\n        \"docs\" | \"list\" => run_docs(&args[1..]),\n        \"graph\" | \"graph-query\" => run_graph_query(&args[1..]),\n        \"query\" => run_query(&args[1..]),\n        \"namespaces\" | \"ns\" => run_namespaces(&args[1..]),\n        \"clear\" => run_clear(&args[1..]),\n        other => Err(anyhow::anyhow!(\n            \"unknown memory subcommand '{other}'. Run `openhuman memory --help`.\"\n        )),\n    }\n}\n\n/// Each `openhuman memory <sub>` subcommand and the registered RPC controller\n/// whose surface it duplicates.\n///\n/// The CAPABILITY is deliberately NOT written here — it is read from the\n/// controller registry via [`crate::core::all::capability_for_parts`], so the\n/// single decision recorded at the `push_cap` site in `src/core/all.rs` governs\n/// both the RPC surface and this CLI. A second hand-maintained table would\n/// drift the first time a family tag moves.\nconst SUBCOMMAND_CONTROLLER: &[(&str, &str)] = &[\n    // Full synchronous ingestion — the driver owns chunking and embedding.\n    (\"ingest\", \"doc_ingest\"),\n    // Mandatory core/recall surface: ungated, listed so the table is total.\n    (\"docs\", \"list_documents\"),","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/memory_cli.rs#L17-L53","documentation":"Subcommand dispatch guard for `openhuman memory`: the first token matches none of the memory subcommands (ingest, docs/list, graph/graph-query, query, namespaces, ...). A sentinel validation error naming the offending token; `openhuman memory` with no args or -h prints the help instead.","triggerScenarios":"Thrown at src/core/memory_cli.rs:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `openhuman memory --help` to list valid subcommands","Check the subcommand spelling (e.g. use `docs` or `list`, not `documents`"],"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"}