For developers, system administrators, contributors and IT departments

Under the hood

How All vibe no cry is built, what has been tested and where, and what it does not protect against.

What this page is

A description of the software as it is in its repository today, and of what is planned. Every statement carries one of three labels.

Built
Built, and tested on the local test host: a disposable Debian 13 machine in a container on a workstation. Not yet run on real hardware, and not yet tried by the project's owner.
Verified on hardware
Built, and verified on a real Debian 13 machine. Nothing is marked this yet.
Planned
Decided, or named as later work, in the repository. Nothing of it is built.

Where things stand

BuiltAll vibe no cry is in development. Nothing here is ready to install on a machine that matters.

BuiltWhat exists is the operational core, as command-line tools: the host installer, projects with dev and prod, backups with restore checks, releases with rollback, a key vault, a key check before every commit, the coding agent in a container of its own, and a firewall that keeps every project container off the machine and the home network. D11, D37, D38, D39, D41

Each statement traces to a file in the product repository, and most to a numbered decision, such as D22, which links to its entry. The fact sheet lists the source of every statement on this page.

The stack

One machine, one operating system, and Docker for everything a project runs.

  • BuiltDebian 13 on x86-64. The installer refuses anything else, and anything not run as root, before it changes anything. D8, D17
  • BuiltDocker Engine and its Compose plugin, from Docker's own repository. The installer first checks Docker's signing key against its published fingerprint. D9, D17
  • BuiltEverything a project runs is a Docker Compose stack, and every project has two: dev and prod. D9
  • BuiltOne nginx is the reverse proxy for the whole host: the unprivileged nginx image, on the host's network, with a read-only filesystem, every capability dropped, and no access log. D12, D27
  • BuiltIts configuration is generated, and nginx -t checks it before every reload. D12
  • BuiltPostgreSQL 18, one per environment: a project has two databases, one for dev and one for prod. D10, D27
  • BuiltThe command-line tool, allvibe, is TypeScript compiled to JavaScript. It runs on Debian 13's own Node.js package, 20.19.2, and uses only Node's standard library: it has no runtime dependencies, so installing it downloads nothing from npm. D11, D15, D32
  • BuiltIt runs as a service user of its own, allvibe, which owns everything the suite creates. D15
  • BuiltBackups are encrypted with age, from Debian's own package. D13
  • BuiltDocker hands out addresses from 172.20.0.0/14, or from 10.201.0.0/16 if that overlaps a network the machine is on. It keeps small rotating logs, and keeps containers running while Docker itself restarts. D16
  • BuiltEvery image the suite pulls is pinned by digest: PostgreSQL 18.6, Node.js 24.21.0 for the starter app and the agent's egress gate, and nginx 1.30.5 for the proxy. A project's own images are built on the host. D27
  • BuiltA systemd timer runs the daily backup at 03:30, plus up to 30 random minutes, and catches up after the machine was off. The installer enables and starts it. D24
  • BuiltA new project starts as a guestbook: Node.js 24 with node:http, one dependency (the pg driver), migrations applied at start, and a /healthz that asks the database. D19
  • BuiltA project is reached at the host's address and a port: prod on 8100 plus two per project, dev on the port after it, up to 49 projects. No DNS, router or hosts file is changed. D18, D30
  • BuiltReaching a project from another machine on the home network has not been verified yet: on the test host, the ports are on the workstation's loopback only. D18
  • BuiltThe agent's image is built on the host too, and never pulled: Claude Code 2.1.283, installed from a lock file that pins it with integrity hashes, on Node.js 24.21.0 and Debian 13, with git and the key check's scanner, gitleaks 8.30.1. Each base is pinned by digest. D27, D39
  • PlannedA control panel in the browser, which will show links, so that nobody types a port. D30
A host, from the outside in A browser on the home network reaches the machine on two ports: 8100 for prod and 8101 for dev. The machine runs Debian 13 on x86-64. nginx is the one way in: it listens on IPv4 only, passes each request to its app on the host's loopback, and prod's door refuses Docker's own address ranges. Docker Engine with Compose runs two stacks for a project, prod and dev, each with its own app, its own PostgreSQL 18, its own networks, volume and secret, with a wall between them. The allvibe command-line tool and a daily systemd timer run on the machine, which also holds the host key. Encrypted backups go to a backup disk off the machine. The recovery key is kept by the owner. A browser on the home network :8100 prod :8101 dev nginx, the one way in IPv4 only; apps on loopback only prod's door refuses Docker's ranges prod dev app, Node.js 24 PostgreSQL 18 own networks, volume, secret app, Node.js 24 PostgreSQL 18 own networks, volume, secret Docker Engine and Compose allvibe TypeScript, Node 20 systemd timer backups at 03:30 host key Debian 13, x86-64 encrypted backups Backup disk a USB disk or a NAS, off the machine Recovery key with the owner
One host, with one project. Each further project adds its own prod and dev stacks, and its own pair of ports.

