{"record":{"id":"adce28ce167bcd19","repo":"openai/codex","slug":"plugin-resource-path-path-is-outside-package-r","errorCode":null,"errorMessage":"plugin resource path `{path}` is outside package root `{root}`","messagePattern":"plugin resource path `(.+?)` is outside package root `(.+?)`","errorType":"validation","errorClass":"ResolvedPluginError","httpStatus":null,"severity":"error","filePath":"codex-rs/plugin/src/provider.rs","lineNumber":42,"sourceCode":"        environment_id: String,\n        /// Package root URI within that filesystem.\n        root: PathUri,\n    },\n}\n\n/// An inert plugin descriptor whose resources retain their source authority.\n#[derive(Clone, Debug, PartialEq, Eq)]\npub struct ResolvedPlugin {\n    selected_root_id: String,\n    location: ResolvedPluginLocation,\n    manifest_path: PluginResourceLocator,\n    manifest: PluginManifest<PluginResourceLocator>,\n}\n\n/// Failure to construct a resolved plugin with internally consistent resources.\n#[derive(Clone, Debug, Error, PartialEq, Eq)]\npub enum ResolvedPluginError {\n    #[error(\"plugin resource path `{path}` is outside package root `{root}`\")]\n    ResourceOutsideRoot { root: PathUri, path: PathUri },\n}\n\nimpl ResolvedPlugin {\n    /// Creates an environment-owned descriptor from a validated plugin manifest.\n    pub fn from_environment(\n        selected_root_id: String,\n        environment_id: String,\n        root: PathUri,\n        manifest_path: PathUri,\n        manifest: PluginManifest<PathUri>,\n    ) -> Result<Self, ResolvedPluginError> {\n        let manifest_path = environment_resource(&environment_id, &root, manifest_path)?;\n        let manifest = manifest\n            .try_map_resources(|path| environment_resource(&environment_id, &root, path))?;\n        Ok(Self {\n            selected_root_id,\n            location: ResolvedPluginLocation::Environment {","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/plugin/src/provider.rs#L24-L60","documentation":"Error \"plugin resource path `{path}` is outside package root `{root}`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/plugin/src/provider.rs:42 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"}