Draft
This page is not written yet. The outline below is the plan of record from curriculum/BUILD_TRACK_PLAN.md; the prose, the code, and the verified block land with the workbench’s module-22 tag.
What this page will cover:
- The layer stack, kept distinct: consent, permission policy, hooks, capability, process and OS, network, credentials. Each layer does one job, and trusting one to cover another’s is the mistake this module is built around.
- How rules actually match: bash commands parsed into a syntax tree, with unparseable constructs requiring explicit approval. Claude Code matches the command’s shape, not its consequences, yes, really.
- The scope of bash sandboxing per the sandbox-environments page: Bash and its children, and none of the file tools, MCP tools, or hooks.
- The proxy pattern from the secure-deployment page: your proxy injects the credential, so the agent never holds it.
- Ship: a
PreToolUsehook enforcing app policy, plus an egress-restricted container profile for the workbench.