[FEATURE] sandbox.filesystem needs metadata-only (traverse-only) path grants

Resolved 💬 3 comments Opened Apr 24, 2026 by qu13t0ne Closed May 28, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

sandbox.filesystem needs metadata-only (traverse-only) path grants -- entries that allow getcwd() traversal without granting recursive read access to subtree contents.

  • Problem: sandbox.filesystem.allowRead entries are recursive -- a literal path like "/Users/mikeowens" grants full read on entire subtree

AND overrides denyRead entries

  • Desired behavior: metadata-only (traverse-only) grant -- allows getcwd() path traversal without exposing subtree contents
  • Use case: running sandboxed git in ~/git/ repos when CWD is under ~ (blocked by denyOnly: ["~"])
  • Workaround: none currently -- any allowRead entry broad enough to fix getcwd() exposes sensitive files

Proposed Solution

add separate sandbox.filesystem.allowReadMetadata

Alternative Solutions

_No response_

Priority

High - voids sandboxing

Feature Category

CLI commands and flags

Use Case Example

Working in /sandbox sessions but need to run git commands.

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