Eleven posts of failures and fixes, boiled down to ten lessons for anyone building an AI-assisted operating system of their own, and the four patterns underneath them.
On 27 February, the day after I moved my notes into one folder, one of my first automations logged “Forwarded” for every message it handled, and nothing arrived. The lesson I wrote down that day still heads the list: working is checked where the thing is supposed to arrive.
Eight months later the list is long. This last post keeps the ten lessons I would want if I started again, in that order, each with its source and one thing to do. The AI wrote many of the failures behind them, and most of the fixes.
1. Check the thing, not the claim
A status, a log line, a passing test and a task note are all claims; the evidence sits where the work should land. In the four weeks from 7 July my monitoring caught and acted on 4 of 25 failures; twelve were found by accident (post 6). A weekly archive copy, counted by an audit as my second copy, had never once succeeded. Fallback tests passed seven of seven in 0.00 seconds without touching the network.
Do this: write “verified how” next to every “done”, and list your expected jobs with their rhythm, so a job that leaves no trace is a finding.
2. A rule broken twice belongs in code
Saying a rule louder changes nothing; a refusal in code does. On 15 September Claude audited my ten hard rules: four enforced or backstopped by code, four detected afterwards, two resting on attention alone, and both of those had broken more than once (post 7). The rules that mattered most held, with no violation in 635 archived sessions (post 6), because my mail tool will not send without a switch the model cannot set.
Do this: mark every rule enforced, detected or attention only, and when one breaks twice, move it up a rung instead of rewriting it.
3. One system of record, one creator, and the rules inside it
A rule in a prompt holds while every session reads it; a constraint in the database holds for every writer. My ledger moved into a database in an afternoon on 14 June. On 1 July, 32 writers made 6,634 edits; 3,249 audit entries had no name, and two automations each created a row for one purchase (post 5). Since 1 July only bank import may create a row; since 2 July the database rejects an unnamed write and locks confirmed fields, and a lease admits one writer at a time. Elsewhere, my sessions overlapped on 60 of 76 days with little damage, so four rules about writes replaced locks (post 11).
Do this: give one automation the exclusive right to create each kind of record, and lock only where you have counted damage.
4. What must happen runs on what is always on
A job that needs a sleeping machine fails quietly. My home server’s alerts ran through a bridge on my laptop until 27 July, so they died whenever the lid closed; on 2 October a nightly secret scan ran only partly because the laptop slept (post 4). My notes sync hung on a server for three days in August without a word (post 11). Three questions now place every job: can my tools reach it, does it need storage or a graphics card, must it happen while I am away? As of 10 October, 67 of 101 scheduled jobs run on the home server, Yavin*.
Do this: take the laptop out of every path that must work, and test your alerts by closing the lid.
5. Build supervised, run unattended
Privilege with nobody watching is the line to draw; a program on a timer is not an unsupervised agent. On 16 September the safety layer in Claude’s tools refused, twice, to let a background agent finish privileged server work while I was away (post 9). It was right: the same day a detached crawler ran for 3 h 10 min, logged 67,251 “too many requests” errors and throttled my drive. A question found it, not a system. Privileged steps now happen live with me; the nightly Claude run has a deny list (sudo, delete, commit, push) and stops after 45 minutes.
Do this: write down which steps need privilege before you start; give every detached job a versioned path, a time limit and a watcher that asks whether it is making progress.
6. Ask what the largest thing a tool can return is
Secrets leak through tool answers, not through what you type. A search of my session archive on 26 August found 124 distinct secrets in 11,821 places, most returned verbatim by tools; on 23 September a stock password-manager connector put about a dozen passwords into one transcript during two folder moves (post 8). A tool that prints only names, folders and dates cannot leak a value it does not have. Archives are immutable on purpose, so I rotate rather than redact. Rotation has its own trap: five stale copies of one changed password caused about 1,400 failed runs.
Do this: prefer tools that return a fixed set of fields, test them against a decoy vault, and check daily that every deployed copy of a secret still works.
7. Python first, the model last; measure before you train
Give each step the simplest thing that does it reliably. For weeks a frontier model stepped through a fixed script four times a day; Python took over on 25 April (post 3). Of 885 sessions, about 198 needed only Python, 401 a small local model and 286 a frontier model. On 31 August, 4 of 67 scheduled jobs called a cloud model. Before training a model of my own I wrote the decision rule, then measured: an 8-billion-parameter local model went from 22 to 70 per cent with five retrieved examples, so no training.
Do this: mark every step as fixed rule, routine judgement or judgement where quality shows, and build your test set from human corrections, not model output.
8. One origin for code; a change is done when every consumer has moved
Code outside version control, or an old path left open, is a second system nobody maintains. On 26 June Claude found three live services on my new server that were in no repository, one installed with curl, racing the real one (post 4). On 19 April a migration reported success while the deployed scanner still read the old format, and my task list stayed empty until 30 April; on 13 July a session fell back to the frozen spreadsheet and added nine rows (post 5). A new mail tool sat unused for ten days because the instructions still pointed at the old one (post 10).
Do this: make every runtime a clone that only pulls, check for drift daily, and freeze the old path in code in the same change.
9. A written purpose, and one home for every instruction
An assistant has no memory of what the system is for unless it can read it. A stocktake, a specification drafted in a day and a first decision record gave later sessions a stable why and where (post 2). On 15 September account memory and my rulebook disagreed in six places, and three rules lived only in the rulebook, so in a phone chat they did not exist (post 7). The rule since then: one fact, one home; a second copy points.
Do this: sort instructions by how far each store reaches, give requirements IDs, and look at what the model actually loads.
10. Own the data in plain text, and own only what you will maintain
Plain files keep me free to leave any app; building my own is now cheap, owning it is not. My notes have been Markdown in one folder since 26 February (post 1). When the notes app’s limits got in the way (1 GB, 5 MB per file, one month of history), Claude and I built a reader of my own in a week; at least two of my seven connectors are my own too (post 10). The bill came the same week: 27 old scheduled tasks retired, 12 of 128 checks red, half of them documentation checks, and thirteen minutes in which the home server, and the reader with it, did not answer.
Do this: write each limit down with its number, and name who maintains a tool before you build it.
The patterns underneath
The guarantee lives in a mechanism, not in an instruction. Lessons 2, 3, 5, 6 and 8 are one idea: a database constraint, a send switch the model cannot reach, a tool with no field for a secret, a refusal of privilege, a freeze in code. What held was never “be more careful”; it was a check, a hook or a refusal. A rule that is only prose is a preference stated emphatically.
Evidence before belief. Lessons 1 and 7, and the counting in 3 and 10: check at the destination, write the decision rule before the result, count before building locks, compare the copy with the original. Every check is a claim too, and must be able to go red for the right reason before I trust its green.
One home for each thing. One store per kind of data (3), one machine for what must run (4), one origin for code (8), one home for each instruction (9). Every second copy I kept drifted.
The person sits at judgement, privilege and the end of the chain. Building happens with me there; running is a program or a fenced agent with a report I read (5), and the checks end in a weekly line I expect to see (1). Not finished: nothing outside Yavin* yet watches Yavin*, and my rulebook keeps growing back.
Part 12 of twelve in the series on how I built my AI OS. Start with the preface.
The series ends here. If you are building your own, take one lesson whose failure you recognise and do its one line this week; the appendix below says what I would check first.
* Host names are changed (here: Yavin, my home server). The real ones come from a different saga.
Appendix — more detail
Where each lesson comes from
| # | Lesson | Posts | Appendix bullets it draws on |
|---|---|---|---|
| 1 | Check the thing, not the claim | 1, 6 | 1: define “working” at the destination · 6: count how failures were found; check evidence of work; register the check with the job; distrust a test that is too fast; “verified how”; a human end to the chain |
| 2 | A rule broken twice belongs in code | 7, 6 | 7: score rules on three rungs; move a rule up when it breaks twice; put the refusal in the tool; check the enforcement point; warn where judgement is needed |
| 3 | One system of record, one creator | 5, 11 | 5: runbook with gates; names on writes, locks on confirmed fields; integrity audit with canary rows; audit the audit tool · 11: count parallel sessions before building locks |
| 4 | What must happen runs on what is always on | 4, 11 | 4: take the laptop out; alerts straight from the server; tell asleep from broken · 11: name the integration layer; hub on the always-on machine; a heartbeat per client |
| 5 | Build supervised, run unattended | 9 | 9: list privileged steps first; make the running part a program; fence an agent and test the fence; versioned path, time limit, registration; back-off; record a privilege grant as a decision |
| 6 | Ask what a tool can return | 8, 10 | 8: read a connector’s tool list; prefer a projection; values machine to machine; never trace a script that loads secrets; count copies before rotating; scan the archive; rotate, do not redact · 10: what a connector must never return |
| 7 | Python first, the model last | 3 | 3: list the steps before choosing a model; retrieved examples before fine-tuning; golden set from human corrections; decision rule before the result; usage records |
| 8 | One origin for code | 4, 5, 10 | 4: one origin, pull only, daily drift check; point sessions at the real service · 5: freeze the old store in code · 10: change the instructions with the tool; merge counts as a deploy |
| 9 | A written purpose, one home per instruction | 2, 7 | 2: dated stocktake; let the AI interview you; three things from enterprise architecture; decision records; requirement IDs; a second pass · 7: sort instructions by reach; look at what the model loads |
| 10 | Plain text, and own only what you maintain | 1, 10, 11 | 1: one folder, Markdown, version control, a journal page a day · 10: limits with numbers; measure lock-in; test the copy; fix the source · 11: decide the conflict rule early; guard against the empty folder |
What I would check first in your system
- Close the laptop and wait a day. List what stopped: alerts, backups, syncs, scheduled jobs. Each one is in the wrong place (lesson 4).
- Pick your five most important automations and find their last real output. Not the status or the log line: the file, the message, the row. Anything you cannot find is a claim (lesson 1).
- Read your instruction files and mark every rule enforced, detected or attention only. Look hardest at the ones you have already restated in capitals (lessons 2 and 9).
- For each connector your assistant uses, ask what its largest possible answer is. Then search your session archive for secret-shaped strings, and report the place, not the match (lesson 6).
- Count who writes to your most important data. If more than one automation can create a record, give one of them the exclusive right (lesson 3).
- Find every job that runs without you and list what it may do. Anything with administrator rights and no time limit is the first to change (lesson 5).