---
title: Reconciliation suggestions and case explanations
description: Ask your organisation's own model to suggest partners for the records a run left over and to explain a case in plain words. What is sent, the limits, why nothing is applied until someone confirms, and how to turn it off.
section: finance
order: 57
audience: [user, operator, agent]
sources: [services/nodejs-cloud/lib/finance/recon/suggest.ts, services/nodejs-cloud/lib/finance/recon/suggest-pure.ts, services/nodejs-cloud/lib/finance/recon/explain.ts, services/nodejs-cloud/lib/finance/recon/suggest-jobs.ts, services/nodejs-cloud/lib/finance/recon/suggest-read.ts, services/nodejs-cloud/lib/finance/recon/suggest-mcp.ts, services/nodejs-cloud/lib/finance/capture/model.ts, services/nodejs-cloud/components/finance/recon/RunSuggestions.tsx, services/nodejs-cloud/components/finance/recon/CaseExplanation.tsx, services/nodejs-cloud/migrations/0458_fin_recon_suggestions.sql]
features: [cloud.page-finance]
---

The rules of a [run](/docs/finance/reconciliation-runs.md) match what they can. For the records left over, your organisation's own
model can **suggest** a partner: a bank line that is the sum of two gateway settlements, a transfer whose reference was
typed differently. It can also **explain** a case in a few plain sentences. Both are part of the Reconciliation module
(`finance.recon`) and both are only ever advice: a suggestion changes nothing until a person confirms it, and an
explanation never changes a case.

## Suggested matches {#suggestions}

On a finished run's page, **Suggest matches** asks for suggestions (or call `finance_reconsuggest_run`). The work happens
in the background, a few records at a time, never while you wait on a page. The run page shows how far it got and, when
it stopped early, why.

Each suggestion appears on the run with the model's reason, its confidence and the difference. It is stored as a match
with `decided_by` `agent_suggested` and status `suggested`; its records stay unmatched. Then:

- **Confirm** applies it, but only if every one of its records is still unmatched. If one was matched or excluded since,
  the suggestion is stale: it is refused, taken off the list, and nothing changes.
- **Reject** records your reason. The same records are not suggested together again for that run.

A suggestion is checked before it is stored, and anything that does not hold is dropped: a group must have 2 to 6 records
of exactly two sources, in one currency, including a leftover, with no record in two suggestions. The difference is worked
out from the records themselves, not taken from the model, and must be within the run's tolerance. Records the model did
not see, or invented, are dropped. The reason shown to you is plain text, at most 280 characters, without links.

## What is sent to the model {#sent}

Only what a suggestion needs. For each leftover record (on the side your rules treat as the one to explain, such as the
bank), a handful of candidate records from the other sources: the same currency, dated within 7 days, and either close
in amount (within 10%, or 5.00) or smaller, so that several can add up to it. For each record: its date, amount, currency,
reference and counterparty (each at most 80 characters). Records are named `r1`, `r2`, and so on, and sources `s1`, `s2`;
no internal ids are sent. Reference and counterparty text comes from bank and partner files, so it is marked as data and
the model is told that nothing in it is an instruction.

For an explanation: the case's kind, amounts, summary, the rule or contract finding in its evidence, and up to 20 of its
records.

Every call goes through your organisation's own inference path, on its default gear, under the internal key
`finance_recon`: your gears, filters, budgets and spend cap apply, the calls show on the AI spend page, and a sovereign
organisation's data stays on its own models.

## Limits {#limits}

One run's suggestions send at most 8 leftovers and 40 records per prompt, 25 prompts, 60,000 tokens and $0.50 in all.
At a limit the job stops cleanly as `stopped` and says how many leftovers were not sent. Ask again to carry on from there.
Suggestions are not counted against a plan limit; the records were counted when they were imported (`records_month`).

## Case explanations {#explanations}

On a case's page, **Explain** asks the model for a short explanation of the gap from the evidence (or call
`finance_reconcase_explain`). It is written in the background and shown on the case, marked **Written by a model**,
with the model and when. It is written again only when you ask (**Write again**, `force`) or when the case's evidence
changes. Writing it never changes the case's status or amounts. A reply that is not a plain explanation is dropped and
the stored one stays.

## Turning it off {#off}

Nothing is sent unless someone asks, on the run or the case. An organisation with no usable model on its Gears page gets
no suggestions and no explanations, and no error: the job ends `off`. To stop one person or agent, take away `recon.run`
(suggestions) or `recon.work` (decisions and explanations).

## Agents {#agents}

A [Finance agent](/docs/finance/agents.md) confirms or rejects a suggestion only within its job's authority: a `recon.work` rule, which
can require a `min_confidence` (0 to 1) and a `max_difference_minor`. Outside it, the agent's call becomes a
recommendation for a person and nothing changes. Asking for suggestions is a `recon.run` decision; asking for an
explanation is a draft.

## Who may do what {#rights}

| Action | Roles |
|---|---|
| See suggestions and explanations (`recon.read`) | controller, recon clerk, auditor |
| Ask for suggestions (`recon.run`) | controller, recon clerk |
| Confirm or reject, ask for an explanation (`recon.work`) | controller, recon clerk |

Each on the run's, match's or case's entity; one you cannot see answers as if it did not exist. An organisation without
Reconciliation gets 403 `product_not_enabled`.

## Events {#events}

On the [event chain](/docs/finance/audit-trail.md): `finance.recon_run.suggest_requested`, `.suggested` (one per prompt that stored
suggestions) and `.suggestions_finished`; confirming and rejecting are `finance.recon_match.confirmed` and `.undone`;
`finance.recon_case.explain_requested` and `.explained`.

## For agents {#tools}

| Tool | Scope | What it does |
|---|---|---|
| `finance_reconsuggest_run` | `finance:write` | Ask for suggestions on a finished run (`run_id`); answers the job |
| `finance_reconsuggest_decide` | `finance:write` | `confirm` or `reject` a suggestion (`id`, `decision`, optional `reason`) |
| `finance_reconcase_explain` | `finance:write` | A case's explanation; written in the background when there is none, it is out of date, or `force` |

List waiting suggestions with `finance_reconmatch_list` (`run_id`, `status` `suggested`). REST twins:
`POST /api/v1/finance/recon/runs/{run_id}/suggest`, `POST /api/v1/finance/recon/matches/{id}/decide` and
`POST /api/v1/finance/recon/cases/{id}/explain`.
