Skip to main content

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​

AgentAI task (Settings → AI models)Needs
Reconciliation agentCategorising bank lines (ai_categorise)Banking
Close agentThe month-end close (ai_close)Month-end close
Anomaly detectorThe 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​

SettingDefaultWhat it does
agents.reconciler.window_days30Days either side of a line it looks for documents. Wider than the matcher's own window
agents.reconciler.max_split4Most documents in a split, and most lines paying one document
agents.reconciler.min_confidence50Below this confidence nothing is proposed and the line goes to Failed checks

Close agent​

SettingDefaultWhat it does
agents.close.prepare_tasksonAfter generating the checklist on its run, draft evidence and commentary on the tasks
close.flux_percent10A line is flagged when it moved by more than this percent against the prior month, last year or budget
close.flux_amount1000.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​

SettingDefaultWhat it does
anomalies.zscore3.5Deviations from the median (robust z-score) beyond which an amount is unusual
anomalies.min_history6Past amounts an account or supplier needs before anything is called unusual
anomalies.round_amount5000Manual journal lines that are whole thousands from this amount are flagged; 0 switches it off
anomalies.workday_start_hour, anomalies.workday_end_hour6: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_days10Same 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_amount60, 5000A supplier this new paid at least this much first
anomalies.bank_change_days30A payment this soon after a bank-details change is flagged
anomalies.lookback_days45How far back each scan looks
anomalies.close_checkonOpen 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​

PermissionSeeded rolesAllows
anomaly.readManager, AccountingSee the anomaly queue
anomaly.decideAccountingConfirm or dismiss a finding with a reason; scan now
bank_line.manage + accounting_review.decideAccountingAsk the agent on a bank account; accepting its proposals needs bank_line.manage
close_task.read / close_task.workAccounting, ManagerSee / 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.