{"record":{"id":"338cbf91ab1cd6bd","repo":"openai/codex","slug":"failed-to-update-in-memory-rules-source","errorCode":null,"errorMessage":"failed to update in-memory rules: {source}","messagePattern":"failed to update in-memory rules: (.+?)","errorType":"exception","errorClass":"ExecPolicyUpdateError","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/exec_policy.rs","lineNumber":267,"sourceCode":"        source: std::io::Error,\n    },\n\n    #[error(\"failed to parse rules file {path}: {source}\")]\n    ParsePolicy {\n        path: String,\n        source: codex_execpolicy::Error,\n    },\n}\n\n#[derive(Debug, Error)]\npub enum ExecPolicyUpdateError {\n    #[error(\"failed to update rules file {path}: {source}\")]\n    AppendRule { path: PathBuf, source: AmendError },\n\n    #[error(\"failed to join blocking rules update task: {source}\")]\n    JoinBlockingTask { source: tokio::task::JoinError },\n\n    #[error(\"failed to update in-memory rules: {source}\")]\n    AddRule {\n        #[from]\n        source: ExecPolicyRuleError,\n    },\n}\n\npub(crate) struct ExecPolicyManager {\n    policy: ArcSwap<Policy>,\n    update_lock: Semaphore,\n}\n\npub(crate) struct ExecApprovalRequest<'a> {\n    pub(crate) command: &'a [String],\n    pub(crate) approval_policy: AskForApproval,\n    pub(crate) permission_profile: PermissionProfile,\n    pub(crate) environment_policy: Option<&'a RequirementsExecPolicy>,\n    pub(crate) windows_sandbox_level: WindowsSandboxLevel,\n    pub(crate) sandbox_permissions: SandboxPermissions,","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/exec_policy.rs#L249-L285","documentation":"Error \"failed to update in-memory rules: {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/exec_policy.rs:267 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the rules update; check the underlying error for the in-memory rules engine."],"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"}