{"record":{"id":"03657bd7d6859d5b","repo":"zeroclaw-labs/zeroclaw","slug":"cli-alias-rename-reserved","errorCode":"cli-alias-rename-reserved","errorMessage":"alias `{$alias}` is reserved and cannot be renamed","messagePattern":"alias `(.+?)` is reserved and cannot be renamed","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/alias_cli/mod.rs","lineNumber":331,"sourceCode":"            Ok(())\n        }\n        Err(RenameError::NotFound(p)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-not-configured\",\n                &[(\"path\", p.as_str())],\n                \"{$path} is not configured\"\n            )\n        ),\n        Err(RenameError::InvalidName(m)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-rename-invalid\",\n                &[(\"message\", m.as_str())],\n                \"invalid new alias: {$message}\"\n            )\n        ),\n        Err(RenameError::Reserved(a)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-rename-reserved\",\n                &[(\"alias\", a.as_str())],\n                \"alias `{$alias}` is reserved and cannot be renamed\"\n            )\n        ),\n        Err(RenameError::PostCondition(m)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-rename-postcondition\",\n                &[(\"message\", m.as_str())],\n                \"rename cascade post-condition failed: {$message}\"\n            )\n        ),\n    }\n}\n","sourceCodeStart":313,"sourceCodeEnd":349,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/alias_cli/mod.rs#L313-L349","documentation":"Error \"alias `{$alias}` is reserved and cannot be renamed\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/alias_cli/mod.rs:331 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not rename reserved aliases such as `default`; create a new alias instead.","Rename a non-reserved alias, or duplicate the config under a new name and delete the old one if allowed."],"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"}