zeroclaw-labs/zeroclaw · error

{entry_path}.default_base duplicates the list's default_base

Error message

{entry_path}.default_base duplicates the list's default_base entry

What it means

Error "{entry_path}.default_base duplicates the list's default_base entry" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-config/src/schema.rs:15524

    ///
    /// A serialized Matrix event has fixed JSON, message, and relation
    /// overhead in addition to UTF-8 source text. Keeping this floor avoids
    /// accepting a budget that cannot contain even a one-scalar event.
    pub fn effective_message_max_bytes(&self) -> usize {
        self.message_max_bytes.max(MATRIX_MIN_MESSAGE_MAX_BYTES)
    }

    /// Validate the order-independent tool argument display policy.
    pub fn validate_stream_tool_arguments(&self) -> Result<()> {
        let mut saw_defaults = false;
        let mut tools = std::collections::HashSet::new();

        for (index, entry) in self.stream_tool_arguments.iter().enumerate() {
            let entry_path = format!("stream_tool_arguments[{index}]");
            match entry {
                StreamToolArgumentEntry::Defaults { .. } => {
                    if saw_defaults {
                        anyhow::bail!(
                            "{entry_path}.default_base duplicates the list's default_base entry"
                        );
                    }
                    saw_defaults = true;
                }
                StreamToolArgumentEntry::Tool {
                    tool,
                    include,
                    exclude,
                    ..
                } => {
                    if tool.is_empty() || tool.trim() != tool {
                        anyhow::bail!(
                            "{entry_path}.tool must be a non-empty exact tool name without surrounding whitespace"
                        );
                    }
                    if !tools.insert(tool.as_str()) {
                        anyhow::bail!("{entry_path}.tool duplicates the rule for tool '{tool}'");

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Remove the duplicate default_base entry; keep a single default_base for the list.

When it happens

Trigger: Thrown at crates/zeroclaw-config/src/schema.rs:15524 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/6b2ea6033bdbe2f3. Report an issue: GitHub.