Learn
Agent enforcement strength: hooks vs gateways vs sandboxes
Updated 9 November 2026
There are five levels of agent enforcement, from visibility to kernel-enforced sandboxes. Each stops different things and each can fail in a different way, which is how you decide when an agent belongs in isolation.
0 Visible: discovery only, stops nothing. 1 Boundary: identity scopes, network or DNS rules and device permissions stop what the agent can reach, and fail on personal devices and the user’s own credentials. 2 Action-level, in the agent: hooks, platform webhooks, SDK plugins and Microsoft’s AGT stop individual tool calls, and fail when hooks are disabled or misconfigured.
3 Action-level, mediated: an MCP gateway or proxy stops calls routed through it, and fails on traffic that goes around it. 4 Isolated runtime: OpenShell or Strands Box stop access to files, processes, network and credentials, enforced by the kernel, and the agent cannot prompt or configure its way out.
Constrain is strength 1 to 2. Only OpenShell and Strands Box are Isolated, so in-place control is never called isolation.
Frequently asked
Is “governed in place” a valid end state?
Yes. Moving an agent into a sandbox is the owner’s choice unless a company rule requires it.
Sources
- Trustabl Agent Discovery and Constrain build specification
Run the enforcement test on an agent we did not build.
Block one action, require approval for another, cut access mid-task, and see all three in your audit log.