sandbox-filesystem-access
Skill157 starsChanged 48 days agoMITView on GitHub
Configure or diagnose file and directory access, mounts, and host ACLs for AWF sandboxes.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- awf-debug-toolsSkill
- awf-skillSkill
- debug-firewallSkill
- diagnose-awfSkill
- recompile-workflowsSkill
- add-llm-providerSkill
- agentic-workflowsSkill
- debugging-workflowsSkill
- pr-finisherSkill
- awf-skillSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when changing or troubleshooting which host files and directories an agent can read, write, or traverse inside an AWF …
- Very specific: line 49
Check existing parent and nested mounts before adding one.
- Distinctive: line 56
Add or update a focused test for the policy or mount-generation behavior in the module being changed.
- Distinctive: line 62
Check each layer independently, using the actual host source and guest path:
- Distinctive: line 66
Check execute/traverse permission on every parent directory as well as the file or directory itself.
- Distinctive: line 75
Guest identity and effective access: Run checks inside the command AWF wraps, with the agent's actual user, groups, privileges, and guest …
- Distinctive: line 81
When write access is expected, confirm it by creating and removing a disposable file in the intended output directory.
- Distinctive: line 89
Keep verification non-destructive.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sandbox Filesystem Access
Use this skill when changing or troubleshooting which host files and directories an agent can read, write, or traverse inside an AWF sandbox. Treat host permissions, sandbox mount policy, and the sandbox's effective view as separate checks: a writable mount does not override host ownership or ACLs, and host permissions do not make an unmounted path visible.
Find the runtime-specific source of truth
First identify the selected runtime and the access path being changed. Do not assume all runtimes implement mounts the same way.
- Docker / gVisor compose: Review
docs/mount-policy.md,docs/environment.md, andsrc/services/agent-volumes/. The agent runs chrooted under/host; account for that path mapping when comparing host paths with paths used by the agent. - Docker Sandboxes (
sbx): Review the volume-mount section ofdocs/sbx-integration.mdandsrc/sbx-manager.ts. Workspace and positional mounts appear at the same absolute path in the guest; additional mounts do not support an independent guest destination. - Cloud Hypervisor: Review the export and write-policy sections of
docs/cloud-hypervisor-foundation.mdandsrc/cloud-hypervisor/exports.ts. Do not infer its exports or write permissions from the compose mount list.
For compose and sbx home-directory policy changes, use
src/config/sandbox-mount-policy.json
as the shared policy and follow docs/mount-policy.md
for its runtime scope and tests. Cloud Hypervisor does not currently consume
that home policy.
Configure access narrowly
- Name the exact host source, guest-visible path, required operations (read/write/execute/traverse), and runtime. Confirm the source exists and determine whether the configuration accepts a file, directory, or only a directory mount.
- Grant only the required access. Prefer a specific read-only mount; if output
is needed, make only the necessary output path writable. Avoid mounting
/, the full host home, or broad credential-bearing directories. - Check existing parent and nested mounts before adding one. Mount ordering or
a narrower child mount can change the effective access of a path. On
ARC/DinD, verify the Docker daemon can see the source and account for
--docker-host-path-prefix. - Preserve credential exclusions and the backend's isolation guarantees. A host ACL or mode change is not a substitute for a narrowly scoped sandbox mount.
- Add or update a focused test for the policy or mount-generation behavior in the module being changed. Cover both the requested access and a nearby denied or read-only case.
Verify effective access
Check each layer independently, using the actual host source and guest path:
- Host DAC/ACL: Inspect owner, group, mode, and ACL entries. For example:
stat -c '%A %a %u:%g %n' <path>and, when available,getfacl -p <path>. Check execute/traverse permission on every parent directory as well as the file or directory itself. Do not change host permissions merely to make a sandbox test pass. - Generated mount/export: For compose, inspect the generated volume and
the running container's actual mounts (for example,
docker inspect <container> --format '{{json .Mounts}}' | jq). For sbx or Cloud Hypervisor, inspect the corresponding generated command/export plan and runtime-specific diagnostics. Confirm the source, destination, and read-only/read-write mode. - Guest identity and effective access: Run checks inside the command AWF
wraps, with the agent's actual user, groups, privileges, and guest path.
In compose, a plain
docker exec awf-agent ...runs as container root outside the/hostchroot and can bypass mode/ACL restrictions; it is not equivalent to the agent command. Checkid, inspect the target withstat, and usetest -r,test -w, ortest -xas preliminary permission probes. When write access is expected, confirm it by creating and removing a disposable file in the intended output directory. Usefindmnt -T <path>when available to identify the supplying mount, not to prove write access: Cloud Hypervisor exports narrowed byfilesystem.allowWritecan remainrwin the guest while the host mount tree denies writes outside allowed paths. A mount declaration or permission probe alone does not prove the intended operation works.
Keep verification non-destructive. Never read, print, or copy credential contents while checking access; verify sensitive paths by checking existence, metadata, or expected denial only.
Report the result
State the runtime, host source, guest path, expected access, and observed effective access. Distinguish a missing mount from a host permission/ACL denial and from a read-only mount. Include the focused test or runtime check used, and call out any backend that was not verified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

