{"record":{"id":"be1206bf36d7fd9c","repo":"tinyhumansai/openhuman","slug":"configured-coordinate-limit-for-key-must-be","errorCode":null,"errorMessage":"Configured coordinate limit for '{key}' must be >= 0","messagePattern":"Configured coordinate limit for '(.+?)' must be >= 0","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser.rs","lineNumber":559,"sourceCode":"                    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\n            .get(key)\n            .and_then(Value::as_i64)\n            .ok_or_else(|| anyhow::anyhow!(\"Missing or invalid '{key}' parameter\"))\n    }","sourceCodeStart":541,"sourceCodeEnd":577,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser.rs#L541-L577","documentation":"validate_coordinate rejects a configured coordinate limit that is itself negative. This is a config sanity check: a negative limit in the browser coordinate config would make every value fail, so the misconfiguration is reported against the config key rather than the caller.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser.rs:559 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the negative limit in the browser coordinate configuration.","Remove the bad override to restore defaults."],"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"}