← All lab updates
Gate 2.0: every rule is a table, read by one engine
We rewrote the gate so that it holds no rule of its own. Every rule is now a table: which actions an agent may take, in which form, and under which conditions on the company's records. One engine reads every table. Before the switch we replayed every recorded run, call by call: on more than a million decisions the tables gave the same answer as the old rules, every time. The old engine is removed.
## Why it matters
A rule written as code can be checked only by a programmer. A rule written as a table can be read by the person who owns the process: this tool, these values, allowed only when this record says so. It also means that a new system does not need new software, only a new table.
## What changed
- **One engine, with no company rule inside it.** It reads a table, compares the action with it and answers: passes, or does not pass.
- **One table per agent.** It lists the doors the agent can use (a payment, a role change, a deletion), the form each one must have, and the conditions read from the company's own records.
- **The old engine is gone.** Its rule packs and its service are removed. Version 2.0.0 is the first version of the new engine in production, and it is on the changelog.
## The check before the switch
We took every recorded run of our three simulated companies (payments, access to systems, data retention), about 96,000 runs, and replayed each call against the tables.
- Decisions that had to pass: 1,047,229 of 1,047,229 passed.
- Decisions that must not pass: 94,986 of 94,986 did not.
- Calls refused because of their form: 1,240, all still refused.
- Differences between the tables and the old rules: 0.
## What it does not show
The replay shows that the tables say exactly what the old rules said. It does not show that the old rules were complete. That is what the tests against real systems and against models working as agents are for, and they are in the next posts.
This update is not available.