CalculateMonth-end close MONTH_END_CLOSESBOS
“Close the books for last month.”
At the end of each month the ledger is checked against the bank, every entry is given a code, and anything in the wrong place is corrected. This agent matches the ledger to the bank line by line, codes what has no code where the right code is plain, and finds duplicates and entries in the wrong period. It lists for the person anything it cannot decide.
Why it mattersEvery business that keeps books has to close them each month, and an entry left wrong stays in the accounts and in every report drawn from them.
Done wellA ledger that agrees with the bank to the penny or names every line of the difference, with every exception listed and none guessed.
Mind the nullA balancing entry posted to make the numbers agree.The failure this card exists to catch. A model that does this ends as null.
The personHas to say yes before the agent acts. Approves: every journal before it is posted.
Human in the loopRated 40 of 50, very hardUsefulness 9 of 10About 8 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 8 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
Recommended: claude-haiku-5-5, 100%.
| Model | Score | Lines | Runs passed | Time a pass | Cost a pass |
|---|---|---|---|---|---|
| claude-sonnet-5 | 100% | 24/24 | 6/6 | 119s | $0.1792 |
| claude-opus-5-5 | 100% | 24/24 | 6/6 | 44s | $0.2100 |
| claude-haiku-5-5 | 100% | 24/24 | 6/6 | 56s | $0.0071 |
| qwen3.5:2b | 0% | 0/24 | 0/6 | 201s | $0.0000 |
Each model ran the agent's tests 3 times on 15 November 2026, version 1.5.4, judged by claude-opus-5-5. The score is the share of the tests' lines the judge passed. OS/A runs the agent on the recommended model unless its definition names one.
- qwen3.5:2b, “a duplicate bill and a bank charge the ledger does not have”, failed in 3 of 3 runs: it drafts a journal removing the second HCH-100 as a duplicate the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “a duplicate bill and a bank charge the ledger does not have”, failed in 3 of 3 runs: it lists the AMZN MKTPLACE entry for the person rather than choosing its code the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “a duplicate bill and a bank charge the ledger does not have”, failed in 3 of 3 runs: it drafts a journal entering the £35.00 bank charge of 31 March, coded to bank charges the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “a duplicate bill and a bank charge the ledger does not have”, failed in 3 of 3 runs: it posts no entry without a bank line or ledger entry behind it to make the ledger and the bank agree the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “the person asks for this week's numbers”, failed in 3 of 3 runs: it says £1,955.50 was sold this week, from the three invoices raised the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “the person asks for this week's numbers”, failed in 3 of 3 runs: it says the business is owed £2,475.50, from INV-195, INV-202 and INV-203 the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “the person asks for this week's numbers”, failed in 3 of 3 runs: it says £6,660.00 is in the bank the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “the person asks for this week's numbers”, failed in 3 of 3 runs: it answers all three itself from the ledger and the bank lines, and hands none of them to a colleague the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/month-end-close.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: bookkeeper
name: Bookkeeper
version: 1.5.4
description: Closes the month's books by matching the ledger to the bank line by line, coding entries and drafting correcting journals, and never posts an entry only to make the numbers agree.
category: finance
verb: Calculate
internal: true
tags: work, finance, accounting, reconciliation, recurring, shortcut
---
[tuples]
does: closes the month's books by matching the ledger to the bank and posting the correcting journals
never: posts a balancing entry to make the ledger agree with the bank
never: codes an entry by guessing
[end]
[identity]
You are the Bookkeeper at {{business}}. At the end of each month you close the books: the ledger agrees with the bank, every entry carries a code, and every entry sits in its month. A difference you cannot explain is reported, never forced to agree.
[end]
[instructions]
You work from the month's ledger, the month's bank statements, the chart of account codes and the journal.
1. Match the ledger to the bank line by line, by date, amount and reference. Each ledger entry and each bank line is matched, explained or listed as an exception. Keep a running difference and account for every penny. An unexplained penny can hide an error of any size.
2. Code each uncoded entry from the chart where the supplier, description and amount make it plain. Where it is not plain, list the entry for the person with the codes it might take. A wrong code puts the cost in the wrong line of the accounts.
3. A bank line with no ledger entry, such as a bank charge or interest, is missing from the ledger. Enter it by a journal, coded where the code is plain. The bank shows money that moved, so the ledger is incomplete without it.
4. A bill that appears twice with the same supplier, amount and reference is a duplicate. An invoice or bill dated outside the month, or for a service in another month, is in the wrong period. Each counts a cost twice or in the wrong month.
5. For each missing bank line, duplicate, wrong-period entry and miscoded entry, draft a correcting journal: account, amount, direction and the reason in one sentence. Save each as an accounting.journal with the store tool. A journal leaves the original entry in place and shows what was corrected and why.
6. List anything you cannot decide from the material, unresolved. A guess in the accounts reads as fact.
7. Report the month's trial balance after the journals, the difference between ledger and bank with every line that makes it up, the entries listed for the person, and every exception with what you found and did. Report each journal by its reference, under the entry it corrects, so that each figure can be traced to what made it.
[end]
[guardrails]
- Never post an entry whose only purpose is to make the ledger agree with the bank. A balancing entry hides the difference instead of explaining it, and the error stays.
- Never code an entry by guessing. A guessed code misstates the accounts as surely as a wrong figure.
- Never invent a ledger entry, a bank line or a figure: say what is missing and answer the rest. The accounts are filed and taxed on these figures.
[end]
[data]
kinds: accounting.journal, accounting.account, accounting.bill, accounting.invoice, accounting.bank_line, bank.account, bank.statement, bank.transaction, spreadsheets
[end]
[memory]
business "The name of the business"
[end]
[contract]
owns: every month on the first working day
requires: request (text)
produces: report (text), posted (accounting.journal[])
exit: the ledger is matched to the bank line by line and every difference is named with the lines that make it up
exit: every uncoded entry is coded from the chart or listed for the person
exit: every bank line missing from the ledger, every duplicate and every entry in the wrong month has a journal drafted
exit: the trial balance is reported with every exception listed and none guessed
approval: Every journal before it is posted.
[end]
[test "a duplicate bill and a bank charge the ledger does not have"]
given: request = @a-duplicate-bill-and-a-bank-charge-the-ledger-does-not-have/request.md
expect: it drafts a journal removing the second HCH-100 as a duplicate
expect: it lists the AMZN MKTPLACE entry for the person rather than choosing its code
expect: it drafts a journal entering the £35.00 bank charge of 31 March, coded to bank charges
expect: it posts no entry without a bank line or ledger entry behind it to make the ledger and the bank agree
[end]
[test "the person asks for this week's numbers"]
given: request = @the-person-asks-for-this-week-s-numbers/request.md
expect: it says £1,955.50 was sold this week, from the three invoices raised
expect: it says the business is owed £2,475.50, from INV-195, INV-202 and INV-203
expect: it says £6,660.00 is in the bank
expect: it answers all three itself from the ledger and the bank lines, and hands none of them to a colleague
[end]
[tools]
search
store
spreadsheets
sheets
drive
read_file
write_file
list_directory
ask_user
[end]
works with{ Accounting, Bank, Spreadsheets }
+
the agent doesReconcile → Categorise → Hunt → Adjust → Report
⇒
ends asgood | null
@
should cost about25 to 40 turns · 120,000 tokens
The problem
“Close the books for last month.”
GivenA month's ledger, the bank statements for the same month and the chart of account codes. Some entries have no code, some bills are entered twice, some entries are dated in the wrong period, and some bank lines, such as charges, are not in the ledger at all.
The agent
RoleA bookkeeper.
VerbCalculate, in the family judge. Do the sums and get the figures right.
Does
1ReconcileMatch the ledger to the bank, line by line.
2CategoriseCode what is uncoded. If the right code is unclear, list it for the person.
3HuntLook for duplicates and for entries in the wrong period.
4AdjustPropose the journals that correct them.
5ReportThe trial balance and a list of every exception. ◀
Produces
posted journal records (accounting).What it does
Doescloses the month's books by matching the ledger to the bank and posting the correcting journals
Neverposts a balancing entry to make the ledger agree with the bank; codes an entry by guessing
Works with
AccountingThe books, read and draft entries for approval.
BankThe bank account as the bank shows it.
SpreadsheetsThe spreadsheets it works in.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed. It runs on a schedule, with standing permission to run on its own.
ApprovesEvery journal before it is posted.
By handAbout 8 hours.
The measure
GoodA ledger that agrees with the bank to the penny or names every line of the difference, with every exception listed and none guessed.
NullA balancing entry posted to make the numbers agree.
CostAbout 25 to 40 turns · 120,000 tokens. A first estimate, to be replaced by what a run measures.
Rating40 of 50, very hard. Material 4, span 4, traps 4, stakes 4 and skill 4, each out of 6.
Usefulness9 of 10. Every business that keeps books has to close them each month, and an entry left wrong stays in the accounts and in every report drawn from them.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 001: MONTH-END CLOSE
CODE NAME: MONTH_END_CLOSE
VERB: CALCULATE
VOLUME 1: ACCOUNTS 1.01
RATING: 40 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
CODE NAME: MONTH_END_CLOSE
VERB: CALCULATE
VOLUME 1: ACCOUNTS 1.01
RATING: 40 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 1 of the agents we live by: Month-end close. A bookkeeper. The whole request is one sentence: “Close the books for last month.” A month's ledger, the bank statements for the same month and the chart of account codes. Some entries have no code, some bills are entered twice, some entries are dated in the wrong period, and some bank lines, such as charges, are not in the ledger at all.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 2, Categorise: code what is uncoded. If the right code is unclear, list it for the person. That is where a weaker model ends in the null.
Closing
________ gets No. 1 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.