{"record":{"id":"ff7792513acd50d9","repo":"openai/codex","slug":"label-must-be-at-most-max-len-characters","errorCode":null,"errorMessage":"{LABEL} must be at most {MAX_LEN} characters","messagePattern":"(.+?) must be at most (.+?) characters","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":3084,"sourceCode":"        ));\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        ));\n    }\n\n    Ok(())\n}\n\nimpl Config {","sourceCodeStart":3066,"sourceCodeEnd":3102,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L3066-L3102","documentation":"Error \"{LABEL} must be at most {MAX_LEN} characters\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:3084 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten {LABEL} to fit under the character cap."],"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"}