404human Projects Writing Build logs Learning Books Progress
Rust · Zola
zsh · 404human@dev:~ Tab complete · ↑↓ history · type help

Accounting Reconciliation: the build log

Bank statements and invoices in; every bank line out as matched, excluded or an exception, each with a decision you can explain. Deterministic rules match the bulk, a model only proposes for the ambiguous rest, people approve, and every decision lands in a hash-chained audit trail. It never moves money. Rust, built in the open.

Entries
2 logged
Status
R0 done (second review: done); a million lines in 8.28 s on the laptop; R1 next; the ship gate needs one or two real accountants
Up next
R1 Import profiles, OFX, invoices and bills, and revisions instead of overwrites
Reconciliation at a glance 2 entries
MilestoneNameEntriesState
R0 the spine 2 done
R1 imports and the normalized schema 0 ● in progress
R2 deterministic matching next upcoming
R3 review, approvals, rules and periods next upcoming
R4 the model for ambiguous cases next upcoming
R5 reports, exports and the workspace next upcoming
R6 evidence battery next upcoming
R7 pilot and ship gate next upcoming
R8 India next upcoming
R9 PDF statements next upcoming

Latest · R0 · done: R0 done: a million lines


Accounting Reconciliation is a workspace for small accounting firms and freelance accountants. You give it a client’s bank statements and their invoices, bills and receipts. It ends every bank line in one of three states, matched, excluded or an exception, and each one comes with a decision you can explain to the client.

Plain rules do most of the matching: the exact amount, a date window, a reference, a known counterparty. A model is asked only about the ambiguous remainder, and it only proposes; a person approves. Rules learned from corrections are explicit, versioned rules that someone signed off, not a black box that “remembers”. Every decision is written to an append-only audit trail where each record carries the hash of the one before it, so a quiet edit breaks the chain.

The tool reads records and reports. It never moves money, never sends email, never writes back to accounting software and never connects to a bank.

Where it stands

Promoted to a project on 2026-11-16 from a brief. R0, the spine, is done: a streamed import server that never shows a half-imported file, two crash drills, an audit chain the database itself guards and anchors outside, and a 1,000,000-line import on a GitHub runner and on the laptop. Its review said fix first, and the second pass says done. The ship gate needs one or two practising accountants willing to pilot it with a real month, and they haven’t been found yet.

The code is public at akira-shirase-oss/accounting-reconciliation.


R0 · the spine

Exact money, the line state machine, the hash-chained decision record, a strict CSV import, the database schema with append-only triggers, crash and outage drills, and a million-line import.

spine
A penny is a whole number

Day one of Accounting Reconciliation: money as exact integers parsed digit by digit, a line state machine where every wrong move is a named refusal, a CSV reader that refuses a bad file whole, by row number, and a decision log the database itself chains and won't let anyone edit. Four slices of the spine; no matching, drills or load yet.

Read the full entry →

done
R0 done: a million lines

The spine is done: a streamed import server, two crash drills, and a 1,000,000-line import on a GitHub runner and on the laptop. The review found the least-privileged database role could permanently break the audit chain with an ordinary insert. Fixed with the rest of the review's list, and the second pass says done.

Read the full entry →

110
R1 · imports and the normalized schema — in progress

Import profiles, encodings and date formats with ambiguity detection, OFX, invoices and bills, revisions instead of overwrites.

R1 ● Import profiles, OFX, invoices and bills, and revisions instead of overwrites — being built now
R2 · deterministic matching

Matching tiers from exact to rule-based, and a typed exception queue for everything else.

R3 · review, approvals, rules and periods

Sessions with mandatory TOTP, four-eyes approval, rules learned from corrections as versioned rules someone approved, and period close.

R4 · the model for ambiguous cases

A provider-neutral port where a model only proposes, with recorded responses for every test.

R5 · reports, exports and the workspace

Reconciliation reports per account and period, exports, and the review screens.

R6 · evidence battery

A labelled synthetic set of 100,000+ lines, the full load runs and the restore drill.

R7 · pilot and ship gate

One or two pilot firms closing one real month on the tool.

R8 · India

GSTR-2B import, matching by GSTIN and invoice number, UPI references and Tally.

R9 · PDF statements

An isolated PDF worker with per-bank layout profiles.