Dev and prod, kept apart

Dev is where changes are made. Prod holds the real data.

What was probed from inside dev

BuiltFrom inside dev's app container, on the test host, with test/host/rule1-isolation.sh. Every attempt on prod failed. Since the firewall, the machine's doors are refused to dev's containers too, dev's own included. D18, D41

What dev's app container tried, and what it got
From dev, it triedIt got
prod's database, by namenot found
prod's app, by namenot found
prod's database, by address, port 5432timed out
prod's app, by each of its addresses, port 3000timed out
prod's app, through the host, at its loopback-only portrefused
prod's front door, by the host's addressrefused
prod's front door, by the LAN addressrefused
dev's own front door, through the machinerefused
dev's database password, compared by hash with prod'sdifferent

The coding agent

The machine and the home network

The release pipeline

allvibe release <project> takes what dev runs to prod.

BuiltA release runs 16 steps, in order, and stops at the first that fails. The failure names the step and what would have to be true, and nothing after it runs. D25

  1. 1BuiltDev runs the commit being released, with nothing uncommitted, and answers its smoke check. D25
  2. 2BuiltEvery step of the plan in the commit being released has been tried by you in dev, and marked so with allvibe plan tried. The agent keeps the plan, in plan.json, and cannot reach your marks. A plan goes live once; work outside any plan needs your reason, which the release's record keeps. D56
  3. 3BuiltThe migrations since the last release only add, or say in their own file that they break something; one that has run is not edited or removed. D35
  4. 4BuiltThe recovery key has been confirmed. D13, D25
  5. 5 to 7BuiltThe backup target is off this machine and writable; prod's database is running; an encrypted backup of prod is written to the target. D22, D23
  6. 8 to 12BuiltA restore check of that very backup: it is whole and decrypts, its key vault restores, it restores into a scratch copy, and the app's own health check passes against the copy. D23
  7. 13BuiltProd's new image is built from the commit through git archive, never from the working tree. D25
  8. 14, 15BuiltProd is deployed on the new version, and answers its smoke check. D25
  9. 16BuiltThe commit is tagged with the version, and the release is recorded with its commit, its backup and the version it replaced. D25
The 16 steps of a release Sixteen steps in a column, in four groups. Checks: dev runs the commit; every step of the plan is tried by you; the migrations since the last release only add, or say in their own file that they break something; the recovery key is confirmed. Backup: the backup disk is off the machine; prod's database is running; an encrypted backup is written. Restore check: the backup to check; it is whole and decrypts; its key vault restores; it is restored into a scratch copy; the app's health check passes on the copy. Release: prod is built from the commit; prod is deployed; prod answers its smoke check; the release is tagged and recorded. Any step that fails stops the release there. If step 14 or 15 fails, prod goes back to the version before, automatically, with its data kept, unless the failed version's migration changed the data in a way the version before cannot read: then it stops and names the release's backup. checks backup restore check release 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Dev runs the commit Every step tried by you Migrations only add, or say so Recovery key confirmed Backup disk off the machine Prod's database running Encrypted backup written The backup to check Whole, and it decrypts Its key vault restores Restored into a scratch copy App's health check on the copy Prod built from the commit Prod deployed Prod answers its smoke check Tagged and recorded 14 or 15 fails: back to the version before, automatically, data kept Any step that fails stops the release.
What allvibe release prints, one line per step, in this order.

When it fails

Backups

Off the machine, encrypted, and restored before they count.

How a backup is written

  • BuiltEvery backup is encrypted to two keys: a host key, which stays on the machine and is what the daily restore check decrypts with, and a recovery key, whose private half the owner keeps off the machine. D13, D29
  • BuiltIt is pg_dump in its custom format, run inside prod's own database container so that client and server always match, and streamed straight into age. Nothing unencrypted is written to the target. D23
  • BuiltIt is written under a temporary name, flushed to disk, and only then renamed. A small manifest is written last: the time, the release, prod's entry count, the checksum, both public keys and the database image. A backup without a manifest is incomplete. D23
  • BuiltBackups taken for a release, or before going back, are kept, and never pruned. Others go after 30 days, but never the newest three, and only files the suite named itself. D23

