Skip to content

feat(skills): add agent-sandbox-and-permissions - #687

Open
cyberspace-cs wants to merge 1 commit into
addyosmani:mainfrom
cyberspace-cs:feat/skill-agent-sandbox-and-permissions
Open

cyberspace-cs wants to merge 1 commit into
addyosmani:mainfrom
cyberspace-cs:feat/skill-agent-sandbox-and-permissions

Conversation

@cyberspace-cs

Copy link
Copy Markdown

Summary

Adds a new skill, agent-sandbox-and-permissions, that draws runtime capability boundaries around coding agents — what the agent may run, where it may reach, and what it must ask permission for.

Why

security-and-hardening covers vulnerabilities in your code. It does not cover code running next to you: an agent that executes install scripts, git hooks, and arbitrary commands on a developer machine with their credentials and network access. This skill fills that gap without overlapping the existing one.

What changed

  • New skill agent-sandbox-and-permissions (286 lines):
    • sandbox tiering — Seatbelt (macOS), Landlock + seccomp (Linux), bwrap, containers, microVMs, WASM;
    • "the repository is executable content" — git hooks, postinstall scripts, lockfile substitution;
    • credential and egress isolation, approval gates, audit logs, negative probes;
    • what each tier deliberately does not enforce.
  • Updated README, the using-agent-skills routing table, getting-started, adoption-guide, codex/commandcode/comparison indexes and counts.
  • Eval cases and realistic fixtures.

Verification

  • validate-skills: 26 skills, 0 errors, 0 warnings.
  • run-evals: rank-1 100% (92/92), no collisions.
  • versions / reference-links / commands / artifact-paths checks pass.
  • 72/72 unit tests pass.

Relationship to existing skills

Explicitly complementary to security-and-hardening: that one secures the code you write; this one secures the agent that runs beside you. The routing table reflects this distinction.

Checklist

  • No overlap with existing skills (verified against full skill set)
  • Eval cases and fixtures added
  • Validator clean, all tests pass
  • Docs and indexes updated

Adds the runtime capability boundary skill for the agent itself: sandbox tier
selection, least-privilege tool surface, credential and egress isolation,
approval points at the boundary, an audit trail, and negative probes that prove
the isolation holds.

Why a new skill rather than an edit:

- `security-and-hardening` secures the application the agent writes (OWASP,
  auth, input validation, dependency audits). It does not cover the runtime
  boundary around the agent process — filesystem reach, network egress,
  credential exposure, or the harness's approval surface. The new skill states
  that split explicitly under "When to Use".
- No existing skill covers sandbox selection (Seatbelt, Landlock + seccomp,
  bubblewrap, container flags, microVM, WASM), repository-controlled execution
  paths (git hooks, install scripts, Makefile targets), or proving a boundary
  with negative probes. The catalog's threat model is untrusted text in the
  context window, which no current skill addresses.

Also syncs the indexes that enumerate skills: README (counts, Review table
row, project-structure counts), the `using-agent-skills` discovery flowchart
and quick-reference table, `docs/getting-started.md` (lifecycle and
context-aware loading), and the skill counts quoted in the adoption guide,
Codex, Command Code, and comparison docs.

Eval coverage: `evals/cases/agent-sandbox-and-permissions.json` ships four
positive triggers, two negative triggers with declared owners, and one
execution eval backed by a real fixture (`evals/fixtures/agent-sandbox-and-permissions/`).
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