{"record":{"id":"4246bb7b76a6fb7c","repo":"openai/codex","slug":"invalid-decision-0","errorCode":null,"errorMessage":"invalid decision: {0}","messagePattern":"invalid decision: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"codex-rs/execpolicy/src/error.rs","lineNumber":26,"sourceCode":"    pub line: usize,\n    pub column: usize,\n}\n\n#[derive(Debug, Clone, Copy, PartialEq, Eq)]\npub struct TextRange {\n    pub start: TextPosition,\n    pub end: TextPosition,\n}\n\n#[derive(Debug, Clone, PartialEq, Eq)]\npub struct ErrorLocation {\n    pub path: String,\n    pub range: TextRange,\n}\n\n#[derive(Debug, Error)]\npub 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 {","sourceCodeStart":8,"sourceCodeEnd":44,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/execpolicy/src/error.rs#L8-L44","documentation":"Validation error fired when a parsed decision string is not one of the recognized execpolicy decisions (allow/warn/deny). It is a generic guard over caller-supplied policy text; the payload names the offending decision.","triggerScenarios":"Thrown at codex-rs/execpolicy/src/error.rs:26 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only recognized decision names: allow, warn, deny","Check for typos or case mismatches in the policy source","Refer to execpolicy documentation for the accepted decision vocabulary"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}