Application · Bring a domain
Rules as code, and beyond
Rules as code turns an authoritative rulebook — a statute, a regulation, a policy — into rules a person can read and a machine can run. This is for the harder case: decisions where the rulebook itself is a hypothesis, uncertain in its structure. A domain expert brings the field; it becomes a crossing class that says what must be declared before a decision can be evaluated, and what an underwriter would need to see.
The worked examples here are synthetic. Real domains — dermatology, tax — are in progress with practising experts, and are not yet built. Nothing is summed or certified (see non-claims).
From a field to a crossing class
The move is to separate the domain logic (what your field knows) from the epistemic structure(how a decision is warranted, anchored and made defeasible). You supply the first; the site supplies the second. Each step maps to something runnable:
| Step | What it is | Where to do it |
|---|---|---|
| Declare the class | What a decision in your domain must supply before it can be evaluated: the evidence it requires and the tiers, the authority, the declared consequence paths, whether the action can be undone. | the crossing-class catalogue |
| Admit it (syntactically) | The site checks the class against its schema and admissibility rules, and, given a warranted example, runs a mutation battery. Admission is bounded conformance — never that the class suits the domain or is complete. | bring your own class, in your browser |
| Appraise a decision | A proposed decision is decided EXECUTE or HOLD by the gate, on the evidence and authority declared, at a stated record time — with every check shown. | inspect a crossing |
| Keep it honest | Structure begins UNTESTED; a later observation from a source declared independent (not verified) can challenge it. The model is a hypothesis about the domain, not the domain. | a worked example: science |
Where this sits relative to the field
Rules as code and computational law (Logical English, Catala, Oracle Policy Automation) are older and, in their own domains, far more mature. The difference is not quality but what is uncertain: there, the rulebook is the authority and the question is whether the right facts met the right rule; here, the declared model is a hypothesis and the question is whether it contains the paths that matter at all. Naming the neighbour and saying where the resemblance stops is part of the method. Where this sits →
Label
- What this is
- A path for a domain expert to express a field as a crossing class — declare it, admit it syntactically, appraise a decision, and keep its structure defeasible — runnable in the browser on your own class.
- What it isn’t
- Rules as code over an authoritative rulebook, a certification that a class suits its domain or is complete (admission is syntactic only), or a claim that any real domain has been underwritten. The worked examples are synthetic.
- Where it stops
- At syntactic admission and synthetic examples until a practising expert brings a real class. The structure status is UNTESTED or CHALLENGED for every class; see non-claims and where this sits.