Skip to content

Policy DSL Documentation

A natural-language policy engine — write rules in plain English, evaluate them against JSON data in real time.

What is Policy DSL?

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 engine 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 engine 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.

Architecture

The policy system has three tiers:

  1. Engine — evaluates a single rule set against data (POST /)
  2. Orchestrator — manages named policies, versions, and groups
  3. Dashboard — UI for creating, editing, and testing policies

This documentation covers the DSL language, all operators, and the API.