You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More rglob/os.walk sites list or digest a directory tree and skip a subdirectory they cannot list #1168
Same cause as #1103-#1106 (Path.rglob and an os.walk with no onerror skip a subdirectory that cannot be listed, mode 0o111, as a non-root user, with no error). Reproduced on this branch with a skill directory SKILL.md, references/a.md, references/plugin.json, then chmod 0o111 references:
harnesses/harbor_export.py:103_content_key (the cache key of an exported task): 469980c5ee98f0cc becomes 8ccdac066593d4bb, no error.
eval/leakgate.py:73read_skill (the files the leak gate indexes): ['SKILL.md', 'references/a.md', 'references/plugin.json'] becomes ['SKILL.md'], so a leak in the dropped files is not found.
Read, same cause, not reproduced with that input: skills/formats.py:261detect_skill_packages (a manifest in the unlistable directory is missed), repos/conformance.py:140scenarios_of (a guidance file there yields no scenario), repos/arms.py:151_uncopyable (os.walk with no onerror, so a link in the unlistable directory is not checked), commands/leak.py:59 (the output-overwrite guard lists a smaller skill), mcp/local_markdown.py:135 and mcp/okf_client.py:209 (doc sources).
Fix: digest_entries.listed_entries (added with #1104) lists what rglob("*") lists and raises the OSError; use it, or an os.walk with an onerror that re-raises, and decide per site whether the error is the right outcome.
Activity