Stage 3 · Teens · Guardrails

Guardrails, Permissions & Sandboxing

Keeping agent actions safe, scoped, and reviewable.

Because agents can take real actions, harnesses need safety mechanisms:

Guardrails validate model outputs/actions before they execute (e.g. blocking a destructive command). Permissions scope what an agent is allowed to do at all (e.g. read-only file access). Sandboxing isolates execution so even a mistaken or malicious action has limited blast radius (e.g. running generated code in a container with no network access).

Three Filters on One Dangerous Action
DROP TABLE production_users;
1. Permissions2. Guardrail3. Sandbox
Blocked before production
The delete tool is not even in the list. The model cannot request it.
Click a layer. You want all three — they fail in different ways.

The same DROP TABLE hits three different filters. Click each layer.

All lessons in Stage 3: Agents and safety