{"record":{"id":"7407822eb910af26","repo":"tinyhumansai/openhuman","slug":"ingest-document-missing-required-field-body","errorCode":null,"errorMessage":"ingest_document: missing required field `body`","messagePattern":"ingest_document: missing required field `body`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/query/ingest_document.rs","lineNumber":70,"sourceCode":"                    \"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\n            .get(\"source_ref\")\n            .and_then(|v| v.as_str())\n            .map(|s| s.to_string());\n        let owner = args\n            .get(\"owner\")","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/query/ingest_document.rs#L52-L88","documentation":"Field-level validation in the ingest_document tool's execute: the `body` argument is absent or not a string (title already validated). Schema requires title, body and source_id; fires before any memory write. Note that an empty-string body is currently accepted — only absence/wrong type triggers this.","triggerScenarios":"Thrown at src/openhuman/memory/query/ingest_document.rs:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the document text as the \"body\" string","Check for size truncation that dropped the body field"],"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-14T05:17:10.506Z"}