{"record":{"id":"5e028efe669f1d7e","repo":"openai/codex","slug":"expected-example-to-not-match-rule-rule-exam","errorCode":null,"errorMessage":"expected example to not match rule `{rule}`: {example}","messagePattern":"expected example to not match rule `(.+?)`: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"codex-rs/execpolicy/src/error.rs","lineNumber":43,"sourceCode":"pub enum Error {\n    #[error(\"invalid decision: {0}\")]\n    InvalidDecision(String),\n    #[error(\"invalid pattern element: {0}\")]\n    InvalidPattern(String),\n    #[error(\"invalid example: {0}\")]\n    InvalidExample(String),\n    #[error(\"invalid rule: {0}\")]\n    InvalidRule(String),\n    #[error(\n        \"expected every example to match at least one rule. rules: {rules:?}; unmatched examples: \\\n         {examples:?}\"\n    )]\n    ExampleDidNotMatch {\n        rules: Vec<String>,\n        examples: Vec<String>,\n        location: Option<ErrorLocation>,\n    },\n    #[error(\"expected example to not match rule `{rule}`: {example}\")]\n    ExampleDidMatch {\n        rule: String,\n        example: String,\n        location: Option<ErrorLocation>,\n    },\n    #[error(\"starlark error: {0}\")]\n    Starlark(StarlarkError),\n}\n\nimpl Error {\n    pub fn with_location(self, location: ErrorLocation) -> Self {\n        match self {\n            Error::ExampleDidNotMatch {\n                rules,\n                examples,\n                location: None,\n            } => Error::ExampleDidNotMatch {\n                rules,","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/execpolicy/src/error.rs#L25-L61","documentation":"Error \"expected example to not match rule `{rule}`: {example}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/execpolicy/src/error.rs:43 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}