The reconciliation agent, the close agent and the anomaly detector (administration)
For the person setting up the three month-end agents. Each is switched on, given an owner, a schedule and a budget on Settings → Accounting agents like every accounting agent, and its thresholds are on its card there. None of them can act alone: the reconciliation agent's one action is never alone, the close agent cannot complete, review, skip or reopen a task, and only a person decides an anomaly.
What each reads
| Agent | AI task (Settings → AI models) | Needs |
|---|---|---|
| Reconciliation agent | Categorising bank lines (ai_categorise) | Banking |
| Close agent | The month-end close (ai_close) | Month-end close |
| Anomaly detector | The month-end close (ai_close) | Accounting agents |
Every call is logged in the model calls list (ai_task_runs) with the prompt's key and version.
With no model set up, the reconciliation agent proposes nothing, the close agent drafts evidence
and figures only, and the detector lists its findings with code's own sentence.
Settings
Reconciliation agent
| Setting | Default | What it does |
|---|---|---|
agents.reconciler.window_days | 30 | Days either side of a line it looks for documents. Wider than the matcher's own window |
agents.reconciler.max_split | 4 | Most documents in a split, and most lines paying one document |
agents.reconciler.min_confidence | 50 | Below this confidence nothing is proposed and the line goes to Failed checks |
Close agent
| Setting | Default | What it does |
|---|---|---|
agents.close.prepare_tasks | on | After generating the checklist on its run, draft evidence and commentary on the tasks |
close.flux_percent | 10 | A line is flagged when it moved by more than this percent against the prior month, last year or budget |
close.flux_amount | 1000.00 | …and by more than this amount |
The budget comparison uses the approved budget covering the period. With none, the commentary compares with the prior month and last year only.
Anomaly detector
| Setting | Default | What it does |
|---|---|---|
anomalies.zscore | 3.5 | Deviations from the median (robust z-score) beyond which an amount is unusual |
anomalies.min_history | 6 | Past amounts an account or supplier needs before anything is called unusual |
anomalies.round_amount | 5000 | Manual journal lines that are whole thousands from this amount are flagged; 0 switches it off |
anomalies.workday_start_hour, anomalies.workday_end_hour | 6:00 am, 9:00 pm (6 and 21) | The working day, in the company's timezone. Picked as clock times on All settings and the Accounting agents screen; 24 is the end of the day |
anomalies.duplicate_window_days | 10 | Same supplier and amount within these days is a possible duplicate. At least 1: 0 would only catch a repeat on the same day |
anomalies.new_vendor_days, anomalies.new_vendor_amount | 60, 5000 | A supplier this new paid at least this much first |
anomalies.bank_change_days | 30 | A payment this soon after a bank-details change is flagged |
anomalies.lookback_days | 45 | How far back each scan looks |
anomalies.close_check | on | Open findings in a period are a warning on its month-end checklist |
Recommended: keep the defaults for a month, then raise anomalies.zscore or
anomalies.round_amount if the queue is mostly things your team dismisses.
anomalies.round_amount and the working day are Settings → Approvals
controls (decision 14, R20): they flag manual journals, so they are changed
with approval_settings.manage or setting.manage — not with the accounting
settings permission somebody who posts journals holds — and each change and
reset is audited as anomalies.control_setting_changed. Since R21 automation
so is every threshold that decides what is flagged — anomalies.zscore,
min_history, duplicate_window_days, new_vendor_days,
new_vendor_amount, bank_change_days (the bank-detail fraud window) and
lookback_days: whoever pays the bills cannot quiet the flags on their own
payments. Only anomalies.close_check, which decides where open findings are
shown, stays under Accounting.
Permissions
| Permission | Seeded roles | Allows |
|---|---|---|
anomaly.read | Manager, Accounting | See the anomaly queue |
anomaly.decide | Accounting | Confirm or dismiss a finding with a reason; scan now |
bank_line.manage + accounting_review.decide | Accounting | Ask the agent on a bank account; accepting its proposals needs bank_line.manage |
close_task.read / close_task.work | Accounting, Manager | See / keep or discard the close agent's drafts |
Administrators hold every permission.
How it interacts with other modules
- Banking: the reconciliation agent's proposals are ordinary bank proposals, shown with the matcher's. Accepting one matches through banking's own checks. Its score is 0, so Accept all never takes one.
- Month-end close: the close agent's drafts are kept as comments on tasks. Every task still needs its preparer's and reviewer's sign-off before ready.
- Payables: a bank-details change is read from the supplier's change history. Re-approval
on a bank change (
purchasing.reapprove_on_bank_change) is separate and still applies.