oliver-zehentleitner / maity
security: a sandboxed Claude Code session reads other clones beyond their credentials (deny the workspaces root, re-open own clone and scratch)
tsk-wack9qv36n0c Open
Split from tsk-c7zzd440x8pn at the lead request (option 3 there). Claude Code reads everything outside its denyRead list. The runner denies the other clones credentials and the other scratches path by path, so other clones content stays readable, and a clone made after a session started is not denied at all. Codex has no such gap: it hides the whole workspaces root and re-opens only its clone and scratch. The same shape for Claude Code (denyRead the root, allowRead and allowWrite the own clone and scratch) was rejected so far (KtW 2ce039de, b856de03) because the own credential deny (clone/.git/maity) would sit inside the re-opened clone, and whether that inner deny wins was never probed. First step: an ops probe on Claude Code 2.1.329 with the root denied for reading, the own clone re-opened, and its .git/maity denied inside it. Check that the credential stays unreadable, the clone stays usable (git fetch and commit work), and another clone is hidden. Only if the probe passes: change claude_settings, add tests, docs/runners.md, a context entry, a security leg, and an ops live check.