Authorisation for AI Agents With Policy as Code (Cedar)
I changed one line of policy text, and a fifty pound refund was denied, with the checking code unchanged.
Video #234 ยท Enterprise architecture and AI agents
Steps in the video
Files
- compare.py (33 lines)
- gate.py (15 lines)
- policy.cedar (9 lines)
Tested with
Python 3.12.15 | cedarpy==4.12.1
What this does not show
One made-up agent, three orders and ten calls I chose. No agent, model or tool runs, and nothing is blocked. No schema. The run does not show a forbid beating a permit. The user and the amount are taken on trust; a refund of minus 500 is allowed. Results are for cedarpy 4.12.1.
Sources
Learning IT by Example.