{"record":{"id":"70ecb3cabb999643","repo":"tinyhumansai/openhuman","slug":"missing-required-array-argument-cards-70ecb3","errorCode":null,"errorMessage":"missing required array argument `cards`","messagePattern":"missing required array argument `cards`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/tools.rs","lineNumber":719,"sourceCode":"            \"properties\": {\n                \"thread_id\": { \"type\": \"string\" },\n                \"cards\": { \"type\": \"array\", \"items\": { \"type\": \"object\" } }\n            },\n            \"required\": [\"thread_id\", \"cards\"]\n        })\n    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::Write\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][threads] task_board_write invoked\");\n        let thread_id = read_required_str(&args, \"thread_id\")?;\n        let cards_val = args\n            .get(\"cards\")\n            .cloned()\n            .ok_or_else(|| anyhow::anyhow!(\"missing required array argument `cards`\"))?;\n        let cards: Vec<TaskBoardCard> = serde_json::from_value(cards_val)\n            .map_err(|e| anyhow::anyhow!(\"thread_task_board_write: invalid cards: {e}\"))?;\n        let board = TaskBoard {\n            thread_id,\n            cards,\n            updated_at: Utc::now().to_rfc3339(),\n        };\n        let saved = TaskBoardStore::new(self.config.workspace_dir.clone())\n            .put(board)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"thread_task_board_write: {e}\"))?;\n        Ok(ToolResult::success(serde_json::to_string(&json!({\n            \"task_board\": saved,\n        }))?))\n    }\n}\n\n/// Delete one thread. **Irreversible** — default-OFF.","sourceCodeStart":701,"sourceCodeEnd":737,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/tools.rs#L701-L737","documentation":"Guard in thread_task_board_write: the required `cards` argument is absent from the tool args (args.get(\"cards\") returned None). The tool schema declares cards as a required array, so a call omitting it fails here before any deserialization.","triggerScenarios":"Thrown at src/openhuman/threads/tools.rs:719 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include a `cards` array in the tool call, even an empty one to clear the board","Ensure the model emits cards as a JSON array of objects"],"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"}