1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
Design an action-guardrail layer (policy engine) for agents that operate on business systems.
30-second answerSay your answer out loud first, then reveal.

Policy examples
- refund.create: allow if amount ≤ 2,000 AND order.owner == session.user
require_approval if 2,000 < amount ≤ 20,000; deny otherwise
- email.send: allow if all recipients in company domain; else require_approval
- records.delete: deny for agents (soft-archive only via archive tool)
- any tool: deny if session.risk_score > threshold; rate-limit 20 calls/min/userDesign considerations
- Identity from the session, not the model: the agent cannot claim to be another user.
- Deterministic and testable: unit tests for policies; policy changes go through review.
- Explainable denials returned to the agent so it can adjust or inform the user.
- Performance: in-process or sidecar policy evaluation (milliseconds).
- Defaults: deny by default for new tools until policies are written.
Related
You understood something today that you didn't yesterday.