Recurring patterns (administration)
For the person who decides when something counts as recurring, how late is late, and how much the pattern detector may do alone. How people use it is in the user guide (Recurring patterns).
Where it sits
The pattern detector is an accounting agent (Settings → Agents → The pattern detector) inside the
AI agents app (agents.accounting). Supplier bills need Payables; bank lines and bank rules
need Banking. A pattern from an app that is off is not shown.
It runs each night at 04:00 (job agents.accounting.patterns), on Find recurring patterns, and
on the agent's Run now. It is pure code: no model is called and no AI budget is used.
Settings
| Key | Default | What it does |
|---|---|---|
patterns.min_occurrences | 3 | How many bills, bank lines or journals on a steady cadence make a pattern. |
patterns.rule_after | 3 | How many identical categorisations (account and tax code) in a row propose a bank rule. |
patterns.grace_days | 3 | Days after the usual day before a bill or bank line is late in Needs attention. |
patterns.amount_band_mads | 3 | The usual amount's band: median ± this many median absolute deviations. |
patterns.lookback_days | 400 | How far back the detector reads. A little over a year finds a yearly renewal twice. |
The statistics (written, deterministic)
- Cadence: the median gap between occurrences picks weekly (5 to 9 days), fortnightly (12 to 16), monthly (26 to 35), quarterly (83 to 99), half-yearly (168 to 196) or yearly (350 to 380). The gaps' median absolute deviation must be within 2, 3, 4, 8, 12 or 15 days respectively.
- Stopped: nothing for three cadences, and it is no longer expected or proposed.
- Next and late: months-counted cadences on the usual day of the month (the median day); others
the last date plus the cadence. Late after that plus
patterns.grace_days. - Confidence = count × timing × (0.5 + 0.5 × amount), with count = min(1, occurrences ÷ 6), timing = 1 − gap MAD ÷ (2 × tolerance), amount = max(0, 1 − (amount MAD ÷ median) ÷ 0.25).
- Bank rule: lines grouped by payee (or description) and direction; a person's single-account categorisations only (not a rule's); the newest N agreeing. Its confidence is the share of the last ten that agree, over at least N. No proposal where an enabled rule already catches the newest line.
Autonomy
Both actions default to Propose, also under the autopilot's auto above confidence (they are not routine actions):
accounting.patterns.create_rule— conditions: counterparty, account. A created rule is always Propose.accounting.patterns.create_schedule— conditions: counterparty. A recurring bill only, drafting; refused alone when the amounts vary.
To let the agent create alone, set the action to Auto-post within rules, write an auto-post rule (a least confidence such as 0.9 and an amount limit), and give the agent an owner. Recurring journals are never created alone: the ledger lets only a person set one up. Undo in the agents' log deletes the rule or ends the schedule and dismisses the pattern.
Permissions
Reading needs accounting_review.read; creating, dismissing and No longer expected need
accounting_review.decide, and creating also needs the target's own permission
(bank_rule.manage, recurring_bill.manage, recurring_journal.manage). No new permissions.