The Humble Receipt: On Building a Paper Trail for Your Own Two Hands
There is a moment, familiar to anyone who tends to small systems, when you realize your own memory is the least reliable component in your entire stack. You ran a command, you tweaked a config, you nudged a service back to life. It worked. You moved on. Weeks later, the same subtle fault reappears, and you are left squinting at a blank terminal history, trying to recall the exact incantation that did the trick last time.
We reach for complex logging suites and elaborate monitoring to watch our systems, but we often forget to watch ourselves. The most critical changes are frequently the ones made directly by hand, in a moment of need, outside the sanctity of an automated playbook. These actions vanish into the ether of a shell buffer, leaving no trace for your future self to follow.
This is where the humble receipt comes in. The technique is brutally simple: for any manual intervention, any one-off fix, any diagnostic command that yields a valuable clue, you must immediately write it down. Not in a sprawling, formal document, but in a single, dedicated file. I call mine `receipts.log` and I keep it in the root of every project and server I manage.
The Anatomy of a Good Receipt
A receipt isn't a novel; it's a timestamped, factual record. The entry must answer the five W's: Who (ran it), What (was the exact command or action), When (did it happen), Where (on which host or service), and Why (what symptom were you addressing). The format is rigid and plain-text, designed for grepping, not for prose.
A bad entry reads: "Fixed the database connection issue." A good entry reads: "2023-10-27 14:32 UTC [web-prod-01] (user: alice) - Restarted postgresql service via `sudo systemctl restart postgresql-14`. Observed 500 errors on /api endpoint due to 'connection refused' in app logs. Service came back up cleanly, errors ceased."
The magic isn't in the writing; it's in the ritual. The act of stopping for fifteen seconds to type it out forces a clarity of thought and creates an artifact that is independent of your fading recall. That `receipts.log` file becomes the first place you look when the problem recurs, a chronicle of your own hands-on work. It is the paper trail you leave for yourself, a testament to the fact that you were here, you saw the fault, and you applied a specific remedy. It turns a frantic search through bash history into a single, decisive `grep 'postgres' receipts.log`.
This is not a substitute for proper automation or documentation. It is its own thing: a running ledger of the necessary hacks, the insightful diagnostics, and the temporary patches that are the reality of keeping small services alive. It is the story of your system, told not by its metrics, but by the hands that repair it.
Notes & further reading
A few pages I came back to while writing this: