{"record":{"id":"c14a0c4d770d9fa6","repo":"openai/codex","slug":"label-must-match-a-za-z0-9","errorCode":null,"errorMessage":"{LABEL} must match ^[a-zA-Z0-9_-]+$","messagePattern":"(.+?) must match \\^\\[a-zA-Z0-9_-\\]\\+\\$","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":3078,"sourceCode":"        return Ok(());\n    };\n    if namespace.is_empty() {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{LABEL} must not be empty\"),\n        ));\n    }\n    if namespace.trim() != namespace {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{LABEL} must not have leading or trailing whitespace\"),\n        ));\n    }\n    if !namespace\n        .bytes()\n        .all(|byte| byte.is_ascii_alphanumeric() || matches!(byte, b'_' | b'-'))\n    {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{LABEL} must match ^[a-zA-Z0-9_-]+$\"),\n        ));\n    }\n    if namespace.chars().count() > MAX_LEN {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{LABEL} must be at most {MAX_LEN} characters\"),\n        ));\n    }\n    if namespace == \"mcp\"\n        || namespace.starts_with(\"mcp__\")\n        || RESERVED_RESPONSES_NAMESPACES.contains(&namespace)\n    {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{LABEL} uses a reserved namespace: {namespace}\"),\n        ));","sourceCodeStart":3060,"sourceCodeEnd":3096,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L3060-L3096","documentation":"Error \"{LABEL} must match ^[a-zA-Z0-9_-]+$\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:3078 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only letters, digits, underscores, and hyphens in {LABEL}."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}