Commit d08e814
fix(permissions): move scratch edits from deny to ask in recommended … (#115)
…tier
The recommended permission tier blanket-denied Edit(//scratch/**) and
Edit(//pscratch/**), which made the agent unable to touch any file in
projects rooted under $SCRATCH — exactly the layout NERSC users want
because the home quota is small and DVS-mounted home doesn't honor
flock(). The denies came from the Prism era when projects always lived
under $HOME and scratch was just temp storage.
Move both patterns from `deny` to `ask` so the agent has to prompt the
user before writing into scratch (rather than being silently blocked),
and add Write(//*scratch/**) to ask too — the original deny only covered
Edit, leaving Write auto-allowed which was inconsistent.
The other denies (~/.ssh, ~/.aws, ~/.gnupg, sudo, rm -rf, git push)
remain — those are sensitive across all contexts.
Verified by `lc init` on a project rooted in $SCRATCH: generated
settings.json puts the four scratch patterns under "ask" while keeping
the SSH/AWS/sudo guards under "deny".
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e4f0c10 commit d08e814
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
48 | | - | |
49 | | - | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
0 commit comments