{"record":{"id":"53e560975c4053ee","repo":"tinyhumansai/openhuman","slug":"missing-id-parameter-for-resume-action","errorCode":null,"errorMessage":"Missing 'id' parameter for resume action","messagePattern":"Missing 'id' parameter for resume action","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/system/schedule.rs","lineNumber":147,"sourceCode":"            }\n            \"pause\" => {\n                if let Some(blocked) = self.enforce_mutation_allowed(action) {\n                    return Ok(blocked);\n                }\n                let id = args\n                    .get(\"id\")\n                    .and_then(|value| value.as_str())\n                    .ok_or_else(|| anyhow::anyhow!(\"Missing 'id' parameter for pause action\"))?;\n                Ok(self.handle_pause_resume(id, true))\n            }\n            \"resume\" => {\n                if let Some(blocked) = self.enforce_mutation_allowed(action) {\n                    return Ok(blocked);\n                }\n                let id = args\n                    .get(\"id\")\n                    .and_then(|value| value.as_str())\n                    .ok_or_else(|| anyhow::anyhow!(\"Missing 'id' parameter for resume action\"))?;\n                Ok(self.handle_pause_resume(id, false))\n            }\n            other => Ok(ToolResult::error(format!(\n                    \"Unknown action '{other}'. Use create/add/once/list/get/cancel/remove/pause/resume.\"\n                ))),\n        }\n    }\n}\n\nimpl ScheduleTool {\n    fn enforce_mutation_allowed(&self, action: &str) -> Option<ToolResult> {\n        if !self.security.can_act() {\n            return Some(ToolResult::error(format!(\n                \"[policy-blocked] Security policy: read-only mode, cannot perform '{action}'\"\n            )));\n        }\n\n        if !self.security.record_action() {","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/system/schedule.rs#L129-L165","documentation":"The resume action passed mutation approval but args lack the job 'id' string; fires before the pause/resume handler runs.","triggerScenarios":"Thrown at src/openhuman/tools/impl/system/schedule.rs:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the \"id\" of the job to resume"],"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-14T05:17:10.506Z"}