AI quality and evaluations: setting them up
For the person who decides which accounting agents run, on which model, and what they may do alone.
What it reads
Books → AI quality needs no configuration. It reads every accounting
agent's model calls and what became of them, under the Accounting agents
app (agents.accounting). With the app off, the screen and its routes are
hidden (403) and nothing is lost: re-enabling it shows the history again.
| Permission | Default roles | Grants |
|---|---|---|
ai_quality.read | Admin, Manager, Accounting | The screen, its trend and its runs. Reads only |
There are no settings and no rules. The window is chosen on the screen (at most 400 days; ninety by default).
Using it before you widen an agent's autonomy
Under Settings → Accounting agents an action can be set to Auto-post within rules. Before you write a rule:
- Look at the agent's Accepted as proposed rate over enough runs (tens, not a handful). A high override rate means people are correcting it.
- Write the rule narrowly — one counterparty, a low limit.
- Watch Posted alone and stood (auto-post precision). Anything people undo lowers it: narrow the rule, lower its limit, or switch the action back to Propose.
When the model or the prompt changes
Every agent's instructions have a key and a version (for example
categoriser.categorise v1), recorded on each run. A product release that
changes the words changes the version, so the screen shows the old and the
new apart. Changing the model a task uses (Settings → AI models) does not
change the version; compare the weeks before and after the switch on the
trend.
The offline evaluation (for operators)
Each agent has a golden set: invented bills, contracts, bank lines, reminders, month-end cases and questions, with what the agent must make of them. Before switching a company to another model, an operator can run the sets against that company's configured model:
erp ai eval --provider configured --entity <slug> # every agent
erp ai eval --provider configured --entity <slug> --agent bill_reader
It prints each agent's pass rate, field accuracy (amounts to the cent,
accounts and customers exactly), refusal correctness, units and latency, and
writes a JSON report (--report, default ai-eval-report.json). It exits 1
when an agent is below its set's thresholds. The calls are real and count
against that company's AI usage like any other. Nothing in the company's
books is read or written; the cases carry their own invented data.
Without --provider configured the command replays answers recorded with the
sets: no model is called. That is what the product's own build runs.
How it interacts with other apps
- Review queue (
accounting_review.decide), the bill and contract readers, collection drafts, banking's proposals and the proposals inbox are where the decisions it counts are taken. - AI models: the model a run used is shown on each run.