Entry 08

Bugs that never complain

The worst problems of the build all reported success. A collection of silent failures, the robot that froze every morning waiting for someone who wasn't there, and a checklist to catch them in your own system.

Covers June – October 20264 min read

For four months, a set of scheduled jobs on my home PC failed every single time they ran. Windows showed a green tick for every run.

I found out on 12 October. Each run had stopped on a “not logged in” error. The scheduler only cared that the job had started.

A crash is easy. The screen goes red, someone phones me, we fix it. The problems that cost us most this year never made a sound. Each one reported success, or showed a number that looked reasonable, while doing nothing at all. Here is the collection so far.

Things that said OK and did nothing

The AI that was never switched on. At the end of June the in-app assistant and the document scanner both answered “not configured”. The setting that held the AI key had its name in the wrong capitalisation. Testing had looked fine, because the login check ran first and rejected the test before the key was ever needed.

The money table that saved nothing. On 4 August we found that the trip sheet’s money breakdown had never saved a single row since launch. The database rejected every write because of a calculated column, and the app never looked at the answer. About 215 rows had to be rebuilt from other records.

Deleted orders that came back. In August, deleted diesel orders and cash vouchers kept reappearing. Part of the cause: the database’s permission rules matched no rows, deleted nothing, and reported success.

Totals from half the book. On 1 September the summary cards on the invoices page turned out to add up only the latest 500 invoices. I had been reading those totals as the real figures.

“Sent” meant something else. The next day we learned that an invoice marked “sent” only meant its figures were locked. The app had never emailed anything to a client. When we started using the email function, it failed on a missing setting, and by early October the log held 58 of those failures. Not one message had gone out.

A background job that died for five weeks. On 23 September Claude found that the job that learns our trucks’ regular stopping places had reported “started” on every run for five weeks while dying in the background. It asked the database for 499 trips in a single web address about 19,600 characters long, more than twice the limit.

Closures that closed nothing. The same day: when a clerk closed a trip, the trip closed but its loads did not follow, because her login was not allowed to update them and the database refused quietly. 248 loads were stuck half-finished.

The thousand-row ceiling. Our database hands back at most 1,000 rows per request unless you ask for more. Several reports were quietly cut short. On 12 October the fuel page turned out to be hiding 478 open orders.

The robot that froze

From the middle of August a routine ran every morning to file new workshop invoices. Three times it simply stopped.

Each time it had reached something that needed a click to approve, and nobody was at the PC. The first time, the approved commands had been saved with exact file names, so a new file name did not match. The second time it was my own rule: the gate that blocks every tool until the AI has checked its memory also blocked the tool it needed to check its memory. A perfect deadlock. The gate now opens after three refusals. The third time, the AI improvised a command in a shape the approved list did not cover.

Claude refused to widen its own permissions for unattended runs. I made that change by hand, which I think is the right way round.

Build it yourself: a silent-failure checklist

Print this and run through it whenever something new goes live.

After any change that writes data

  • Look in the database and confirm the rows are there, with the right values. “Saved!” on screen proves nothing.
  • Check the error log for the last hour, even if nobody complained.

For every report and list

  • Does the number of rows match a simple count straight from the database? If not, you have probably hit a row limit.
  • Do the totals match a manual sum of a small sample?

For permissions

  • Test as the least powerful user who does the job (the clerk), never only as the administrator. Several of our silent failures only happened under a clerk’s login.
  • When an action is refused, does the user see a message? Ask the AI to make every refusal visible.

For settings and keys

  • Test the feature end to end, not just the login in front of it.
  • Copy setting names exactly; capitalisation counts.

For scheduled jobs

  • Have each job write “finished at” with a time and a short result somewhere you look daily.
  • Alert on a missing “finished”, not only on a failure.
  • Design for an empty room: run the job once by hand and note every prompt that asks for approval. Each one will appear at the worst moment.
  • Give every blocking rule an escape hatch.

For status words

  • For every status in your system (“sent”, “closed”, “paid”), write one sentence saying exactly what has happened when it shows. Then check that it has.

What I do differently now

I no longer believe “OK”. I check what was written, I test as the clerk, and I watch for the job that has not reported in. It is dull, and it is the reason the system can be trusted.

Next: a payroll audit where the AI and I took turns being wrong, and the note it saved to its memory afterwards.

Written from my build notes. I keep a running memory of every session with the AI, and each entry is drafted from those notes with Claude's help, then checked and edited by me.

A question about this entry? Ask it here →