{"record":{"id":"da15bdc1f262b8de","repo":"abhigyanpatwari/GitNexus","slug":"compound-engineering-plugin-component-is-unreadabl","errorCode":null,"errorMessage":"Compound Engineering plugin component is unreadable: {directory}: {exc}","messagePattern":"Compound Engineering plugin component is unreadable: (.+?): (.+?)","errorType":"exception","errorClass":"SandboxError","httpStatus":null,"severity":"error","filePath":"eval/workflow_bench/runtime_mounts.py","lineNumber":342,"sourceCode":"            except OSError as exc:\n                raise SandboxError(f\"Compound Engineering plugin entry is unreadable: {entry.path}: {exc}\") from exc\n            if stat.S_ISLNK(metadata.st_mode):\n                raise SandboxError(f\"Compound Engineering plugin entries must not be symlinks: {entry.path}\")\n            if stat.S_ISDIR(metadata.st_mode):\n                yield from walk(Path(entry.path), relative)\n            elif stat.S_ISREG(metadata.st_mode):\n                yield relative, Path(entry.path)\n            else:\n                raise SandboxError(f\"Compound Engineering plugin entries must be regular files: {entry.path}\")\n\n    for name in _ALLOWED_PLUGIN_DIRS:\n        directory = source / name\n        if not directory.exists():\n            continue\n        try:\n            metadata = directory.lstat()\n        except OSError as exc:\n            raise SandboxError(f\"Compound Engineering plugin component is unreadable: {directory}: {exc}\") from exc\n        if stat.S_ISLNK(metadata.st_mode) or not stat.S_ISDIR(metadata.st_mode):\n            raise SandboxError(f\"Compound Engineering plugin component must be a real directory: {directory}\")\n        yield from walk(directory, PurePosixPath(name))\n\n\ndef _bounded_plugin_bytes(path: Path) -> tuple[bytes, bool]:\n    \"\"\"Read one stable regular file without following a last-component symlink.\"\"\"\n\n    try:\n        before = path.lstat()\n    except OSError as exc:\n        raise SandboxError(f\"Compound Engineering plugin file is unreadable: {path}: {exc}\") from exc\n    if stat.S_ISLNK(before.st_mode) or not stat.S_ISREG(before.st_mode):\n        raise SandboxError(f\"Compound Engineering plugin file must be regular and non-symlink: {path}\")\n    if before.st_size > MAX_CE_PLUGIN_FILE_BYTES:\n        raise SandboxError(f\"Compound Engineering plugin file exceeds the per-file limit: {path}\")\n    descriptor = os.open(path, os.O_RDONLY | getattr(os, \"O_NOFOLLOW\", 0))\n    try:","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/abhigyanpatwari/GitNexus/blob/d540b00184d71a896261ee02670da9a92d59d8f7/eval/workflow_bench/runtime_mounts.py#L324-L360","documentation":"For each name in _ALLOWED_PLUGIN_DIRS (skills, scripts, assets) that exists, the harness lstat's it before walking. OSError on that lstat (other than non-existence, which is skipped) raises this error rather than silently treating the component as missing.","triggerScenarios":"skills/ (or scripts/, assets/) exists per .exists() but lstat fails — typically a transient I/O error, broken NFS handle, or permission boundary at the directory itself.","commonSituations":"Restrictive ACL on a single component directory; container filesystem hiccup; lazy-unmount race.","solutions":["Grant read+execute on each component: `chmod +rX <plugin_dir>/skills <plugin_dir>/scripts <plugin_dir>/assets`.","Move the plugin to a stable local filesystem and re-run.","Re-extract from a clean tarball."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"from pathlib import Path\n\ndef components_lstatable(source: Path) -> bool:\n    for name in (\"skills\", \"scripts\", \"assets\"):\n        d = source / name\n        if not d.exists():\n            continue\n        try:\n            d.lstat()\n        except OSError:\n            return False\n    return True","typeGuard":null,"tryCatchPattern":"try:\n    list(_plugin_files(source))\nexcept SandboxError as exc:\n    if \"component is unreadable\" in str(exc):\n        # chmod +rX the named component directory\n        ...\n    raise","preventionTips":["Apply `chmod -R +rX` to the plugin source before benchmarking.","Keep plugins on a stable local filesystem rather than a flaky network mount."],"tags":["ce-plugin","permissions","filesystem"],"backgroundTag":null,"analyzedSha":"d540b00184d71a896261ee02670da9a92d59d8f7","analyzedAt":"2026-08-12T19:50:25.132Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}