{"record":{"id":"9cce72d6fd7d0669","repo":"tinyhumansai/openhuman","slug":"missing-plan-parameter","errorCode":null,"errorMessage":"Missing 'plan' parameter","messagePattern":"Missing 'plan' parameter","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/tools/plan_exit.rs","lineNumber":69,"sourceCode":"            \"properties\": {\n                \"plan\": {\n                    \"type\": \"string\",\n                    \"description\": \"Markdown-formatted plan text to hand off.\"\n                }\n            },\n            \"required\": [\"plan\"]\n        })\n    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::None\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        let plan = args\n            .get(\"plan\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'plan' parameter\"))?;\n        let trimmed = plan.trim();\n        if trimmed.is_empty() {\n            return Ok(ToolResult::error(\"`plan` must not be empty\"));\n        }\n        Ok(ToolResult::success(format!(\n            \"{PLAN_EXIT_MARKER}\\n{trimmed}\"\n        )))\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    #[tokio::test]\n    async fn plan_exit_emits_marker() {\n        let tool = PlanExitTool::new();\n        let result = tool","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/tools/plan_exit.rs#L51-L87","documentation":"The plan_exit tool was called without its single required `plan` argument (missing or not a string). The plan text is the whole payload of the handoff this tool performs, so there is nothing to do without it; the schema declares `plan` as required with minLength implied by usage.","triggerScenarios":"Thrown at src/openhuman/agent/tools/plan_exit.rs:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the markdown-formatted plan text as the `plan` string argument"],"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-23T08:17:48.524Z"}