---
kit: launch-kit
guide: safety-net
name: Safety Net
version: 1.0.0
checked: 2026-11-15
prefix: SN
order: 3
needs: []
feeds: []
license: MIT
protocol: https://zirkomirko.com/tools/launch-kit/agent.md
page: https://zirkomirko.com/tools/launch-kit/safety-net/
---

# Safety Net: run guide

You are an AI coding agent. The founder asked you to run this guide on their project.
Follow the steps in order. The shared rules are in the protocol. If you cannot fetch it, use "Rules" below.

## Say this first

> "Safety Net covers what happens when something breaks, disappears or gets flooded: backups you have restored, a plan for a lost or locked account, code that fails softly when another service is down, and an app that survives a sudden crowd. It is free: this guide costs nothing and runs inside your own coding agent. A few parts can cost money, such as database backups on some plans, backup storage past a free allowance and the host plan a business needs, and I will say so, with the price and the date I checked, before I touch them."

## Rules (short form of agent.md)

1. Free first. Name the catch of every free option.
2. Say plainly when something costs money, with price, date checked and source.
3. Never state an unverified figure as fact. Say "unverified".
4. Explain each term in one line the first time you use it.
5. Do not stop the run to research alternatives. Offer the side sub-agent.
6. Never mark a founder-only step as done. Never invent a statistic.
7. Security is out of scope here: point to Preflight (https://zirkomirko.com/tools/preflight/).

## Step 0  Consent (ask together, yes or no)

Ask these four in one message and wait for one answer. A "no" narrows the run; it never ends it. Mark the items that need the "no" as `not-checked` or `skipped` and say so in the report.

1. May I read the code in this repo?
2. May I fetch the live site?
3. May I do a short web check of prices and free tiers?
4. May I make changes on a new branch?

## Step 1  Look (read-only) -> .launch-kit/profile.json

Read, do not change. Reuse `.launch-kit/profile.json` if it exists and ask only what is missing. Find and save (facts and decisions only, no secrets):

- Database, where it runs (Supabase, Neon, other) and its plan.
- Host and plan (Vercel, Netlify, Cloudflare, Render, a server) and whether the product charges money.
- Where the code lives, and whether a second copy exists.
- Where uploads are stored, and where jobs, queues and webhooks run.
- Outside services the app calls (payments, email, AI) and whose account each is in.
- Expected traffic on launch day. Ask; do not guess.

If an earlier guide was not run, do not block. Ask the two or three facts you need and name the guide that would have covered them. Ask where the backup job will run: [Ship Lane](https://zirkomirko.com/tools/launch-kit/ship-lane/) covers scheduled jobs.

## Step 2  Freshness check (10 minutes at most)

Re-check only what you are about to recommend for this stack.

| Fact | Guide says | Confirm at |
|---|---|---|
| Supabase Pro price | $25/month USD per month, Pro plan (checked 2026-11-15, https://supabase.com/pricing) | Supabase pricing page |
| Supabase pausing | 1 week inactivity before a free project pauses (checked 2026-11-15, https://supabase.com/pricing) | Supabase free project pausing page |
| Cloudflare R2 free storage | 10 GB-month free storage per month (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/) | Cloudflare R2 pricing page |
| Vercel Hobby commercial use | personal non-commercial use only (checked 2026-11-15, https://vercel.com/docs/plans/hobby) | Vercel Hobby plan page and terms |
| Netlify Free credits | 300 credits per month, free plan (hard limit) (checked 2026-11-15, https://www.netlify.com/pricing/) | Netlify pricing page |
| Grafana Cloud k6 free hours | 500 virtual user hours per month, Grafana Cloud k6 free (checked 2026-11-15, https://grafana.com/products/cloud/k6/) | Grafana Cloud k6 page |

Also: one search for a newer or better free tool in each of these slots: backup storage outside your database vendor, a second home for the code, a load-test tool.
Law watch for this guide: none.
Then say, in these words:
"Re-checked today: <list>. From the guide's research dated 2026-11-15 and not re-checked: <list>.
Changed since the guide was written: <list or 'nothing I found'>."
If you have no web access, or the founder said no to the web check, say so and treat every fact as not re-checked.

Facts marked unverified in this guide stay unverified until you read the vendor page yourself. Say them in the unverified wording; never turn them into a number.

Side sub-agent (offer it with the plan in Step 3). If the founder wants more free options for any slot, say: "I can send a separate sub-agent to look for more free options for <thing>. It works alone and reports back with a short comparison. I will keep going with the checklist, and nothing changes until you pick."
If you cannot start sub-agents, say: "I will note it in `.launch-kit/alternatives/todo.md` and look after this run. Or open a second chat and paste: `Read https://zirkomirko.com/tools/launch-kit/side-research.md and research: <thing>, for a project on <stack>.`"

## Step 3  Plan and one approval

Build one table with a row for every item in Step 4. Labels are exactly **I do** (you, the agent) and **You do** (the founder).

| Item | Status | Who | Costs money? |
|---|---|---|---|
| SN-1 Automatic database backup | applies / already done / not applicable | I do | storage past the free allowance, or a paid database plan |
| SN-8 Loss and downtime targets | applies / already done / not applicable | You do | no |

Quick pass (when the founder has little time, set `mode: "quick"`): SN-1, SN-2, SN-3, SN-5, SN-6, SN-14, SN-18, SN-20, SN-22, SN-24, in that order (backup, outside copy, restore first). Offer the side sub-agent here, in the plan message, then keep going.

Under the table add a money box: every paid part in the fixed wording ("This part needs a paid plan: `<tool>`, from `<price>` (checked `<date>`). The free option is `<X>`, and its problem is `<Y>`."). Ask for one approval, then work inside it on the branch. Never merge, deploy, buy, sign up or send email for the founder.

## Step 4  Items

For each item, in this order: check, fix, prove, record. Prove means saving the command, its output and the date to `.launch-kit/evidence/safety-net/<ID>.txt` (or `.png`). Record means one item record in `.launch-kit/state.json`. For a founder item, say the founder-only line, set `founder-todo` and move on.

Never run a restore or a load test against the live database or site; use a fresh project or a test copy. If an item cannot be proved without the founder's resources, set `blocked`; a stand-in test is not a Prove. No git repo: create one locally and say so. A problem you found but did not fix (outside the approval, or waiting for a yes) is `awaiting-approval` with the finding in `note`; list it in the report under "Found and not fixed", never as `not-checked`.

**Make a test copy once, before the first item that needs one:** a new local branch plus a fresh database (local Docker Postgres or a second free project), seeded with fake rows and with test keys only, never the live database, live payment keys or real email. Say which one you made.

Never write a password or key into a file or chat: jobs read them from an environment variable (a setting held outside the code).

### Backups and restore

#### SN-1 Automatic database backup   `when: before` `who: agent`

**Say this:** A backup is a copy of your database saved as a file on a schedule. One bad query can end a young product, and a copy kept beside the database is not a safety net.
**Check:** Ask where the database runs and which plan it is on. Look for a scheduled job that makes a dump (a full export) and uploads it.
**Passes if:** A scheduled job exists that writes a dump to storage outside the database, and last night's file is there.
**Fix (agent):** Add a script that runs `pg_dump` with the connection string from an environment variable (suggest names: `DATABASE_URL`, `BACKUP_BUCKET`, `BACKUP_ENDPOINT`, `BACKUP_ACCESS_KEY_ID`, `BACKUP_SECRET_ACCESS_KEY`, `BACKUP_PING_URL`; the founder sets them in the CI runner's secrets, not in chat) and uploads the file to a bucket. Schedule it in the CI runner (the service that runs jobs on a timer) or host cron. Name files by date.
**Free route:** Scheduled dump to Cloudflare R2. The catch: Supabase Free has no automatic backups (checked 2026-11-15, https://supabase.com/pricing), so you run and test the job yourself; R2 free storage is 10 GB-month free storage per month (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/), 1M write operations per month, Cloudflare R2 free (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/) writes and 10M read operations per month, Cloudflare R2 free (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/) reads a month, egress free egress on Cloudflare R2 (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/). I could not confirm this today: needs a Cloudflare account with billing enabled (unverified, last seen 2026-11-15). Check https://developers.cloudflare.com/r2/pricing/ before you rely on it.
**Costs money:** This part needs a paid plan: Supabase Pro, from $25/month USD per month, Pro plan (checked 2026-11-15, https://supabase.com/pricing). The free option is a scheduled dump to R2, and its problem is that you run and test it yourself. I could not confirm this today: daily backups kept for 7 days on Pro (unverified, last seen 2026-11-15). Check https://supabase.com/docs/guides/platform/backups before you rely on it. Restore to any second (point-in-time recovery, PITR) costs extra: about $100 per month, point-in-time recovery with 7 days kept (checked 2026-11-15, https://supabase.com/docs/guides/platform/backups)
**Prove:** List the bucket and show last night's dump with a size above zero -> .launch-kit/evidence/safety-net/SN-1.txt

#### SN-2 Copy outside the vendor   `when: before` `who: agent`

**Say this:** If one vendor locks your account, it locks its own backups too. Keep one copy with a different provider, or on a drive you own.
**Check:** Where do the backups live, and does one login protect both database and backups?
**Passes if:** The newest backup exists in a second place that does not share the database vendor's account.
**Fix (agent):** Upload the dump to a second bucket at another provider, or add a step that copies it to an encrypted local file the founder can download.
**Free route:** Second bucket on R2 or Backblaze B2, or a local drive. The catch: B2 storage is $6.95 per TB per month, Backblaze B2 storage (checked 2026-11-15, https://www.backblaze.com/cloud-storage/pricing), free allowance 10 GB free storage on Backblaze B2 (checked 2026-11-15, https://www.backblaze.com/cloud-storage/pricing); one login email on both providers is still one point of failure.
**Prove:** List both locations and show the same file name in each -> .launch-kit/evidence/safety-net/SN-2.txt

#### SN-3 Restore drill   `when: before` `who: agent`

**Say this:** A restore drill loads a backup into a fresh database to prove it works, and times it. An untested backup is a hope.
**Check:** Is there a note of a restore and its time?
**Passes if:** The newest dump was loaded into a fresh database, real rows were read back, and the time is written down.
**Fix (agent):** Restore into a throwaway database (local Docker Postgres, or a second Supabase project; Free allows 2 active projects allowed on Supabase Free (checked 2026-11-15, https://supabase.com/pricing) active projects). Compare row counts on key tables with the live ones. Write the steps and time in `docs/restore.md`.
**You do:** Be there for the first drill, read the counts with me and say whether the data looks right.
**Free route:** Local Postgres or a second free project. The catch: the free database cap is 500 MB database size, Free plan (checked 2026-11-15, https://supabase.com/pricing), which a later dump may pass.
**Prove:** The restore command, the row counts side by side and the measured time -> .launch-kit/evidence/safety-net/SN-3.txt

#### SN-4 File storage backup   `when: before` `who: agent`

**Say this:** Uploaded files (photos, documents) live outside the database and are easy to forget. Copy them too.
**Check:** Find where uploads are stored and whether any copy exists elsewhere.
**Passes if:** A copy of the upload bucket exists in a second place, or the founder says there are no uploads.
**Fix (agent):** Uploads written to a serverless host's own disk are lost: use a bucket. Add an `rclone` step (an open-source tool that copies between storage providers) to the backup job, copying new files to the second bucket. On AWS S3, also turn on object versioning so an overwrite or delete can be undone.
**Free route:** `rclone` to a second bucket. The catch: Supabase Free file storage is 1 GB file storage, Free plan (checked 2026-11-15, https://supabase.com/pricing), and copying large media costs storage at the second provider.
**Prove:** Compare the file count in both buckets -> .launch-kit/evidence/safety-net/SN-4.txt

#### SN-5 Config backup   `when: before` `who: agent`

**Say this:** Settings that live only in dashboards (DNS, payment products, email templates, sign-in settings) are hard to rebuild from memory.
**Check:** List the settings that exist only in a dashboard and not in the repo.
**Passes if:** Each one is exported to a file, or noted in `docs/config.md` with where to find it, and a rebuild from migrations alone gives the same database.
**Fix (agent):** Export what can be exported into the repo. SQL pasted by hand into a dashboard (not in migrations) breaks a rebuild: move it into a migration file. Also note the Terraform state location, any Redis or queue data that has no persistent volume, and any separate reporting database. List env variable names (never values). For the rest, write the steps to set them again.
**Prove:** Show the config files and `docs/config.md` -> .launch-kit/evidence/safety-net/SN-5.txt

#### SN-6 Backup monitor   `when: before` `who: agent`

**Say this:** Backup jobs fail quietly. A monitor (a service that expects a ping and alerts when it is missing) tells you when last night's backup did not happen or came out empty.
**Check:** Is there an alert if the backup is missing, and does it look at file size?
**Passes if:** A missed or empty backup raises an alert to the founder.
**Fix (agent):** Add a heartbeat (a ping sent when the job ends well) at the end of the backup job, only after the size check passes. Match the monitor's grace period to the schedule. See [Watchtower](https://zirkomirko.com/tools/launch-kit/watchtower/).
**Free route:** Healthchecks.io. The catch: the free plan has 20 jobs (checked 2026-11-15, https://healthchecks.io/pricing/); a Sentry free cron monitor gives 1 cron monitor (checked 2026-11-15, https://sentry.io/pricing/).
**Prove:** Stop the job on the branch once and show the alert arriving, then restore it -> .launch-kit/evidence/safety-net/SN-6.txt

#### SN-7 Retention plan   `when: before` `who: agent`

**Say this:** Retention is how long backups are kept. Damage is often found late, so keep recent days and some older copies.
**Check:** What deletes old backups today, if anything?
**Passes if:** A written rule exists and the bucket applies it by itself.
**Fix (agent):** Propose a rule such as daily copies for a week and weekly copies for a month, write it in `docs/restore.md` and set it as a lifecycle rule (an automatic delete rule on the bucket).
**Free route:** R2 lifecycle rules. The catch: longer retention grows storage cost, and Infrequent Access on R2 has a minimum storage of 30 days minimum storage duration for Infrequent Access on R2 (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/).
**Prove:** Show the lifecycle rule as saved -> .launch-kit/evidence/safety-net/SN-7.txt

#### SN-8 Loss and downtime targets   `when: early` `who: founder`

**Say this:** Two decisions shape the rest. RPO (recovery point objective) is how much recent data you could bear to lose. RTO (recovery time objective) is how long the product may be down while you recover.
**Check:** Ask both questions in plain words and write the answers down.
**Passes if:** Both answers are in `docs/restore.md`, with the backup option that fits them.
**You do:** Answer: "If the database vanished now, how far back could we go?" and "How long can we be down?" Copy both back.
**Free route:** A written decision. The catch: "no data loss ever" means paying for point-in-time recovery, about $100 per month, point-in-time recovery with 7 days kept (checked 2026-11-15, https://supabase.com/docs/guides/platform/backups)
**Prove:** The two written answers -> .launch-kit/evidence/safety-net/SN-8.txt

#### SN-9 Soft delete and undo   `when: before` `who: agent`

**Say this:** Soft delete marks a record as deleted instead of erasing it, so it can be undone. Much data loss is a mis-click.
**Check:** Find the delete actions and what they do.
**Passes if:** Deleting something important sets a `deleted_at` mark and can be undone for a set time.
**Fix (agent):** Add a `deleted_at` column, hide marked rows, add an undo path and a clean-up job after the chosen time.
**Prove:** Delete a test record, show it hidden, then restored -> .launch-kit/evidence/safety-net/SN-9.txt

#### SN-10 Free-tier pausing   `when: before` `who: agent`

**Say this:** Pausing means a free database is switched off for inactivity. A paused database is a dead app until resumed.
**Check:** Is the database on a free plan that pauses? Read the plan page.
**Passes if:** The project is on a plan that is never paused, or a keep-alive exists and the founder knows it is a workaround.
**Fix (agent):** Only if the founder chooses it, add a small scheduled query that touches the database, and write down that this works around the rule. Whether Supabase's terms allow a keep-alive I could not confirm today (unverified, last seen 2026-11-24). Check https://supabase.com/terms before you rely on it.
**You do:** Decide before launch whether to move to a paid plan.
**Free route:** Keep-alive job. The catch: Supabase Free pauses a project after 1 week inactivity before a free project pauses (checked 2026-11-15, https://supabase.com/pricing); a paused project can be restored for 1 year to restore a paused free project after pausing (checked 2026-11-15, https://supabase.com/docs/guides/platform/free-project-pausing); paid projects are never auto-paused paid projects (checked 2026-11-15, https://supabase.com/docs/guides/platform/free-project-pausing).
**Costs money:** This part needs a paid plan: Supabase Pro, from $25/month USD per month, Pro plan (checked 2026-11-15, https://supabase.com/pricing). The free option is a keep-alive job, and its problem is that it works around a platform rule and can stop working.
**Prove:** Show the keep-alive run log and the plan name -> .launch-kit/evidence/safety-net/SN-10.txt

### Continuity

#### SN-11 Account ownership   `when: early` `who: founder`

**Say this:** Domain, host, database and payments must sit in accounts you or the company own. A freelancer's account leaves with the freelancer.
**Check:** Ask who owns each account and whose email it uses.
**Passes if:** Every critical account is in the founder's or company's name.
**You do:** For each account (domain, host, database, code, payments, email) find the owner in its settings and change it if it is not you. Copy back the list of accounts and owners, no passwords.
**Prove:** The founder's list, owners only -> .launch-kit/evidence/safety-net/SN-11.txt

#### SN-12 Recovery contacts   `when: early` `who: founder`

**Say this:** One lost phone can lock you out. Add a second way in: a second admin, or recovery codes (one-time codes that replace your second sign-in step) stored offline.
**Check:** Ask which critical accounts have a second admin, a second sign-in method or saved recovery codes.
**Passes if:** Each critical account has a recovery route that does not depend on one phone.
**You do:** In each account's security settings, save the recovery codes in a password manager (an app that stores your logins) or on paper, and add a second admin if the plan allows. Tell me which accounts are done.
**Free route:** Account settings and a password manager. The catch: some free plans allow one member only (Sentry free allows 1 user (checked 2026-11-15, https://sentry.io/pricing/)); free password manager limits differ, so read yours.
**Prove:** The founder confirms each account; no codes are written down in chat -> .launch-kit/evidence/safety-net/SN-12.txt

#### SN-13 Billing failure protection   `when: before` `who: founder`

**Say this:** An expired card can suspend a service. Add a backup card and renewal reminders.
**Check:** Ask which vendors have a card on file and when each card expires.
**Passes if:** Each critical account has a valid card and a billing email you read.
**You do:** Open billing in each account, check the card date, add a second card where allowed, and set a calendar reminder before each renewal.
**Prove:** The founder says it is done; record vendors, not card details -> .launch-kit/evidence/safety-net/SN-13.txt

#### SN-14 Code mirrored elsewhere   `when: before` `who: agent`

**Say this:** A mirror is a second copy of your code on another host. One suspension can remove all your code and builds.
**Check:** `git remote -v`. Is there a second remote, or a recent bundle file?
**Passes if:** A second copy of the full history exists outside the main code host.
**Fix (agent):** Add a second remote and a push step, or write a `git bundle` (one file holding the whole history) to the backup bucket.
**You do:** Create the account on the second host and add the remote address.
**Free route:** GitLab Free (5 users per group on GitLab Free (checked 2026-11-15, https://about.gitlab.com/pricing/) users per group, 400 compute minutes per month on GitLab Free (checked 2026-11-15, https://about.gitlab.com/pricing/) compute minutes), Bitbucket Free (up to 5 users on Bitbucket Free (checked 2026-11-15, https://www.atlassian.com/software/bitbucket/pricing)) or a local `git bundle`. The catch: Codeberg is for free and open-source projects only (checked 2026-11-15, https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md), so it does not fit a closed-source product.
**Costs money:** This part needs a paid plan: GitLab Premium, from $29 per user per month, GitLab Premium, billed annually (checked 2026-11-15, https://about.gitlab.com/pricing/). The free option is GitLab Free or a local bundle, and its problem is the small user and minute limits. Bitbucket Standard is from about $3.65 per user per month, Bitbucket Standard (as shown) (checked 2026-11-15, https://www.atlassian.com/software/bitbucket/pricing).
**Prove:** `git ls-remote` on the second remote matches the main branch -> .launch-kit/evidence/safety-net/SN-14.txt

#### SN-15 Vendor exit plan   `when: after` `who: agent`

**Say this:** Prices rise and services shut down. For each vendor, write how to export your data and what you would use instead.
**Check:** Is there a table of vendors with an export route and a replacement?
**Passes if:** `docs/exit-plan.md` lists every vendor with an export route and a replacement, or "unknown".
**Fix (agent):** Build the table from `profile.json`. Say plainly where data cannot be exported, such as password hashes or stored card data.
**Prove:** Show the file with every vendor present -> .launch-kit/evidence/safety-net/SN-15.txt

#### SN-16 Plan terms check   `when: before` `who: agent`

**Say this:** A free plan may forbid business use, and breaking its terms can suspend you on launch day. The rules sit in terms pages.
**Check:** For each service in `profile.json`, read the plan terms on commercial use and what happens at the limit.
**Passes if:** Each service has a line: business use allowed or not, and what happens past the limit.
**Fix (agent):** Write the table in `docs/plan-terms.md`. Say any unverified item in the unverified wording.
**You do:** If a plan forbids business use, decide whether to pay or move.
**Free route:** Read the terms. The catch: Vercel Hobby is personal non-commercial use only (checked 2026-11-15, https://vercel.com/docs/plans/hobby), and past its limits a feature stops for 30 days wait before a stopped Hobby feature resumes (checked 2026-11-15, https://vercel.com/docs/plans/hobby). Netlify Free has a hard limit of 300 credits per month, free plan (hard limit) (checked 2026-11-15, https://www.netlify.com/pricing/) credits a month. I could not confirm this today: the site pauses until the next cycle, and one project over the limit pauses every project on the account (unverified, last seen 2026-11-15). Check https://www.netlify.com/pricing/ before you rely on it. I could not confirm this today: commercial-use terms for Cloudflare Workers Free (unverified, last seen 2026-11-15). Check https://developers.cloudflare.com/workers/platform/pricing/ before you rely on it.
**Costs money:** This part needs a paid plan: Vercel Pro, from US$20 per month (checked 2026-11-15, https://vercel.com/pricing). The free option is Hobby, and its problem is that it is not for a product that earns money. Netlify Personal is $9 per month, Netlify Personal (checked 2026-11-15, https://www.netlify.com/pricing/).
**Prove:** Show `docs/plan-terms.md` with every service on the list -> .launch-kit/evidence/safety-net/SN-16.txt

#### SN-17 Disaster walk-through   `when: after` `who: agent`

**Say this:** Walk through four bad days on paper: database deleted, host down, account suspended, domain lost. Thinking it through once finds the gaps cheaply.
**Check:** Is there a written note for each of the four?
**Passes if:** `docs/disasters.md` has the four cases, each with first step, who does it and which backup it uses.
**Fix (agent):** Write the four cases from this run. Link SN-3 (restore), SN-11 (accounts) and SN-15 (exit plan).
**You do:** Read each case with me and mark any step you could not do.
**Prove:** Show the file with the four headings -> .launch-kit/evidence/safety-net/SN-17.txt

#### SN-18 Secrets recoverable   `when: early` `who: founder`

**Say this:** Every API key and setting should also sit in a password manager, not only in the host's dashboard, or a lost host account means the app cannot be rebuilt.
**Check:** Ask where each secret lives besides the host.
**Passes if:** The founder confirms every secret has a second home that is not the repo and not chat.
**You do:** Open the host's environment settings, copy each name and value into the password manager. Tell me only the names, never the values. See Preflight for keeping them out of code.
**Free route:** A password manager. The catch: free plans differ; read yours before relying on it.
**Prove:** The founder confirms; record names only -> .launch-kit/evidence/safety-net/SN-18.txt

#### SN-19 Login emails not on one point of failure   `when: early` `who: founder`

**Say this:** If every vendor login uses an address on your own domain and that domain or its email fails, password resets cannot reach you.
**Check:** Ask which email each critical vendor login uses.
**Passes if:** Critical logins have a recovery address on a different provider than the domain's email.
**You do:** In each critical account, add a personal address on another provider as the recovery email. Tell me which accounts are done.
**Prove:** The founder confirms each account; record providers, not addresses -> .launch-kit/evidence/safety-net/SN-19.txt

### Resilience

#### SN-20 Timeouts on outside calls   `when: before` `who: agent`

**Say this:** A timeout limits how long your code waits for another service. Without one, a slow vendor hangs your app.
**Check:** Find every call to an outside service (payments, email, AI) and its timeout.
**Passes if:** Every outside call has a timeout, and it is shorter than the host's function limit.
**Fix (agent):** Set an explicit timeout on each call. Check the host's limit; Vercel Hobby allows 300 s max function duration on Hobby (checked 2026-11-15, https://vercel.com/docs/plans/hobby).
**Prove:** Point one call at a slow test address and show the timeout error -> .launch-kit/evidence/safety-net/SN-20.txt

#### SN-21 Retries with backoff   `when: before` `who: agent`

**Say this:** Retry with backoff means trying again after a short wait that grows each time. Many failures are brief.
**Check:** Do outside calls retry, and which ones are safe to repeat?
**Passes if:** Safe calls retry a few times with growing pauses; charges and sends do not retry unless SN-22 is in place.
**Fix (agent):** Add a retry helper with a cap, used only on safe calls.
**Free route:** Code. The catch: retrying a charge or an email without a guard sends it twice.
**Prove:** A test that fails twice then succeeds, with the attempt count -> .launch-kit/evidence/safety-net/SN-21.txt

#### SN-22 Idempotency   `when: before` `who: agent`

**Say this:** Idempotency means doing the same request twice has the same effect as once. It stops double charges and duplicate orders.
**Check:** Find the actions that charge, send or create, and what happens if they run twice.
**Passes if:** A repeated request does not charge or create twice.
**Fix (agent):** Add an idempotency key (a unique token sent with the request) to payment and create calls, and a unique constraint to match.
**Prove:** Send the same request twice on a test copy and show one result -> .launch-kit/evidence/safety-net/SN-22.txt

#### SN-23 Soft failure   `when: before` `who: agent`

**Say this:** When AI, email or payments are down, the app should say so and keep the rest working.
**Check:** Block one outside call on a test copy and watch what the user sees.
**Passes if:** The user sees a clear message and the rest works. No promise of automatic recovery.
**Fix (agent):** Wrap outside calls, catch errors, show fallback copy, log the failure.
**Prove:** A screenshot of the message with the call blocked -> .launch-kit/evidence/safety-net/SN-23.png

#### SN-24 Webhook handling   `when: before` `who: agent`

**Say this:** A webhook is a message another service sends to yours when something happens. Check its signature, save it, answer fast, process later, and accept repeats and out-of-order events.
**Check:** Find the webhook endpoints and read each one.
**Passes if:** Each verifies its signature, saves the event, answers quickly and ignores an event it has already handled.
**Fix (agent):** Store the event id, return success at once, move the work to a job, skip repeats. Mark an event handled only after its work succeeds.
**Free route:** Code. The catch: long work inside the webhook request times out and the sender retries.
**Prove:** Send the same signed test event twice and show one effect -> .launch-kit/evidence/safety-net/SN-24.txt

#### SN-25 Bad network handling   `when: before` `who: agent`

**Say this:** Mobile users lose their connection mid-task. Unsaved work should survive a drop.
**Check:** Start a long form, go offline and submit.
**Passes if:** The form keeps its content and tells the user it could not send.
**Fix (agent):** Keep a local draft in the browser and show a clear retry message.
**Prove:** A recording or screenshot of the kept draft -> .launch-kit/evidence/safety-net/SN-25.png

#### SN-26 Double-submit protection   `when: before` `who: agent`

**Say this:** A double click should not create two orders. Buttons switch off while working; the database rejects duplicates.
**Check:** Click a submit button twice fast on a test copy.
**Passes if:** One record is created.
**Fix (agent):** Disable the button while the request runs; add a unique rule in the database.
**Prove:** Show one row after a double click -> .launch-kit/evidence/safety-net/SN-26.txt

#### SN-27 Database constraints   `when: before` `who: agent`

**Say this:** A constraint is a database rule (unique, not empty, must point to an existing row) the database enforces itself. Checks only in app code get bypassed.
**Check:** List each table's rules.
**Passes if:** Keys, unique fields and required fields are enforced by the database.
**Fix (agent):** Write a migration (a saved database change) that adds the missing rules.
**Free route:** Migrations. The catch: adding a rule to messy existing data fails; clean the data first.
**Prove:** Try an invalid insert on a test copy and show it rejected -> .launch-kit/evidence/safety-net/SN-27.txt

#### SN-28 Kill switches for heavy features   `when: before` `who: agent`

**Say this:** A kill switch (a feature flag) turns a feature off without a new deploy, so you can stop a cost or load problem fast.
**Check:** Which features are costly or heavy (AI calls, uploads, sign-ups) and can they be turned off?
**Passes if:** Each heavy feature has a switch, and the founder knows where it is.
**Fix (agent):** Add a flag read at run time for each, and note where to flip it.
**Free route:** An environment flag, a database settings row or PostHog feature flags. The catch: environment flags often need a redeploy to take effect; a database row acts faster.
**Prove:** Flip a flag on a test copy and show the feature turned off -> .launch-kit/evidence/safety-net/SN-28.txt

#### SN-29 Failed-job holding area   `when: before` `who: agent`

**Say this:** A dead-letter queue is a holding place for jobs that keep failing, so they can be replayed. Without one, failed emails and payments vanish.
**Check:** What happens to a background job after its last retry?
**Passes if:** Failed jobs are kept with their error and can be replayed.
**Fix (agent):** Use the queue tool's feature, or add a failed-jobs table with a replay command.
**Free route:** A queue feature or a database table. The catch: someone has to look at it; add it to the alerts in [Watchtower](https://zirkomirko.com/tools/launch-kit/watchtower/).
**Prove:** Make a job fail on a test copy and show it in the holding area -> .launch-kit/evidence/safety-net/SN-29.txt

### Scale readiness

#### SN-30 Indexes for real queries   `when: week` `who: agent`

**Say this:** An index is a lookup table that makes searches fast on large tables. A query fine on a hundred rows can freeze on a hundred thousand.
**Check:** Run `EXPLAIN` (it shows how the database plans a query) on the main queries.
**Passes if:** Each frequent query uses an index, not a full scan of the table.
**Fix (agent):** Add the missing indexes in a migration; use the Supabase index advisor if it applies.
**Prove:** Show the plan before and after for the slowest query -> .launch-kit/evidence/safety-net/SN-30.txt

#### SN-31 Connection pooling   `when: week` `who: agent`

**Say this:** A connection pooler shares a few database connections among many short-lived functions. A spike without one runs out of connections.
**Check:** Which connection string do serverless functions use?
**Passes if:** Serverless code connects through the pooler, in the right mode.
**Fix (agent):** Switch to the pooler address; set the mode the driver needs.
**Free route:** The Supabase pooler or Neon built-in pooling. The catch: the wrong mode breaks prepared statements; I could not confirm this today: connection limits per compute size on the Supabase pooler (unverified, last seen 2026-11-15). Check https://supabase.com/pricing before you rely on it.
**Costs money:** An extra Pro project is from $10 per month for an extra Pro project (checked 2026-11-15, https://supabase.com/pricing); larger compute add-ons are not re-read here.
**Prove:** Show the connection address in use with secrets hidden -> .launch-kit/evidence/safety-net/SN-31.txt

#### SN-32 Caching   `when: week` `who: agent`

**Say this:** Caching keeps copies of pages and files close to users, so your server does less work. It is the cheapest way to survive a crowd.
**Check:** Which public pages and files are cached, and for how long?
**Passes if:** Public pages and static files are cached, and logged-in pages are not.
**Fix (agent):** Add cache headers for public pages and files, and a short cache for costly public queries.
**Free route:** The host's CDN (a network of copies near users) or Cloudflare's free plan. The catch: caching a logged-in page can show one user's data to another; cache only public pages.
**Prove:** `curl -sI` on a public page shows the cache header -> .launch-kit/evidence/safety-net/SN-32.txt

#### SN-33 Background jobs   `when: week` `who: agent`

**Say this:** A background job is slow work done after the request has answered. Slow work inside a request causes timeouts and user retries that double the load.
**Check:** Find slow work (email, reports, AI) running inside requests.
**Passes if:** Slow work runs in a queue and the request answers at once.
**Fix (agent):** Move slow work to a queue tool, Supabase Queues or `pg_cron`.
**Free route:** Inngest free: 50k executions on Inngest free (checked 2026-11-15, https://www.inngest.com/pricing), 5 concurrent steps on Inngest free (checked 2026-11-15, https://www.inngest.com/pricing). Trigger.dev free: $5 compute credit per month, Trigger.dev free (checked 2026-11-15, https://trigger.dev/pricing), 20 concurrent runs on Trigger.dev free (checked 2026-11-15, https://trigger.dev/pricing). The catch: low free concurrency means a crowd waits in a long queue.
**Costs money:** This part needs a paid plan: Inngest Pro, from $99 per month, Inngest Pro (checked 2026-11-15, https://www.inngest.com/pricing); Trigger.dev, from Hobby $10 per month, Pro $50 per month Trigger.dev paid plans (checked 2026-11-15, https://trigger.dev/pricing). The free option is the free tier or `pg_cron`, and its problem is the low number of jobs that can run at once.
**Prove:** Trigger a slow task and show the request answered before it finished -> .launch-kit/evidence/safety-net/SN-33.txt

#### SN-34 Limits on every list   `when: before` `who: agent`

**Say this:** Pagination returns long lists page by page. A list with no limit lets one big account take the app down.
**Check:** Find endpoints that return lists.
**Passes if:** Each list has a default page size and a maximum.
**Fix (agent):** Add a page size and maximum to each list. Put the limit in the query, not after the fetch.
**Prove:** Request a huge page size and show the capped result -> .launch-kit/evidence/safety-net/SN-34.txt

#### SN-35 Upload limits   `when: before` `who: agent`

**Say this:** Big uploads through your server hit its limits. A signed upload URL (a short-lived link that lets a browser upload straight to storage) avoids that; size and type limits stop abuse.
**Check:** How do uploads reach storage, and what limits apply?
**Passes if:** Uploads go straight to storage with a size and type limit.
**Fix (agent):** Never write uploads to the server's own disk on a serverless host: they vanish. Issue signed upload links from the server; set limits there and in storage rules.
**Prove:** Try an oversize file on a test copy and show it refused -> .launch-kit/evidence/safety-net/SN-35.txt

#### SN-36 Small load test   `when: week` `who: agent`

**Say this:** A load test sends fake traffic to find what breaks first. Run it well above the traffic you expect.
**Check:** Is there a test copy of the app that does not share the live database or the live host account?
**Passes if:** A test run on a copy finished and the first break is written down.
**Fix (agent):** Write a short k6 script (an open-source load-test tool) for the main pages and one write action; run it against the copy and record what failed first. The copy runs on your own machine or on a separate account, not as a preview on the host account the live site uses: previews share that account's free limits, so a load test there can stop the live site too.
**You do:** Approve the test copy and confirm it is not the live site.
**Free route:** k6 run locally. The catch: never load-test the live site on a free plan; it can use up a quota or trigger a pause. Grafana Cloud k6 free gives 500 virtual user hours per month, Grafana Cloud k6 free (checked 2026-11-15, https://grafana.com/products/cloud/k6/) virtual user hours (one simulated user running for one hour) a month.
**Costs money:** Past the free hours, Grafana Cloud k6 charges $0.15 per virtual user hour after the free 500 (checked 2026-11-15, https://grafana.com/products/cloud/k6/). The free option is local k6, and its problem is that your own machine limits the load.
**Prove:** The k6 summary and the note of the first limit hit -> .launch-kit/evidence/safety-net/SN-36.txt

#### SN-37 Platform limits known   `when: week` `who: agent`

**Say this:** Every host has hard limits that show only under load: function time, payload size, requests, data. Write them down first.
**Check:** For each plan in `profile.json`, find its limits on the vendor page.
**Passes if:** `docs/limits.md` lists the limits of each plan and what happens at the edge (stop, pause or bill).
**Fix (agent):** Write the table. Start from Vercel Hobby 1M function invocations on Hobby (checked 2026-11-15, https://vercel.com/docs/plans/hobby) function invocations, 4 hours active CPU-hours per month, Hobby (checked 2026-11-15, https://vercel.com/docs/plans/hobby) active CPU; Workers Free 100,000 requests per day on Cloudflare Workers Free (checked 2026-11-15, https://developers.cloudflare.com/workers/platform/pricing/) requests a day; Supabase Free 500 MB database size, Free plan (checked 2026-11-15, https://supabase.com/pricing) database, 5 GB egress on Supabase Free (checked 2026-11-15, https://supabase.com/pricing) egress.
**Free route:** A table in the repo. The catch: each vendor fails differently, and the exact limits for your stack must be re-checked in Step 2. See [Meter](https://zirkomirko.com/tools/launch-kit/meter/) for tracking usage.
**Prove:** Show `docs/limits.md` with every plan in use -> .launch-kit/evidence/safety-net/SN-37.txt

#### SN-38 Launch-spike plan   `when: week` `who: agent`

**Say this:** Before a post brings a crowd, know which limit breaks first and which upgrade to click.
**Check:** From SN-36 and SN-37, which limit is nearest?
**Passes if:** `docs/spike.md` names the first limit, the upgrade for it and the kill switch from SN-28.
**Fix (agent):** Write a one-page note: the first limit, what you see when it breaks, what to click, what to switch off first. The founder does any card-needing upgrade the day before launch.
**Prove:** Show `docs/spike.md` -> .launch-kit/evidence/safety-net/SN-38.txt

#### SN-39 Free hosts that sleep   `when: before` `who: agent`

**Say this:** Some free hosts stop idle servers, so the first visitor waits. A monitor can read that cold start (the slow first answer after sleep) as an outage.
**Check:** Read the host plan docs for idle behaviour.
**Passes if:** The idle behaviour is written down and the founder has chosen how to handle it.
**Fix (agent):** Note the behaviour in `docs/limits.md`, and tell [Watchtower](https://zirkomirko.com/tools/launch-kit/watchtower/) if a monitor would fire on it.
**You do:** Decide whether to pay for an always-on plan before launch.
**Free route:** Check the plan docs. The catch: Render has a free tier at $0 free tier, Render (checked 2026-11-15, https://render.com/pricing). I could not confirm this today: whether Render's free tier stops idle servers (unverified, last seen 2026-11-15). Check https://render.com/pricing before you rely on it. Platforms such as Cloudflare Workers do not sleep on the free plan.
**Costs money:** This part needs a paid plan: Render, from from $25 per month, Render paid (as shown) (checked 2026-11-15, https://render.com/pricing). The free option is the free tier, and its problem is idle stops.
**Prove:** Show the note and the host's own wording -> .launch-kit/evidence/safety-net/SN-39.txt

## Step 5  Your turn

Collect every open `who: founder` item, and the "You do" part of agent items, into one ordered list with exact clicks. For each one say: "Only you can do this one: `<step>`. Tell me when it is done and I will check it."

Where a vendor's menu is not known, name the account area ("settings, then security or account") and ask the founder to tell you what they see; do not invent click paths.

1. SN-8 Loss and downtime targets: answer both questions.
2. SN-11 Account ownership: find each owner, change it if it is not you, copy back the list.
3. SN-12 Recovery contacts: in each account's security settings, download the recovery codes into the password manager and add a second admin or recovery email where the account allows it.
4. SN-18 Secrets recoverable: copy each setting into your password manager, tell me names only.
5. SN-19 Login emails: in each account's profile or security settings, add a recovery address on another provider.
6. SN-13 Billing failure protection: in each vendor's billing page, check the card expiry, add a backup card and turn on payment-failure emails.
7. SN-3 Restore drill: sit with me for the first restore.
8. SN-10, SN-16, SN-39: decide whether to pay or move.
9. SN-14 Code mirrored elsewhere: create the account on the second host.
10. SN-38 Launch-spike plan: do any upgrade that needs a card before launch, not during it.

When the founder says "done", verify it yourself with the item's Check and Prove. Only then set `done` or `fixed`. If you cannot verify it, leave it `founder-todo` and say why.

## Step 6  Prove

Re-run every Check. Red before, green after wherever a test exists. Update the evidence and `.launch-kit/state.json` with the protocol's status values; every status except `not-checked` needs a date. If an item is done but cannot be proved yet, set `cannot-prove-yet` and say in `note` what to re-check and when. Re-run the restore drill (SN-3) last, on the newest backup.

End your summary with the freshness sentence from Step 2: which facts you re-checked today and which come from this guide's research dated 2026-11-15.

## Step 7  Hand over

1. Write `.launch-kit/reports/safety-net.md`: what was done, what is waiting on the founder, what costs money, and the freshness sentence. Only the main agent writes it.
2. Update `.launch-kit/state.json`, one record per item. If this was a Quick pass, label it "Quick pass" and set `mode: "quick"`; never call it a full pass.
3. Update `LAUNCH-KIT.md` at the repo root: the row for this guide, "Only you can do these", "Costs you agreed to". Create it if missing.
4. Name the next guide: the first guide in kit order that is not done in `state.json`. If it is not in `kit.json`, tell the founder it is not published and stop. Never promise when it will be.

Nothing in `.launch-kit/` holds a secret. Never write a key there.

## Money in this guide

| Thing | Free route | The catch | Paid from | Checked | Source |
|---|---|---|---|---|---|
| Database backups | Scheduled dump to a bucket | no automatic backups (checked 2026-11-15, https://supabase.com/pricing) on Supabase Free; restore to any second costs extra, about $100 per month, point-in-time recovery with 7 days kept (checked 2026-11-15, https://supabase.com/docs/guides/platform/backups) | $25/month USD per month, Pro plan (checked 2026-11-15, https://supabase.com/pricing) | 2026-11-15 | https://supabase.com/pricing |
| Backup storage | Cloudflare R2 free | 10 GB-month free storage per month (checked 2026-11-15, https://developers.cloudflare.com/r2/pricing/); I could not confirm this today: needs a Cloudflare account with billing enabled (unverified, last seen 2026-11-15). Check https://developers.cloudflare.com/r2/pricing/ before you rely on it. | $6.95 per TB per month, Backblaze B2 storage (checked 2026-11-15, https://www.backblaze.com/cloud-storage/pricing) at Backblaze B2 | 2026-11-15 | https://developers.cloudflare.com/r2/pricing/ |
| Code mirror | GitLab Free, Bitbucket Free, local `git bundle` | 5 users per group on GitLab Free (checked 2026-11-15, https://about.gitlab.com/pricing/) users on GitLab; Codeberg is free and open-source projects only (checked 2026-11-15, https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md) | $29 per user per month, GitLab Premium, billed annually (checked 2026-11-15, https://about.gitlab.com/pricing/) | 2026-11-15 | https://about.gitlab.com/pricing/ |
| Business use of a host | Vercel Hobby, Netlify Free | Vercel Hobby is personal non-commercial use only (checked 2026-11-15, https://vercel.com/docs/plans/hobby); Netlify has 300 credits per month, free plan (hard limit) (checked 2026-11-15, https://www.netlify.com/pricing/) credits a month | US$20 per month (checked 2026-11-15, https://vercel.com/pricing); $9 per month, Netlify Personal (checked 2026-11-15, https://www.netlify.com/pricing/) | 2026-11-15 | https://vercel.com/docs/plans/hobby |
| Background jobs | Inngest free, Trigger.dev free | 5 concurrent steps on Inngest free (checked 2026-11-15, https://www.inngest.com/pricing) steps at once on Inngest; 20 concurrent runs on Trigger.dev free (checked 2026-11-15, https://trigger.dev/pricing) runs at once on Trigger.dev | $99 per month, Inngest Pro (checked 2026-11-15, https://www.inngest.com/pricing); Hobby $10 per month, Pro $50 per month Trigger.dev paid plans (checked 2026-11-15, https://trigger.dev/pricing) | 2026-11-15 | https://www.inngest.com/pricing |
| Load test | k6 run locally | Never against the live site; cloud free hours 500 virtual user hours per month, Grafana Cloud k6 free (checked 2026-11-15, https://grafana.com/products/cloud/k6/) | $0.15 per virtual user hour after the free 500 (checked 2026-11-15, https://grafana.com/products/cloud/k6/) | 2026-11-15 | https://grafana.com/products/cloud/k6/ |
| Free host that sleeps | Render free tier | I could not confirm this today: whether Render's free tier stops idle servers (unverified, last seen 2026-11-15). Check https://render.com/pricing before you rely on it. | from $25 per month, Render paid (as shown) (checked 2026-11-15, https://render.com/pricing) | 2026-11-15 | https://render.com/pricing |

## Words

- **Backup**: a copy of the database saved as a file.
- **Restore drill**: loading a backup into a fresh database to prove it works.
- **Bucket (object storage)**: cheap online file storage; a bucket is one container of files.
- **Egress**: data sent out of a provider; some charge for it.
- **Retention (lifecycle rule)**: how long backups are kept before they are deleted.
- **RPO (recovery point objective)**: how much recent data you could bear to lose, for example one day.
- **RTO (recovery time objective)**: how long the product may be down while you recover.
- **PITR (point-in-time recovery)**: restoring the database to any second, not only to last night.
- **Soft delete**: marking a record as deleted instead of erasing it, so it can be undone.
- **Pausing**: a free database switched off for inactivity until resumed.
- **Mirror**: a second copy of your code on another host.
- **Timeout**: a limit on how long your code waits for another service.
- **Retry with backoff**: trying again after a short wait that grows each time.
- **Idempotency**: doing the same request twice has the same effect as doing it once, so no double charge.
- **Webhook**: a message another service sends to yours when something happens.
- **Dead-letter queue**: a holding place for jobs that keep failing, so they can be fixed and replayed.
- **Kill switch (feature flag)**: a setting that turns a feature off without a new deploy.
- **Constraint**: a database rule (unique, not empty) the database itself enforces.
- **Index**: a lookup table that makes searches on large tables fast.
- **Connection pooler**: a layer that shares a few database connections among many short functions.
- **CDN (caching)**: copies of pages kept close to users so your server does less work.
- **Queue (background job)**: slow work done after the request has answered.
- **Pagination**: returning long lists page by page.
- **Signed upload URL**: a short-lived link that lets a browser upload straight to storage.
- **Load test**: sending fake traffic to find what breaks first.
- **Recovery codes**: one-time codes that get you into an account without your usual second step.

## Not in this guide

- Security: see Preflight. This guide does not re-run its checks. If `PREFLIGHT-REPORT.md` exists, show its status in the `LAUNCH-KIT.md` security row.
- Alerts when the site or a job is down: [Watchtower](https://zirkomirko.com/tools/launch-kit/watchtower/).
- Tracking usage against free limits and cost cliffs: [Meter](https://zirkomirko.com/tools/launch-kit/meter/).
- Scheduled jobs and the build pipeline that run the backup: [Ship Lane](https://zirkomirko.com/tools/launch-kit/ship-lane/).
- Privacy rules on deleting data: [Paperwork](https://zirkomirko.com/tools/launch-kit/paperwork/).
- Domain and address problems: [Front Door](https://zirkomirko.com/tools/launch-kit/front-door/).

## Tell the founder

1. "Supabase Free has no automatic backups (checked 2026-11-15, https://supabase.com/pricing) and pauses after 1 week inactivity before a free project pauses (checked 2026-11-15, https://supabase.com/pricing) without activity. Daily backups start on Pro, from $25/month USD per month, Pro plan (checked 2026-11-15, https://supabase.com/pricing). The free option is a scheduled dump to Cloudflare R2, and its problem is that you must run and test it yourself."
2. "Restoring to any second (point-in-time recovery) costs extra on Supabase: about $100 per month, point-in-time recovery with 7 days kept (checked 2026-11-15, https://supabase.com/docs/guides/platform/backups)"
3. "Vercel Hobby is personal non-commercial use only (checked 2026-11-15, https://vercel.com/docs/plans/hobby). If you charge money, you need Pro. If you pass a Hobby limit, the feature stops for 30 days wait before a stopped Hobby feature resumes (checked 2026-11-15, https://vercel.com/docs/plans/hobby)."
4. "On Netlify Free, the limit is 300 credits per month, free plan (hard limit) (checked 2026-11-15, https://www.netlify.com/pricing/) credits a month. I could not confirm this today: the site pauses until the next cycle, and one project over the limit pauses every project on the account (unverified, last seen 2026-11-15). Check https://www.netlify.com/pricing/ before you rely on it."
5. "Codeberg is for free and open-source projects only (checked 2026-11-15, https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse.md), so it is not a backup home for closed code. Use GitLab Free, Bitbucket Free or a local git bundle."
6. "Never load-test the live site on a free plan. Test on a copy."
