{"record":{"id":"6e8289b4ed727d29","repo":"tinyhumansai/openhuman","slug":"ingest-document-missing-required-field-title","errorCode":null,"errorMessage":"ingest_document: missing required field `title`","messagePattern":"ingest_document: missing required field `title`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/query/ingest_document.rs","lineNumber":65,"sourceCode":"                    \"type\": \"string\",\n                    \"description\": \"Optional URL or pointer back to the original source.\"\n                },\n                \"owner\": {\n                    \"type\": \"string\",\n                    \"description\": \"Optional account/user this content belongs to. Used for owner-scoped queries and attribution. Defaults to empty (unowned/agent-global).\"\n                }\n            },\n            \"required\": [\"title\", \"body\", \"source_id\"]\n        })\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][memory_tree] ingest_document invoked\");\n\n        let title = args\n            .get(\"title\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"ingest_document: missing required field `title`\"))?\n            .to_string();\n        let body = args\n            .get(\"body\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"ingest_document: missing required field `body`\"))?\n            .to_string();\n        let source_id = args\n            .get(\"source_id\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"ingest_document: missing required field `source_id`\"))?\n            .trim()\n            .to_string();\n        let provider = args\n            .get(\"provider\")\n            .and_then(|v| v.as_str())\n            .unwrap_or(\"agent\")\n            .to_string();\n        let source_ref = args","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/query/ingest_document.rs#L47-L83","documentation":"Field-level validation in the ingest_document tool's execute: the `title` argument is absent or not a string. The schema requires title, body and source_id; this is the first of the three sequential guards and fires before any memory write, so nothing was ingested.","triggerScenarios":"Thrown at src/openhuman/memory/query/ingest_document.rs:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include a non-empty \"title\" string for the document","Verify the whole required set (title, body, source_id) is present"],"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-14T00:17:10.932Z"}