Skip to content

fix(setup): ship the read-only allow set to adopters; allow both vetted-op-read forms - #1393

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/isolated-setup-read-allowlist
Sep 26, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/isolated-setup-read-allowlist

Conversation

@potiuk

@potiuk potiuk commented Sep 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Adopters never received the read-only allow set. The adopter install prompt copied sandbox, permissions.deny and permissions.ask from the framework settings, but not permissions.allow, and the update check never diffed it. In an installed tracker repo, every gh read, archive read and mailbox read the security skills make prompted. One bulk security-issue-sync over ~40 trackers produced several hundred read-only prompts. Install now copies permissions.allow (read-only entries only), and update reports every missing read-only entry as a prompt the user is paying for.
  • The vetted-op-read default matched only one invocation form. Skills document uv run --project …/vetted-ops vetted-op-read, while read-only gatherer agents use uvx --from …/vetted-ops vetted-op-read, because uv run in the plugin cache has to write a venv there. Only the uv run form was sandbox-excluded, and neither form was in the framework's own permissions.allow. Both forms are now allowed and excluded. The write dispatcher (vetted-op) stays on ask.
  • Adds the missing read-only MCP tools and registry fetches to the default set: PonyMail get_source / list_lists, Gmail get_message / list_drafts / get_draft, gmail-plaintext check_auth, apache-projects get_releases / get_repositories / list_committees / search_projects, and WebFetch for cveawg.mitre.org, pypi.org and lists.apache.org.

Type of change

  • Skill change (.claude/skills/<name>/) — isolated-setup-install, isolated-setup-update
  • Documentation (docs/, README.md, CONTRIBUTING.md) — secure-agent-setup.md template, install and update prompts
  • CI / dev loop (prek, workflows, validators) — .claude/settings.json + tools/sandbox-lint/expected.json kept in lockstep; new sandbox-lint tests

Test plan

  • prek run --all-files passes
  • uv run --directory tools/sandbox-lint pytest -q passes, including new tests: both vetted-op-read forms must be in allow and excludedCommands, and the vetted-op write dispatcher must never be in allow. Both fail on main.
  • sandbox-lint: .claude/settings.json matches expected.json

RFC-AI-0004 compliance

  • HITL — only read-only operations move to allow. Every write keeps its prompt: gh writes, gh api *, vetted-op, git push, PonyMail login, Gmail mutations. The one draft tool already in the baseline, gmail-plaintext create_draft, only creates an unsent draft.
  • Sandbox — the new excludedCommands entry is the same read-only dispatcher already excluded in its uv run form. Its catalogue stays Edit-denied and outside every allowWrite root.

Notes for reviewers (optional)

uvx --from is the form that actually works for a sandboxed adopter: uv run --project against the versioned plugin cache wants to create .venv inside it, and the cache is (correctly) not writable. Whether the skills should switch their documented form to uvx --from is a separate change; this PR only makes both forms prompt-free.

🤖 Generated with Claude Code

@potiuk potiuk added family:setup setup-* skills capability:fix Implement code change to resolve an issue labels Sep 26, 2026
@potiuk
potiuk force-pushed the feat/isolated-setup-read-allowlist branch from ead4448 to db31e05 Compare September 26, 2026 11:07
@github-actions github-actions Bot added substrate:sandbox Tool substrate: agent isolation, egress control, settings audit substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints) labels Sep 26, 2026
…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
potiuk force-pushed the feat/isolated-setup-read-allowlist branch from db31e05 to b0be057 Compare September 26, 2026 11:36
@potiuk
potiuk merged commit e0bf9a2 into apache:main Sep 26, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:fix Implement code change to resolve an issue family:setup setup-* skills substrate:sandbox Tool substrate: agent isolation, egress control, settings audit substrate:setup Tool substrate: adopter-side setup state resolved at runtime (lock parsing, floors, fingerprints)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant