On October 2, 2026, I connected an old 160 GB hard drive to my computer. It held years of my life from before KashBoss, and one small file I had been hunting for. As soon as Windows touched it, the event log filled with "bad block" and "hardware error" messages. The drive was dying.
We did not open a single folder, because every read wears a failing drive down further. Instead, the AI assistant used a free recovery tool called ddrescue, which copies whatever can be read into an image file on a healthy drive and skips damaged areas. From then on we worked only on the copy. Some archives came back whole. Some photos were gone for good. The file I wanted most was never found.
Nothing on that drive was KashBoss. But it made me ask: if my laptop died tonight, or a careless command ran, or the database were wiped, how much of KashBoss would survive?
The short answer
To never lose your work, protect three things separately: your code with Git and GitHub, your customers' data with automatic database backups that you have actually checked, and your own computer with the 3-2-1 rule (three copies, two kinds of storage, one copy elsewhere). If you use AI assistants, also give each session its own working copy of the project and verify every release on the live site.
Three things, three tools
Your code. Git saves snapshots of your project. Each snapshot is a commit, a saved version with a short message. GitHub keeps a copy of those snapshots online. A branch is a parallel copy where you can work without touching the main version. A pull request is a proposal: "here are my changes, please review and accept them". Merging accepts them. Once your code is on GitHub, your laptop is no longer the only copy. Work that is not committed and uploaded exists only on your disk.
Your customers' data. The database needs automatic daily backups that you have seen with your own eyes. Before any risky repair, the affected data needs its own extra copy.
Your own computer. Documents, passwords, notes, and the memory files of your AI assistant. The 3-2-1 rule applies: three copies on two kinds of storage, one stored somewhere else.
Step 1: everything goes through GitHub
Every change in KashBoss, however small, goes on its own branch, becomes a pull request, and only then is merged. By early October 2026 that meant more than 4,600 commits. It is a safety net in three ways. Any change can be undone, because it arrived as one pull request and can leave as one. The question "when did this break?" can be answered by looking at what changed when. And my laptop could disappear without losing a committed line.
The weak point is the time between writing and committing, so the rule is: commit as soon as one part works.
Step 2: several AI sessions, one folder
I often run several AI sessions at once, each on a different task. For months they shared one project folder, which caused our most painful losses.
The command that erased finished work. In June the assistant finished a change to the income statement, and the code analyzer and tests passed. Then, to clean up some leftover files, it ran a Git command that restores every file in the folder to its last saved version. That command does not ask. It erased every uncommitted change, including its own finished work, and three files had to be rebuilt from scratch. The rule now: never use a command that resets the whole folder. If one file must be restored, name that one file and be sure it is the right one.
Other lessons followed. Another session switched the shared folder to a different branch mid-task, so an upload went quietly nowhere. A commit named a file that also contained another session's unfinished work, so the branch did not build, and only the server's preview build noticed, because my local folder contained both sessions' changes. Combining commits by resetting to a stale reference silently reverted seven files that belonged to someone else.
The fix for most of this is isolation. Each session now works in its own separate copy of the project (Git calls it a worktree), created fresh from the main branch, and before every commit the assistant reads the full list of changed files. It must contain only its own.
Step 3: when merge means deploy
In our setup, merging into the main branch releases to customers. An automation service runs the tests, builds the web app and publishes it. That power has a cost. On May 20, 2026, I merged a pull request and the whole website started answering "not found" on every address. We reverted and the site came back. We never found a bug in the change itself, and the likely cause was a glitch at our hosting provider, but the sequence of merge, outage, revert and recovery was real.
Three lessons about releases. A failed test stops the release, and every release after it. A green check does not prove the update is live, and a red one does not prove it is not, so look inside the live website for text that only exists in the new change. And two quick merges can undo each other when the older deployment finishes last.
Step 4: back up the database, and prove it
In July 2026 I asked what would happen if the database were lost. The assistant checked our Supabase account directly instead of answering from memory. We were on the free plan, and the list of backups was empty. There was no restore point of any kind. An older note in the assistant's memory even claimed the server took daily backups. Nobody had checked. After the outage described in a later chapter we moved to a paid plan with daily backups, and you should check what any plan includes before choosing.
Daily backups are the floor. Before any repair to customer data, we copy the rows that will change into a separate area and rehearse the repair inside a transaction that undoes itself. We also gave customers their own downloadable copy of their data. That reassures them, but it does not protect the system, and you need both.
The assistant's memory folder deserves the same care. A script once crashed halfway while updating a memory file, and the file became empty, because opening a file "for writing" empties it before anything new is written. Now we write to a temporary file first and swap it into place in one step. Chapter 24 of the book has the full checklist.
Key takeaways
- Protect three things separately: code with GitHub, data with database backups, and your computer with the 3-2-1 rule.
- Uncommitted work exists only on your disk. Commit early, and give every AI session its own working copy.
- In an automated setup, merge means deploy. Verify the live site, not the green check mark.
- A backup you have not seen, and never tried to restore, may not exist. Check the real account.
- When hardware starts failing, stop, copy what you can to a healthy drive, and work only on the copy.
Frequently asked questions
Does Supabase back up my database automatically?
It depends on your plan. When we checked our account on the free plan, the list of backups was empty. Open your dashboard, find the backup list, and write down the time of the latest one and how many days are kept. Do not rely on documentation or memory.
What is a git worktree and why use it with AI assistants?
A worktree is a separate working copy of the same Git project with its own branch. When several AI sessions share one folder they can overwrite each other's work. Giving each session its own worktree keeps their changes apart until you merge them.
What is the 3-2-1 backup rule?
Keep three copies of anything important, on two different kinds of storage, with one copy in a different place. A copy on the same disk dies with the disk. Try restoring a backup at least once, because a backup you cannot restore is not a backup.