Policy engines evaluate each requested action against rules kept in version control, so authorization is reviewable, testable and the same across agents. OPA with Rego and Cedar are the common general purpose choices, and cloud agent platforms now expose Cedar-style policy for tool calls. Keep the decision point outside the model so a prompt cannot rewrite it.
Read in this order
- VideoOpen Policy Agent (OPA) Intro and Deep Dive, Charlie Egan and Anders Eknert (CNCF)Start here: a maintainer-led tour of OPA and Rego in practice.
- OfficialCedar Policy Language Reference GuideCedar's language reference, for readable allow and forbid rules.
- Open sourceagentgateway (open source)Hands on: put MCP traffic behind a policy gateway and read the telemetry it emits.