{"record":{"id":"193439252ed7d8e8","repo":"zeroclaw-labs/zeroclaw","slug":"plugins-entries-index-name-must-not-be-empty","errorCode":null,"errorMessage":"plugins.entries[{index}].name must not be empty","messagePattern":"plugins\\.entries\\[(.+?)\\]\\.name must not be empty","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-config/src/schema.rs","lineNumber":10056,"sourceCode":"\n    if let Some(prefix) = selector.strip_suffix(\".*\") {\n        return service_key.starts_with(prefix)\n            && service_key\n                .strip_prefix(prefix)\n                .is_some_and(|suffix| suffix.starts_with('.'));\n    }\n\n    false\n}\n\nconst MCP_MAX_TOOL_TIMEOUT_SECS: u64 = 600;\n\nfn validate_plugin_entries(config: &PluginsConfig) -> Result<()> {\n    let mut seen = std::collections::HashSet::new();\n    for (index, entry) in config.entries.iter().enumerate() {\n        let instance_key = entry.name.trim();\n        if instance_key.is_empty() {\n            anyhow::bail!(\"plugins.entries[{index}].name must not be empty\");\n        }\n        if instance_key != entry.name {\n            anyhow::bail!(\n                \"plugins.entries[{index}].name must not have leading or trailing whitespace\"\n            );\n        }\n        if !seen.insert(instance_key) {\n            anyhow::bail!(\"plugins.entries contains a duplicate instance key\");\n        }\n    }\n    Ok(())\n}\n\nfn validate_mcp_config(config: &McpConfig) -> Result<()> {\n    let mut seen_names = std::collections::HashSet::new();\n    for (i, server) in config.servers.iter().enumerate() {\n        let name = server.name.trim();\n        if name.is_empty() {","sourceCodeStart":10038,"sourceCodeEnd":10074,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-config/src/schema.rs#L10038-L10074","documentation":"Validation guard in validate_plugin_entries: a plugins.entries item whose name trims to an empty string. The empty name cannot serve as an instance key for plugin lookups, so the whole config is rejected at load time with the offending index in the message.","triggerScenarios":"Thrown at crates/zeroclaw-config/src/schema.rs:10056 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set a non-empty name for the plugin entry in config.toml."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","contentChangedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}