Rules

From written policy to rules that decide.

CentBench's rules are written as policy first, in plain sentences. The Codex compiles them into rules Arbiter can decide, and keeps every rule tied to the sentence it came from. A new rule is tried on past invoices before anyone publishes it.

The Codex

Every rule, and where it came from

The Codex shows every rule programme in force, which journeys use it, how many runs it has decided, and each rule beside the policy sentences it was compiled from.

  1. What is in force: 11 programmes, 49 rules, 12 journey versions.
  2. Each programme and version, the journeys that use it and the runs decided under it.
  3. Each rule in plain words, marked as a condition or a hard stop.
  4. The policy sentences it was compiled from, down to the document and line.
  5. Change the written policy, or change one rule on the policy desk.
Codex: programmes in force and each rule with the policy sentences it came from 1 2 3 4 5

Policy into rules

Turning a policy into a rule

Paste a clause from a contract or policy, and say where it comes from. Here, a controller-approval clause from an accounts payable policy.

  1. Four steps: your words, the rule, tried on past invoices, publish.
  2. Where it comes from, as you would cite it.
  3. The words, exactly as written. The rule keeps them as its source.
  4. Nothing changes until a person publishes.
Policy into rules: a real clause entered, with its source 1 2 3 4

The rule

The Codex drafts the rule

The Codex writes the clause as a rule a machine can decide, names the facts it reads, and compiles it for Arbiter. A person can edit it or remove it.

  1. One rule drafted from the clause.
  2. The rule in your words, and how much the agent may do alone under it.
  3. What it decides: satisfied, or the invoice goes to a person.
  4. The facts it reads, and which are already declared.
  5. The rule as compiled for Arbiter.
  6. Each sentence, read as a rule, in Controlled English.
The rule step: one rule drafted, its facts and its compiled form 1 2 3 4 5 6

Tried on past invoices

Tried before anyone publishes

Arbiter decides every past invoice twice, under the rules in force and under the draft, and reports what would change. It changes nothing.

  1. How many invoices it was tried on: 227, every past invoice with recorded facts.
  2. The rule's answer on each: 106 satisfied, 116 over the $25,000 limit, 5 it could not decide because the total was never recorded. Those 5 are listed first.
  3. Why, in plain words: for example "Invoice total amount $256,550.83, above $25,000: violated".
  4. Still nothing published: a person decides, and someone other than the rule's author publishes it.
The draft rule tried on 227 past invoices: 106 satisfied, 116 violated, 5 could not decide, each with its reason 1 2 3 4

Journeys

Every journey the rules run on

Each journey is published by the Codex: its stages, who it asks, and where every run is right now.

  1. All journeys at once: how many runs are moving, waiting on a person, held or done.
  2. Each journey's runs by where they stand.
  3. Its stages, with how many runs are at each one now.
  4. Who it asks: the people a journey puts questions to.
  5. Agents at work, journey by journey, as they work.
  6. What the agents did, step by step, one click away.
Journeys screen: every journey with its runs, stages and the people it asks 1 2 3 4 5 6

The Atlas

The Atlas of the rules

The Atlas lays out every programme in force, rule by rule, with each verdict on the runs, the facts each rule reads and the sentences it came from.

  1. One tab per programme in force.
  2. Each rule over time, from when its runs were decided.
  3. Each mark is a verdict the rule gave a run.
  4. How the rule was compiled, in Controlled English.
  5. The source sentences, with the document, section and line.
  6. The facts it reads, and where each one comes from.
  7. Its verdict on each run, with the run and when.
The Atlas of the rules: each rule over time with its verdicts, source sentences and facts 1 2 3 4 5 6 7

Tasks and journeys

Every definition a run worked under

Every task and journey is a versioned definition. The Codex lists each one with the runs that used it.

  1. Every definition, task or journey, by version.
  2. Open one to see what it was compiled from.
  3. How many runs used it.
Tasks and journeys: each definition by version, with the runs that used it 1 2 3

One definition

A journey definition, opened up

The vendor invoice journey as the Codex published it: its source, its compiled stages in order, and every run that used it.

  1. The journey, its version and how many runs used it.
  2. The written policy it was compiled from.
  3. Its Controlled English.
  4. Every run that used it, newest first.
  5. The steps each run took, and where it is.
  6. The compiled definition: every stage, in order.
A journey definition: source, compiled stages and the runs that used it 1 2 3 4 5 6

Recorded on CentBench's development system with demonstration data. Names, invoices and amounts are examples. See the rules at work in how it decides.