zeroclaw-labs/zeroclaw · error · anyhow::Error
Configured coordinate limit for
Error message
Configured coordinate limit for '{key}' must be >= 0 What it means
validate_coordinate found the configured maximum for a coordinate axis is itself negative — i.e. the config-derived limit is corrupt/invalid, not the caller's coordinate. The configuration must be fixed before coordinates can be validated against it.
Solutions
- Set the configured coordinate limit for the key to a value >= 0.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/zeroclaw-tools/src/browser.rs:784 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/f180ff2b75bb8006.
Report an issue: GitHub.
Appendix: source
Thrown at crates/zeroclaw-tools/src/browser.rs:784
})
}
#[cfg(not(feature = "browser-native"))]
{
let _ = action;
anyhow::bail!(
"Rust-native browser backend is not compiled. Rebuild with --features browser-native"
)
}
}
fn validate_coordinate(&self, key: &str, value: i64, max: Option<i64>) -> anyhow::Result<()> {
if value < 0 {
anyhow::bail!("'{key}' must be >= 0")
}
if let Some(limit) = max {
if limit < 0 {
anyhow::bail!("Configured coordinate limit for '{key}' must be >= 0")
}
if value > limit {
anyhow::bail!("'{key}'={value} exceeds configured limit {limit}")
}
}
Ok(())
}
fn read_required_i64(
&self,
params: &serde_json::Map<String, Value>,
key: &str,
) -> anyhow::Result<i64> {
params.get(key).and_then(Value::as_i64).ok_or_else(|| {
::zeroclaw_log::record!(
WARN,
::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Reject)
.with_outcome(::zeroclaw_log::EventOutcome::Failure),View on GitHub (pinned to 88bb9c8533)