DevToolsComplianceAIAutomation

PolicyCompile – Compile Policy Prompts into Deterministic Verdict Programs

Turn natural language policies into deterministic verdict code for compliance and automation

Problem
Many business rules or policies are described in natural language, but actual execution requires manual judgment or error-prone code. Existing tools cannot reliably convert policy prompts into testable, auditable verdict programs.
Solution
Build a compiler that takes policy text and example inputs, generates deterministic verdict functions (e.g., regex, rule engine configs, or code), and provides a testing and validation interface.
Users
Compliance officers, business rule engineers, developers needing to automate policies
MVP
Input natural language policy; upload example data pairs; generate initial verdict rules (e.g., Python functions or JSON rules); provide testing interface to validate rules; support export as code or API
Revenue
Charge per compilation or API call; or enterprise subscription with version control, team collaboration, and audit logs
Why now
LLMs lower the cost of natural language understanding, but deterministic execution still needs traditional programming; indie devs can combine LLM-generated seed rules with user fine-tuning to create a semi-automatic tool

Source discussions · 1

  1. Hacker NewsShow HN: jevc – compile policy prompts into deterministic verdict programs2↑ 1
← Back to list