Definition
Expressing policy in machine-readable rules that can be versioned, tested, reviewed, and enforced by software.
Distinguish it from nearby terms
Policy as code is an executable representation; enforcement still depends on where and how the rule is applied.
Check your understanding
A policy file that an agent can ignore is documentation, not a boundary.