{"record":{"id":"9ba0a7b82b8d4fa3","repo":"tinyhumansai/openhuman","slug":"missing-required-boolean-argument-approve","errorCode":null,"errorMessage":"missing required boolean argument `approve`","messagePattern":"missing required boolean argument `approve`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/todos/tools.rs","lineNumber":364,"sourceCode":"                \"thread_id\": thread_id_prop(),\n                \"id\": { \"type\": \"string\", \"description\": \"Card id (required).\" },\n                \"approve\": { \"type\": \"boolean\", \"description\": \"Approve or reject the plan (required).\" }\n            },\n            \"required\": [\"id\", \"approve\"]\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][todos] decide_plan invoked\");\n        let id = read_required_str(&args, \"id\")?;\n        let approve = args\n            .get(\"approve\")\n            .and_then(serde_json::Value::as_bool)\n            .ok_or_else(|| anyhow::anyhow!(\"missing required boolean argument `approve`\"))?;\n        let location = board_location(&self.config, &args);\n        let snapshot = ops::decide_plan(&location, &id, approve)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"todo_decide_plan: {e}\"))?;\n        snapshot_to_result(snapshot)\n    }\n}\n\n/// Remove a single card. **Destructive** — default-OFF.\npub struct TodoRemoveTool {\n    config: Arc<Config>,\n}\n\nimpl TodoRemoveTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}","sourceCodeStart":346,"sourceCodeEnd":382,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/todos/tools.rs#L346-L382","documentation":"todo_decide_plan rejected its input: the required 'approve' argument is absent or not a boolean. Guard fires before any plan decision is recorded.","triggerScenarios":"Thrown at src/openhuman/threads/todos/tools.rs:364 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass 'approve' as an explicit JSON boolean true (approve) or false (reject)","Do not use strings like \"yes\"/\"true\""],"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"}