Reconciliation Sign-Off Check With Claude

- You need
- An account list with preparer and reviewer, as one CSV file
- Tested with
- Claude Sonnet 5.5, made-up data, 5 Nov 2026
- Result
- 60 of 60 accounts matched the answer key
The rule we tested
Rule 3 of our prompt says two names are the same person when they are equal after removing spaces at both ends and ignoring case.
Under it RAVI SHAH and Ravi Shah are the same person (account 1220), and L. Ferrer is not Lucia Ferrer (account 1350), so that account reads "signed off".
On 5 Nov 2026 we wrote four rules in plain English, and Claude Sonnet 5.5 returned a script on the second turn.
What you need
A five-column CSV file
| Column | Used for |
|---|---|
unexplained | Rule 1. More than 1.00 in either direction is "unreconciled" and ends the check for that account |
reviewer | Rule 2. A blank cell, or a cell of spaces, means no reviewer |
preparer, reviewer | Rule 3. Equal after trimming both ends and ignoring case |
account, name | Carried to the output |
Prompt 1: ask for a plan
Attach accounts.csv and paste this. We do not publish the data, so your numbers will differ from ours.
I am the assistant controller. Before the books close I want to know which balance sheet reconciliations were actually signed off. I have one file, accounts.csv, with one row per account: account, name, preparer, reviewer and unexplained (the amount still not explained after the reconciling items; it can be negative). My rules, in order. An account gets the first one that fits. 1. If the unexplained amount is more than 1.00 in either direction, the status is "unreconciled". Nobody checks sign-off on those until the difference is explained. 2. If the account has no reviewer, the status is "no reviewer". 3. If the reviewer is the same person as the preparer, the status is "same person". Two names are the same person when they are equal after removing spaces at both ends and ignoring upper and lower case. 4. Otherwise the status is "signed off". Do not write code yet. Number the steps, say what could go wrong in each one, and list anything in my rules that is unclear.
Claude wrote seven steps and read the whole file before it answered. It listed, by account number, eight reviewers that the rule would call signed off.
Four are pairs of team names (1090, 1180, 1240 and 1410), two have a double space inside (1230 and 1360) and two are initials (1350 and 1500). It also saw two reviewer cells that hold only spaces.
It pointed out that rule 1 hides everything else: 1100 and 1110 have no reviewer, and 1000 and 1150 have the same person on both lines, but both pairs will read "unreconciled". It said it would flag the doubtful names for manual review without changing their status.
Neither script added that flag: the output has an account, a status and a reason, and the eight show up only in Claude's chat reply.
The second session's plan went further: from a hand read of the file it gave counts of 6 unreconciled, 8 no reviewer, 12 same person and 34 signed off before writing any code, and its script then produced exactly those.
Ask Claude to build it
Good, use that plan. Write one Python script, standard library only, that reads the file and writes sign_off.csv with one row per account: account, status, reason. Use Decimal for the unexplained amount and do not change my file. Run it, then show me how many accounts have each status and every account that is not "signed off".
Model: Claude Sonnet 5.5 (claude-sonnet-5-5). The script is 67 lines of standard library Python with Decimal for the amount. It found 6 unreconciled accounts, 8 with no reviewer, 12 with the same person and 34 signed off, and matched our key on all 60.
A second session with the same prompts wrote a 63-line script and matched all 60.
| Account | Preparer | Reviewer | Status |
|---|---|---|---|
| 1220 Customer deposits | Ravi Shah | RAVI SHAH | Same person (capitals do not matter) |
| 1420 Accumulated depreciation | Ayesha Khan | Ayesha Khan with a leading space | Same person |
| 1340 Prepaid software | Tomas Brandt | Three spaces and nothing else | No reviewer |
| 1230 Goodwill | Tomas Brandt | Tomas Brandt, two spaces inside | Signed off (the rule trims the ends only) |
| 1350 Loyalty points | Lucia Ferrer | L. Ferrer | Signed off (the controller decides) |
| 1180 Clearing, card | AP Team | Accounts Payable Team | Signed off (the controller decides) |
| 1100 Lease liability | Ayesha Khan | Blank, with 1.01 unexplained | Unreconciled. The missing reviewer is hidden |
| 1030 Deposits paid | Maya Chen | Ravi Shah, with exactly 1.00 unexplained | Signed off: 1.00 is not more than 1.00 |
Both sessions ended with the same warning: eight of the 34 "signed off" accounts, which carry a team name, initials or a double space as reviewer.
If the controller rules that all eight are the same person or a team reviewing its own work, the count becomes 26 signed off and 20 same person (the second session worked this out).
What ChatFin's build or buy page says
The page lists an approval workflow and an audit trail among what you get when you buy (Build vs Buy: Finance AI Agents in 2026, read on 3 Nov 2026). We did not run this check through ChatFin.
How we checked it
1. Plant the names and keep the key
The file has 60 made-up accounts and nine made-up people. Ten have a blank reviewer (two of them a cell of spaces). Eight have the same name on both lines, and six have the same person typed in another case or with a space at one end.
Four are team names, and four are name variants: two with initials and two with a double space. Twenty-eight are clean. Eight accounts carry an unexplained amount. Six are over the limit, three of them by one cent.
Two sit exactly on 1.00 and -1.00 and pass. Claude had the accounts file and nothing else; the key sat in another folder and neither session opened it.
2. Small files for the edges
We ran 27 small files through each script (25 with one account, one with the same account number twice, one with no accounts). The table groups 13 of them into eight rows:
| What we sent | First script | Second script |
|---|---|---|
| A reviewer cell holding only a tab, or only a non-breaking space | No reviewer | No reviewer |
Maya Chen prepares, Maya Chen (two spaces) reviews | Signed off | Signed off |
Maya Chen prepares, M. Chen reviews | Signed off | Signed off |
| Unexplained of 1.00, -1.00; then 1.01, -1.01 | Signed off; unreconciled | Signed off; unreconciled |
| Unexplained of 1.001 | Unreconciled | Unreconciled |
Unexplained left blank, or typed 1,000.00 | Status "data error" | Status "unreconciled" |
| The same account number on two rows | Stops, names the number | Writes both rows |
| The preparer cell blank and a reviewer named | Signed off | Signed off |
On a broken file the scripts differ: a blank amount is a "data error" status in one and an "unreconciled" account in the other, and a duplicated account number stops one and passes through the other.
3. Compare with the reference code
We generated 2,000 random accounts with three preparers, capitals, spaces at both ends, blank and space-only reviewers and amounts of 0.00, 0.50, plus or minus 1.00, plus or minus 1.01 and 250.00.
We compared both scripts with the reference code that built the key, and there were no differences. The test shares the key's reading of the rules, and it has no text amounts or duplicate account numbers.
4. Take the gaps to your controller
- Is
L. Ferrerthe same person asLucia Ferrer? The rule needs a list of accepted short forms, or a decision to treat them as the same. - Is a team that reviews its own work a sign-off? Four pairs of team names (accounts 1090, 1180, 1240 and 1410) depend on that answer.
- Is "signed off" a name in a column, or does it also need a date and some evidence? The file has neither.