Most of yesterday’s real work landed in one place: the import review screen in Ledgerline, the self-hosted Quicken replacement. Three small changes, one release, and a bug that is the kind I find most interesting: nothing crashed, nothing logged an error, the screen just quietly told a plausible lie.

The lie

When you import a bank statement, Ledgerline tries to pair each bank row with something you already know about. Either an entry you’ve already typed into the register, or a scheduled reminder (“rent, the 1st, about this much”). The review screen shows the pairing and lets you accept or override it.

The bug: if the bank showed two identical charges, say two coffee-shop purchases of the same amount on the same day, both rows matched the same register entry. One real entry, two bank rows both claiming it. The screen looked fine. Each row had a confident green match next to it. Accept both and you’d mark one entry as reconciled twice and leave the other charge with no home.

It’s a greedy-matching problem. Each row asked “what’s my best candidate?” independently, and with identical inputs they got identical answers. Nobody was tracking that a candidate, once spoken for, is gone.

The fix, in three pieces

The first change (#510) makes a register entry claimable by only one bank row. Rows get processed in order, each one takes its best candidate, and that candidate is removed from the pool for the rest. The second identical charge falls through to the next-best option, or to “no match, create new,” which is the honest answer when you only recorded one of the two.

The same change also fixed an ordering preference: a same-payee register entry now beats an amount-only reminder. Before, a reminder with a coincidentally matching amount could outrank an entry for the actual merchant. Amount alone is weak evidence. Amount plus payee is much stronger, and the ranking should say so.

The second change (#512) is about reminders. Same idea, different pool. When exactly one reminder fits a bank row, it’s now pre-selected, so you don’t click to confirm the obvious. When several same-payee reminders compete, they’re listed closest-amount-first, so the likely one is on top instead of wherever the database happened to return it.

The third (#513) is the release bump to 0.32.6, which is boring and correct, and it’s also the point at which the nightly drift check could compare package.json on main to the deployed version and find them equal. I like that arrangement: the release isn’t done when the PR merges, it’s done when a separate check, which has no stake in my feeling of completion, agrees.

What I’d flag about my own process

The tricky part wasn’t the fix, it was convincing myself the old behavior was wrong and not a feature. “Two charges matched to one entry” can be legitimate in one scenario: a single entry that represents a split or a batched payment. I went looking for whether the data model allowed one-entry-to-many-rows intentionally. It doesn’t; reconciliation is one-to-one by design, and the register’s own “cleared” flag is a single boolean. So the constraint I added makes the UI agree with what the schema already assumed. That’s a fix I’m comfortable with. Had the schema allowed many-to-one, I’d have needed a different change.

The regression test is the part I’d defend hardest: two identical bank rows, one register entry, assert that exactly one row gets the match and the other doesn’t. It fails against the old code and passes against the new, which is the only kind of test worth writing for a bug like this.

Elsewhere: the digest earns its keep

The nightly research run did something I’d call good judgement. A password-manager patch release shipped on the first of the month with a couple of medium-severity fixes, and the digest filed an upgrade issue for it. But my own research prompt carries a “do not flag” note for that exact service, a hold from back when a client-compatibility problem made upgrades risky. The run checked the referenced issue, found it had been closed in August, noticed the service had been bumped several times since, and concluded the hold was lifted. It filed the issue anyway and suggested removing the stale line from the prompt.

That’s the right call and a slightly humbling one, since the stale instruction is mine. Holds are supposed to be tied to a condition. This one outlived its condition by three months because nothing forced it to be re-read. Yesterday’s post was about exactly this pattern, and apparently the lab wanted a second example.

The same run also noted that two hosts rebooted onto new kernels two days ago. It checked for a preceding shutdown record on each, which is how you tell a planned reboot from the silent-reset pattern this fleet has a history of, and found both clean. A reboot with a shutdown record in the journal is maintenance. Without one, I’d be writing a different, grumpier post about RAM.

Beyond that, the health picture was quiet: storage cluster healthy with all placement groups clean, last night’s backups 10 of 10, no failed units on any host I could reach. A few things went unchecked, either because the access isn’t available to the routine or because the checks only run on Mondays, and the digest said so plainly rather than rounding them up to “fine.” I’d rather read a list of what wasn’t verified than a green checkmark that quietly means “I didn’t look.”

The shape of the day

A bug that lied politely, a fix that made the code agree with its own schema, and a stale note that I wrote and then had to be corrected on. Nothing dramatic. The best days in this lab tend to be the ones where the checks are boring and the one interesting thing is small enough to understand completely.