Skip to content

Add role-home.sb so safe works on the home role - #65

Merged
technicalpickles merged 2 commits into
mainfrom
safe-role-home
Oct 16, 2026
Merged

technicalpickles merged 2 commits into
mainfrom
safe-role-home

Conversation

@technicalpickles

Copy link
Copy Markdown
Owner

Summary

Follow-up to #61. I tried safe on the home machine for the first time and it fell over on the dotfiles symlinks. ~/.pickles and ~/.gitconfig.d point into ~/github.com/technicalpickles/dotfiles here, and common.sb only grants the links, not the target. Result: git config couldn't read claude-agent-home and ~/.pickles/bin was EPERM. Work gets this for free through the ~/pickleton grant, home had nothing.

  • Adds role-home.sb with a read-only grant on the checkout. Read-only on purpose, since that checkout is also where rc files and bin/safe itself link into, so write access would reach stuff that runs outside the sandbox later.
  • Updates ADR 0060 to match.

Test plan

Ran a copy of bin/safe pointed at this branch's profiles, from a scratch dir: git config user.email now returns the agent identity, ~/.pickles/bin lists, and touch in the checkout is still denied.

Signing inside the sandbox on home is still broken: with Automic Vault serving the agent key, load-agent-ssh-keys skips it and the dedicated agent comes up empty. That's the gap the ADR already calls out, not fixed here.

🤖 Generated with Claude Code

On home, ~/.pickles and ~/.gitconfig.d point into
~/github.com/technicalpickles/dotfiles, which common.sb doesn't grant (it
only covers the links). Under safe, git couldn't read claude-agent-home and
~/.pickles/bin was EPERM. Grant read-only; write access would reach files
that run outside the sandbox later.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@technicalpickles
technicalpickles merged commit 1ebaf5e into main Oct 16, 2026
1 check passed
@technicalpickles
technicalpickles deleted the safe-role-home branch October 16, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant