{"record":{"id":"a42e54244e7be9a6","repo":"tinyhumansai/openhuman","slug":"missing-data-parameter","errorCode":null,"errorMessage":"Missing 'data' parameter","messagePattern":"Missing 'data' parameter","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/filesystem/csv_export.rs","lineNumber":150,"sourceCode":"        &self,\n        args: serde_json::Value,\n        _options: ToolCallOptions,\n        context: Option<&ToolExecutionContext>,\n    ) -> anyhow::Result<ToolResult> {\n        self.execute_in_context(args, context).await\n    }\n}\n\nimpl CsvExportTool {\n    async fn execute_in_context(\n        &self,\n        args: serde_json::Value,\n        context: Option<&ToolExecutionContext>,\n    ) -> anyhow::Result<ToolResult> {\n        let data_str = args\n            .get(\"data\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'data' parameter\"))?;\n\n        let filename = args\n            .get(\"filename\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'filename' parameter\"))?;\n\n        let columns: Option<Vec<String>> = args.get(\"columns\").and_then(|v| {\n            v.as_array().map(|arr| {\n                arr.iter()\n                    .filter_map(|item| item.as_str().map(String::from))\n                    .collect()\n            })\n        });\n\n        // Security: check write permission\n        if !self.security.can_act() {\n            return Ok(ToolResult::error(\n                \"[policy-blocked] Action blocked: autonomy is read-only\",","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/filesystem/csv_export.rs#L132-L168","documentation":"Required-parameter guard in CsvExportTool's execute_in_context: the `data` argument (the records to export, passed as a string) is absent or not a string. Fires before filename handling and CSV serialization, so no file was written; supply the data payload to export.","triggerScenarios":"Thrown at src/openhuman/tools/impl/filesystem/csv_export.rs:150 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include `data` as a string containing the CSV rows","Pass properly escaped CSV text if values contain commas/quotes"],"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"}