Policy Playground
// DEMO CONTEXT
WHAT THIS PROVES
Policies are executable, testable, and compiled into deterministic enforcement.
EXPECTED OUTPUT
An evaluation trace showing intent matching against MAPL rules and constraints.
STANDARD TRACE
POLICY TRACE
Intent:modelβdeployβstaging
Rule #0 Β· deploy Β· ALLOW
proposers: [model, human] Β· maxAuth: L1
Rule #1 Β· money Β· ALLOW
proposers: [human] Β· maxAuth: L3
Rule #2 Β· money Β· DENY
proposers: [] Β· maxAuth: L1
Rule #3 Β· data Β· ALLOW
proposers: [human, model] Β· maxAuth: L2
Rule #4 Β· comms Β· ALLOW
proposers: [agent, model, human] Β· maxAuth: L2
Run the demo to generate an Evidence Pack
Integrate
L2: Policy Compilation + Offline Verify
import { parseMapl, evaluateMapl } from "@mindburn/helm/mapl";
const ast = parseMapl(policySource);
const result = evaluateMapl(ast, intent);
// β { decision, firedRules, blockedConstraints, trace }