---
title: "Policy-as-code"
description: "Governance policy expressed in an executable policy language (OPA/Rego, Cedar) that evaluates in CI/CD and at admission; the narrower, pipeline subset of governance-as-code."
canonical: https://aigovernanceengineer.com/glossary/policy-as-code
author: "Jorge García Aibar"
license: "CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)"
doi: https://doi.org/10.5281/zenodo.22956197
version: "0.5.0"
updated: 2026-09-24
---

# Policy-as-code

Governance policy expressed in an executable policy language (OPA/Rego, Cedar) that evaluates in CI/CD and at admission; the narrower, pipeline subset of governance-as-code.

- Developed in: [ch. 06, Policy-as-code and gates](https://aigovernanceengineer.com/bok/the-role#policy-as-code-and-gates)
- Chapters: [ch. 04, The Stack](https://aigovernanceengineer.com/bok/the-stack) · [ch. 05, Patterns](https://aigovernanceengineer.com/bok/patterns) · [ch. 06, The Role](https://aigovernanceengineer.com/bok/the-role)
- Contrast with: [Governance-as-code](https://aigovernanceengineer.com/glossary/governance-as-code)
- In the glossary chapter: https://aigovernanceengineer.com/bok/glossary#t-policy-as-code

## Sources

Defined by this Body of Knowledge: the section it is developed in is the source.
