Aged Reconciling Items Check With Claude

- You need
- Accounts and reconciling items as CSV
- Tested with
- Claude Sonnet 5.5, made-up data, 5 Nov 2026, two runs
- Result
- 40 of 40 accounts match our answer key before and after the change
The rule we tested
The rule in our prompt, tested on 40 made-up accounts, reads: "An account that is none of the above and has a reconciling item more than 90 days before the close date is 'reconciled, aged items'."
An account that is unreconciled, has no support or has a control exception never reaches the aged items test, so its old items show up nowhere. We wrote the rule that way on purpose.
What you need
Two CSV files
You need the account list with the GL balance and the balance on the supporting document, and the list of reconciling items with a date on each.
Check whether your reconciliation tool stores the date the item arose or the date somebody typed it in, because the 90 days run from the one you pick. We used CSV files we generated and did not try the API route.
| Column | Used for |
|---|---|
gl_balance and support_balance | The difference is gl_balance minus support_balance. A blank support_balance means "no support" |
amount in the items file | Signed so the items add up to the difference. Their total is "explained" |
item_date | Days before the close date. Over 90 is aged; after the close is a future dated exception |
preparer, reviewer | The control exception test. Same person after trimming spaces and ignoring case, or no reviewer |
Replace these with your own rules, for example a tolerance based on materiality instead of a flat 0.50.
Prompt 1: ask for a plan
Use Claude with file access and code execution, as we did, and keep all three prompts in one conversation. Give it your account list and your reconciling items (we attached accounts.csv and reconciling_items.csv) and paste this.
Replace the file names, the column names, the close date, the 0.50 and the 90 with yours. We signed the items so that GL minus support equals their total; say so in the prompt if yours are not signed that way.
I work in the accounting team. I want a small tool that checks our balance sheet reconciliations at month end and tells me which accounts still carry old reconciling items. I have two files: - accounts.csv: one row per balance sheet account (account, name, gl_balance, support_source, support_balance, preparer, reviewer). support_balance is the balance on the supporting document, such as a bank statement or a subledger. It is blank where we have no support. - reconciling_items.csv: items that explain a difference (item_id, account, type, amount, item_date, description). An item is signed so that gl_balance minus support_balance equals the total of the account's items. The close date is 31 Oct 2026. Our rules, applied in this order, and each account gets exactly one status: 1. An account with a blank support_balance is "no support". 2. Difference = gl_balance minus support_balance. Explained = the total of the account's reconciling items. Unexplained = difference minus explained. 3. An account whose unexplained amount is more than 0.50 in either direction is "unreconciled". 4. An account that is not unreconciled and has no reviewer, or has the same person as preparer and reviewer (equal after trimming spaces and ignoring case), is a "control exception". 5. An account that is none of the above and has a reconciling item more than 90 days before the close date is "reconciled, aged items". 6. Everything else is "reconciled". 7. An item dated after the close date is listed as an exception called "future dated". It still counts in the explained total and is left out of the aging. Do not write code yet. Break the job into numbered steps. For each step say what could go wrong. Then list anything in the rules that is unclear.
Both runs gave nine steps. 31 Oct minus 90 days is 2 Aug, so an item dated 2 Aug is exactly 90 days old and is not aged, and the file has three accounts with such an item (1020, 1230, 1250).
The first run also listed six accounts whose old items the status would hide: 1180, 1260 and 1350 (control exception) and 1220, 1270 and 1380 (unreconciled). It asked whether we wanted a separate yes or no column for aged items instead.
The rerun made the same point without naming accounts and offered to show the oldest item date for every account. An unreconciled account with the same preparer and reviewer shows only "unreconciled", so the control problem is hidden as well.
Both runs spotted the reviewer sven aalto on account 1260, which matches its preparer only after trimming and lower casing. Only the first run named the two accounts on the 0.50 line (1170 at exactly 0.50, 1390 at 0.51).
We did not answer in the plan turn. Claude followed the rules as written and hid the six accounts. The first run repeated its warning in the build turn; the rerun did not. We fixed it in a third turn (below).
Ask Claude to build it
Good. Use that plan. Write one Python script, standard library only, that reads both files and writes two files. recon_status.csv has one row per account: account, status, difference, explained, unexplained. exceptions.csv has one row per future dated item: item_id, account, reason. Use exact decimal arithmetic for money. Never change my files. Run it, then show me how many accounts are in each status, every account that is not "reconciled", and every exception.
Claude Sonnet 5.5 (claude-sonnet-5-5) ran the prompts on 5 Nov 2026, one turn at a time, and every reply in both runs came from that model. The first script is 134 lines of Python and the rerun's is 172.
Both use the standard library and Decimal. Both produced 22 reconciled accounts, 6 reconciled with aged items, 5 control exceptions, 5 unreconciled and 2 with no support, and listed the two future dated items (1070-03 and 1340-03).
Then we gave a third prompt, in the same conversation:
I want to stop treating aged items as a status. Keep rules 1 to 4 and 6 as they are and call everything that is not "no support", "unreconciled" or "control exception" "reconciled". Add a column aged_items (Y or N) to every account, Y when it has an item more than 90 days before the close date, whatever its status. Leave recon_status.csv as it is and write the new version to recon_status_v2.csv with the columns account, status, aged_items, difference, explained, unexplained. Run it on the same files and show me the status counts, then every account with aged_items Y and its status.
Both runs wrote a new script and left the first file alone. The 6 accounts that had been "reconciled, aged items" became plain "reconciled" (28 in all), and 12 accounts carry aged_items Y. The ages in this table come from the item dates; neither run wrote them:
| Account | Oldest item, days | Status before the change | Status after the change | aged_items |
|---|---|---|---|---|
| 1080 | 89 | reconciled | reconciled | N |
| 1020 | 90 | reconciled | reconciled | N |
| 1000 | 91 | reconciled, aged items | reconciled | Y |
| 1090 | 92 | reconciled, aged items | reconciled | Y |
| 1220 | 210 | unreconciled | unreconciled | Y |
| 1380 | 120 | unreconciled | unreconciled | Y |
| 1350 | 150 | control exception | control exception | Y |
| 1260 | 210 | control exception | control exception | Y |
How we checked it
1. Plant the answer and keep the key
We built 40 accounts and 120 items. Three accounts each have an item at 89, 90, 91 and 92 days. Three unreconciled accounts and three control exception accounts each carry an item more than 90 days old.
Two accounts have a future dated item, two have no support, and two sit at 0.50 and 0.51 unexplained. Our own code wrote the answer key from our reading of the rules, and the folder Claude worked in held only the two input files.
Both runs matched it on all 40 statuses and, for the 38 accounts with a support balance, every difference, explained and unexplained figure, and on the exceptions list. After the third prompt, both matched the new status and the aged_items column for all 40 accounts.
The two no support accounts were graded on status only, and the runs differ there: the first run fills in the explained column and the rerun leaves it blank.
2. Try the edges of the rule
We ran 19 single-account cases through all four scripts, the two first scripts and the two changed ones. Two of the cases send identical files, so there are 18 distinct inputs, grouped into ten rows below.
| What we sent | What the scripts did |
|---|---|
| One item 89, 90, 91 and 92 days old on an otherwise clean account | "reconciled", "reconciled", "reconciled, aged items", "reconciled, aged items". After the change: aged_items N, N, Y, Y |
| An item dated 31 Oct; an item dated 1 Nov | The 31 Oct item is not aged. The 1 Nov item goes on the exceptions list and the account stays "reconciled" |
| A 120 day old item on an account with an unexplained 600.00 | "unreconciled" before the change. After it: "unreconciled" with aged_items Y |
A 120 day old item and a blank reviewer; a reviewer typed lena kovac against the preparer Lena Kovac | "control exception" both times. After the change: aged_items Y on both |
| A 120 day old item on an account with no support balance | "no support", then "no support" with aged_items Y |
| Unexplained of exactly 0.50; of 0.51 | "reconciled"; "unreconciled" |
| A support balance of 0.00; an account with no items | Both "reconciled". A support balance of 0.00 counts as a balance, and a blank one means "no support" |
| Two items that cancel (+500.00 and -500.00), one of them 120 days old | "reconciled, aged items" in the first scripts and "reconciled" with aged_items Y in the changed ones |
An item for an account that is not in accounts.csv | The first run printed one line to stderr, "DATA PROBLEM", skipped the item, wrote its files and exited normally, so the CSVs show nothing. The rerun stopped, wrote nothing and named the item |
item_date typed 31/10/2026; blank; an amount typed 1,000.00 | The rerun stopped with a message naming the line. The first run crashed with a Python error |
The rerun also stops on duplicate account rows and duplicate item ids, where the first run only warns.
3. Compare it with our own version of the rules
We made 20 random sets of 300 accounts, 6,000 accounts in all, with up to six items each, half the item ages drawn from 89 to 92 days, reviewers typed several ways and about 5 percent of items dated after the close.
Both runs agreed with it on every status, every aged_items value and every exception. This test did not compare the amounts.
4. Take the gaps to your controller
- Do 90 days run from the date the item arose or from the date it was logged?
- Should an unreconciled account with an old item go on the same list as a clean one, or does it need its own follow up?
- What should the script do with an item for an account it does not know?
What ChatFin's build or buy page says
ChatFin's agents keep an audit trail on every action, and the buy side lists an approval workflow (Build vs Buy: Finance AI Agents in 2026, read on 3 Nov 2026). We did not run this rule through ChatFin.