Policy-as-Code (PaC) is an engineering discipline where governance rules, safety principles, and compliance requirements for AI systems are formally defined as executable, version-controlled code rather than static documents. This codification enables automated enforcement, continuous testing, and systematic auditing of agent behavior against a defined constitution or operational policy. By treating policy as software, it integrates directly into the Continuous Integration/Continuous Deployment (CI/CD) pipeline, allowing for deterministic validation before deployment.
