Repository navigation
Let safe prime-agent read vault-linked skills on the work role - #86
Merged
Merged
Conversation
~/.claude/skills/writing-voice is a symlink into the vault. Seatbelt checks the resolved path, so prime-agent got EPERM reading it through a symlink in ~/.prime/agent/skills. Grant read-only on that one skill's subpath so skills can be symlinked instead of rsync-copied on every launch. Verified under safe: the read fails without the grant and succeeds with it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
safe prime-agentcouldn't read a skill symlinked into~/.prime/agent/skillswhen the link ends up in the vault. Seatbelt checks the resolved path, so the symlink alone isn't enough and the read dies with EPERM. This adds a read-only grant for the one skill that needs it (writing-voice) instead of the whole vault.role-work.sbbecause the vault path is per machine. A machine that reads the same skill under the home role needs its own grant inrole-home.sb, with its own path.Test plan
safe, with a symlink to~/.claude/skills/writing-voicein~/.prime/agent/skills/, prime-agent gotOperation not permittedreading itsSKILL.md. With this branch's profiles (ran a copy ofbin/safepointed at them) the read goes through.🤖 Generated with Claude Code