6 open-source Rego policies encoding EU Artificial Intelligence Act. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
6 Rego policy files encoding EU Artificial Intelligence Act, part of the Rego Policy Libraries — a standalone, dependency-free collection of Open Policy Agent policies for published security and compliance standards. No orchestrator, no agent, no vendor runtime.
git clone https://github.com/ynotbhatc/rego_policy_libraries.git
opa eval -d rego_policy_libraries/governance/eu_ai_act -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/governance/eu_ai_act/*.rego; do
curl -X PUT --data-binary @"$f" "$OPA/v1/policies/$(basename $f .rego)"
done
Gating a change of state — evaluate a proposed action before it proceeds, and refuse it if it violates the standard. Measuring state — evaluate collected facts about an environment against the standard to produce compliance evidence. The same policy content serves both; only the integration differs.
eu_ai_act_governance.rego eu_ai_act.governanceeu_ai_act_gpai.rego eu_ai_act.gpaieu_ai_act_high_risk.rego eu_ai_act.high_riskeu_ai_act_main.rego eu_ai_act.maineu_ai_act_prohibited.rego eu_ai_act.prohibitedeu_ai_act_transparency.rego eu_ai_act.transparencyTest coverage is published in
COVERAGE.md, and uncovered policies are the best
first contribution — each is small, self-contained, and either passes
opa test or does not. See
CONTRIBUTING.md.