Practice tool

Policy tester

A deterministic policy decides whether an agent action may run, whatever the model says. Try it, then predict eight decisions. The policy is the same one you can download as Rego and run with OPA.

Playground

Predict the decision

Eight cases. Choose Allow or Deny, then read the reason. 0 of 0 right

    Take it with you

    Run the same cases against the real policy with opa eval or opa test. Then add a rule of your own and a case that proves it.

    agent_guardrail.regopolicy-cases.json

    This page mirrors the Rego rule for rule in plain JavaScript so you can explore it in the browser. It is a teaching tool, not a security control.