{"record":{"id":"9d9e62cd998db99c","repo":"openai/codex","slug":"failed-to-deserialize-merged-permissions-profile-w","errorCode":null,"errorMessage":"failed to deserialize merged permissions profile while resolving inheritance: {source}","messagePattern":"failed to deserialize merged permissions profile while resolving inheritance: (.+?)","errorType":"validation","errorClass":"PermissionProfileResolutionError","httpStatus":null,"severity":"error","filePath":"codex-rs/config/src/permissions_toml.rs","lineNumber":149,"sourceCode":"    },\n    #[error(\n        \"permissions profile `{profile_name}` cannot extend unsupported built-in profile `{parent_profile_name}`\"\n    )]\n    UnsupportedBuiltInParent {\n        profile_name: String,\n        parent_profile_name: String,\n    },\n    #[error(\n        \"permissions profile inheritance cycle detected: {}\",\n        cycle.join(\" -> \")\n    )]\n    Cycle { cycle: Vec<String> },\n    #[error(\"failed to serialize permissions profile while resolving inheritance: {source}\")]\n    SerializeProfileToml {\n        #[source]\n        source: toml::ser::Error,\n    },\n    #[error(\n        \"failed to deserialize merged permissions profile while resolving inheritance: {source}\"\n    )]\n    DeserializeProfileToml {\n        #[source]\n        source: toml::de::Error,\n    },\n}\n\nfn merge_permission_profiles(\n    mut parent: PermissionProfileToml,\n    mut child: PermissionProfileToml,\n) -> Result<PermissionProfileToml, PermissionProfileResolutionError> {\n    let merges_network_domains = parent\n        .network\n        .as_ref()\n        .and_then(|network| network.domains.as_ref())\n        .is_some()\n        && child","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/config/src/permissions_toml.rs#L131-L167","documentation":"Error \"failed to deserialize merged permissions profile while resolving inheritance: {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/config/src/permissions_toml.rs:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the inherited permissions profiles so their merge produces a valid profile."],"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"}