{"record":{"id":"1fc6931781fb49f5","repo":"tinyhumansai/openhuman","slug":"key-must-be-0","errorCode":null,"errorMessage":"'{key}' must be >= 0","messagePattern":"'(.+?)' must be >= 0","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser.rs","lineNumber":555,"sourceCode":"            .execute_action(\n                action,\n                self.native_headless,\n                Some(playwright_backend::BrowserUrlPolicy {\n                    allowed_domains: self.allowed_domains.clone(),\n                    allow_all: allow_all_browser_domains(),\n                }),\n            )\n            .await\n            .context(\"Playwright browser action failed\")?;\n\n        Ok(ToolResult::success(\n            serde_json::to_string_pretty(&output).unwrap_or_default(),\n        ))\n    }\n\n    fn validate_coordinate(&self, key: &str, value: i64, max: Option<i64>) -> anyhow::Result<()> {\n        if value < 0 {\n            anyhow::bail!(\"'{key}' must be >= 0\")\n        }\n        if let Some(limit) = max {\n            if limit < 0 {\n                anyhow::bail!(\"Configured coordinate limit for '{key}' must be >= 0\")\n            }\n            if value > limit {\n                anyhow::bail!(\"'{key}'={value} exceeds configured limit {limit}\")\n            }\n        }\n        Ok(())\n    }\n\n    fn read_required_i64(\n        &self,\n        params: &serde_json::Map<String, Value>,\n        key: &str,\n    ) -> anyhow::Result<i64> {\n        params","sourceCodeStart":537,"sourceCodeEnd":573,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser.rs#L537-L573","documentation":"validate_coordinate rejects a negative coordinate value for the named argument (e.g. x/y in click or move actions). Screen coordinates cannot be negative, so negative input indicates a model arithmetic or argument-mapping error.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser.rs:555 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass non-negative x/y coordinates within the viewport.","Recompute the target position before the action."],"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"}