Repository navigation
fix(setup): ship the read-only allow set to adopters; allow both vetted-op-read forms - #1393
Merged
Merged
Conversation
potiuk
force-pushed
the
feat/isolated-setup-read-allowlist
branch
from
September 26, 2026 11:07
ead4448 to
db31e05
Compare
…ed-op-read forms The adopter install copied sandbox, deny and ask but never permissions.allow, and update never diffed it, so every skill read prompted in an installed repo. vetted-op-read was excluded only in its uv run --project form and allowed in neither; gatherer agents use uvx --from. Allow and exclude both forms, add the missing read-only MCP tools and registry WebFetch hosts, and teach install/update to carry and diff the allow set. vetted-op (writes) stays on ask. Generated-by: Claude Opus 5
potiuk
force-pushed
the
feat/isolated-setup-read-allowlist
branch
from
September 26, 2026 11:36
db31e05 to
b0be057
Compare
3 tasks done
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
sandbox,permissions.denyandpermissions.askfrom the framework settings, but notpermissions.allow, and the update check never diffed it. In an installed tracker repo, everyghread, archive read and mailbox read the security skills make prompted. One bulksecurity-issue-syncover ~40 trackers produced several hundred read-only prompts. Install now copiespermissions.allow(read-only entries only), and update reports every missing read-only entry as a prompt the user is paying for.vetted-op-readdefault matched only one invocation form. Skills documentuv run --project …/vetted-ops vetted-op-read, while read-only gatherer agents useuvx --from …/vetted-ops vetted-op-read, becauseuv runin the plugin cache has to write a venv there. Only theuv runform was sandbox-excluded, and neither form was in the framework's ownpermissions.allow. Both forms are now allowed and excluded. The write dispatcher (vetted-op) stays onask.get_source/list_lists, Gmailget_message/list_drafts/get_draft,gmail-plaintextcheck_auth, apache-projectsget_releases/get_repositories/list_committees/search_projects, andWebFetchforcveawg.mitre.org,pypi.organdlists.apache.org.Type of change
.claude/skills/<name>/) —isolated-setup-install,isolated-setup-updatedocs/,README.md,CONTRIBUTING.md) —secure-agent-setup.mdtemplate, install and update promptsprek, workflows, validators) —.claude/settings.json+tools/sandbox-lint/expected.jsonkept in lockstep; new sandbox-lint testsTest plan
prek run --all-filespassesuv run --directory tools/sandbox-lint pytest -qpasses, including new tests: bothvetted-op-readforms must be inallowandexcludedCommands, and thevetted-opwrite dispatcher must never be inallow. Both fail onmain.sandbox-lint:.claude/settings.jsonmatchesexpected.jsonRFC-AI-0004 compliance
allow. Every write keeps its prompt:ghwrites,gh api *,vetted-op,git push, PonyMaillogin, Gmail mutations. The one draft tool already in the baseline,gmail-plaintextcreate_draft, only creates an unsent draft.excludedCommandsentry is the same read-only dispatcher already excluded in itsuv runform. Its catalogue staysEdit-denied and outside everyallowWriteroot.Notes for reviewers (optional)
uvx --fromis the form that actually works for a sandboxed adopter:uv run --projectagainst the versioned plugin cache wants to create.venvinside it, and the cache is (correctly) not writable. Whether the skills should switch their documented form touvx --fromis a separate change; this PR only makes both forms prompt-free.🤖 Generated with Claude Code