{"record":{"id":"49d45322630f174a","repo":"zeroclaw-labs/zeroclaw","slug":"cli-alias-create-reserved-default","errorCode":"cli-alias-create-reserved-default","errorMessage":"the `default` agent is reserved and cannot be created","messagePattern":"the `default` agent is reserved and cannot be created","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/alias_cli/mod.rs","lineNumber":110,"sourceCode":"            \"{}\",\n            mta(\n                \"cli-alias-no-such-section\",\n                &[(\"section\", section)],\n                \"no such config section: {$section}\"\n            )\n        ),\n    }\n    Ok(())\n}\n\nfn create_entry(config: &mut Config, section: &str, alias: &str) -> Result<()> {\n    // Shared guarded boundary: refuses the reserved `default` agent here too (an\n    // operator create surface), and delegates unchanged for every other section.\n    // The Reserved rejection is localized via Fluent like the delete/rename guards\n    // below; Invalid (unknown section) keeps its pre-existing bare error.\n    let created = match alias_refs::create_map_key_checked(config, section, alias) {\n        Ok(created) => created,\n        Err(alias_refs::CreateError::Reserved(_)) => bail!(\n            \"{}\",\n            mt(\n                \"cli-alias-create-reserved-default\",\n                \"the `default` agent is reserved and cannot be created\"\n            )\n        ),\n        Err(alias_refs::CreateError::Invalid(msg)) => return Err(anyhow::Error::msg(msg)),\n    };\n    if created {\n        config.mark_dirty(&format!(\"{section}.{alias}\"));\n        println!(\n            \"{}\",\n            mta(\n                \"cli-alias-created\",\n                &[(\"section\", section), (\"alias\", alias)],\n                \"created {$section}.{$alias}\"\n            )\n        );","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/alias_cli/mod.rs#L92-L128","documentation":"Error \"the `default` agent is reserved and cannot be created\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/alias_cli/mod.rs:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a different agent name; `default` is reserved for the built-in agent.","Configure the built-in default agent instead of creating a new one with that name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}