How a restore check runs, without touching prod

  • BuiltIt verifies the checksum, and decrypts the whole file with the host key into a private temporary file, so a damaged backup fails before anything is restored. D23
  • BuiltIt restores into a scratch PostgreSQL of the same image, on a scratch internal network, and stops at the first error. D23
  • BuiltIt starts the version of the app the backup was taken from against the copy, and asks the app's own health check, which reads the data. It reports the entry count beside the count prod had when the backup was taken. D23
  • BuiltIt removes its containers, its network and the decrypted file, whatever happened. Nothing it creates shares a name, a network or a volume with prod. D23
How a backup is written, and how it is checked Top: prod's PostgreSQL runs pg_dump in its custom format, streamed into age, which encrypts to the host key and the recovery key. On the backup disk, off the machine, the file is written under a temporary name ending in .partial, flushed, then renamed, and a manifest is written last. Bottom: the restore check, on its own internal network. The checksum matches; the whole file is decrypted with the host key; it is restored into a scratch PostgreSQL of the same image; the version of the app the backup came from answers its own health check on the copy; its entry count is reported beside the count prod had when the backup was taken; and everything it made is removed. Prod is not touched. prod's database pg_dump, in its custom format age to the host key and the recovery key streamed, encrypted Backup disk, off the machine …dump.age.partial written, then flushed …dump.age renamed when complete …json the manifest, written last Restore check prod is not touched The checksum matches The whole file decrypts, with the host key Restored into scratch PostgreSQL The version the backup came from answers its own health check Its entry count, beside the count prod had when the backup was taken Then everything it made is removed.
One backup file and its manifest on the disk, and the check that reads it back.

Every day

Rollback and data

Code goes back. Data stays, unless you ask for it too.

Secrets and keys

What exists today, and what is planned.

Today

Planned

Off-site backups

Out of the house, not only off the machine. All of it is planned.

PlannedKeep the recovery key outside the house as well. After a fire, an off-site backup is useless if the only copy of the recovery key burned with the laptop. D29

Planned, and on the main page

The main page, and the control panel's demo it links to, show these as part of what the product does. Each is an entry in the product's roadmap, with its reasons.

What it does not protect against

Stated plainly, so that nobody has to find out.

The house rules

The rules the product is built to, quoted as they are written in its CLAUDE.md. Under each, what keeps it, and its label.

  1. The agent never reaches prod. Nothing in a dev environment has network access to, credentials for, or volumes of a prod environment.

    BuiltKept by the separation of dev and prod. The agent that will work in dev is planned.

  2. No release without a fresh backup on a target outside the machine's own disk, and that backup must have passed a restore test.

    BuiltKept by steps 3 to 9 of every release.

  3. The control panel is never exposed directly to the internet. There is no panel yet; the rule is recorded now.

    PlannedKept by the panel, when it exists.

  4. Secrets never appear on a command line, in output, in logs, in the repo or in a chat. Tools read them by name from the environment or from files with restricted permissions, and never prompt for a password. SSH is key-based with BatchMode=yes.

    BuiltKept by secrets in files, and nothing that prompts.

  5. Everything a beginner needs to do must eventually be doable in a browser. The CLI is the engine the web UI will call, not the user interface.

    PlannedKept by the web UI, when it exists.

  6. Every numbered item is tried by a human before it counts as done. Reports keep what was actually run and observed apart from what was only built.

    BuiltKept by the project's record of what has been tried, and by whom. So far the owner has tried one thing: signing in with a Claude account.

  7. Stop at the first failure. An operation that fails part-way names the step and what would have to be true, and takes no further steps.

    BuiltKept by every operation running as steps.

  8. Rollback never loses data silently. If a rollback would discard data written since the release, it says so and requires explicit confirmation.

    BuiltKept by rollback keeping the data.

  9. Nothing is ever named "nocry": no command, process, service, container, image, package or file. "NoCry" is the name of a ransomware family, and a service that runs around the clock on people's home computers must not share a name with one. node scripts/guard.mjs checks it.

    BuiltKept by the project name rule and by the repository's guard. D2

BuiltRules 10 and 11 are about how the repository itself is kept: no details of anyone's infrastructure in it, and no rewriting of its history. D7

Read the source

Everything on this page comes from these files, in the product repository on GitHub.