Human-Readable
Rules read like natural language. Non-technical stakeholders can review and understand policies.
Policy DSL lets you express business rules in near-English sentences:
A **Person** gets approved
if the __age__ of the **Person** is greater than 18
and the __status__ of the **Person** is equal to "active".The platform evaluates this rule against JSON data and returns a pass/fail result with a full evaluation trace.
Human-Readable
Rules read like natural language. Non-technical stakeholders can review and understand policies.
Machine-Executable
POST a rule and data to the Execution API and get an instant pass/fail result with trace.
Rich Operators
Comparison, date/time, list, validation, and pattern matching operators built in.
Composable
Build complex policies from smaller rules using labels and cross-references.
The policy system has three main user-facing parts:
This documentation covers the DSL language, all operators, and the platform APIs.
If you are evaluating the enterprise deployment model, read Enterprise Isolation.
Official SDKs are now available for the main integration targets:
| Language | Package | Install |
|---|---|---|
| Go | go-sdk | go get github.com/policies2/go-sdk |
| Python | policies2 | pip install policies2 |
| TypeScript | @policies2/sdk | npm install @policies2/sdk |
| Rust | policies | cargo add policies |
See the SDKs page for the full list and positioning.