Week 2 · Lesson 06
Policy gate
Safety core: capability checks before any world mutation. See also Safety & compliance.
Learn
- Actor + action + resource authorization
- Allowlists for irreversible actions
- Deny must be logged for audit
Build
policy.can(actor, action, resource)- Examples:
agentmaydraft/media.search; only human (or approve token) mayinstagram.publish - World-mutating tools call policy first; deny →
needs_humanevent
Checkpoint
Even if the model outputs “publish now”, the tool refuses without approval — and a deny event is stored.
Four notes
- What problem does this layer solve?
- What is allowed to call it?
- What must it never do?
- How do I observe and test it?