{"record":{"id":"6ab0f12db4dfad39","repo":"tinyhumansai/openhuman","slug":"todo-decide-plan-e","errorCode":null,"errorMessage":"todo_decide_plan: {e}","messagePattern":"todo_decide_plan: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/todos/tools.rs","lineNumber":368,"sourceCode":"            \"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}\n\n#[async_trait]\nimpl Tool for TodoRemoveTool {\n    fn name(&self) -> &str {","sourceCodeStart":350,"sourceCodeEnd":386,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/todos/tools.rs#L350-L386","documentation":"Generic wrapper from todo_decide_plan: recording the plan approval/rejection failed after arguments validated. The underlying {e} is the ops error — typically the card id is not a plan card, or the board update failed.","triggerScenarios":"Thrown at src/openhuman/threads/todos/tools.rs:368 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the id refers to a card that carries a plan","Read {e} for whether the failure is card lookup or persistence","Retry transient board-write failures"],"exampleFix":null,"handlingStrategy":"try-catch","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"}