Everything the Independence part stands up runs somewhere. Decide where, first.
2-01 drew the map for untying the layers that Microsoft and Google bundle into open tools. This chapter is about the machines those tools sit on. Two decisions. Split the machines by role. Important work is checked by a person.
An entry point for each scale — for an individual, start with three machines
This chapter's shape (four machines and a spare) assumes a company. It is heavy for an individual builder. While there is little to protect, start light, and move toward this chapter's shape as what you protect grows.
| Scale | Starting shape |
|---|---|
| Individual | Three machines: the entrance, the materials machine, the desk PC (example below) |
| Small company | Start by borrowing services, then move to this chapter's shape |
| Company | Four machines and a spare (this chapter's shape) |
As an individual's example, take running a farming app (seed) on your own machines.
- The entrance machine — holds only what is published and what is received for publishing. List the secrets left here (outside API keys, the TLS key, the token ledger, the key that checks notices from the payment service), and decide in advance how to stop them if leaked (a daily cap, revocation). No copies of other machines, and no per-person records
- Handing over outside keys — an outside API key sits in a file only root can read, and systemd hands it only to the service that uses it. The service starts even before the key is there; only the doors that need the key answer "not ready yet." You can put up the introduction page before placing the key (Server series, Chapter 8)
- Records to publish — the AI drafts, and only what the person has read in full and said "publish" to is sent. What reaches the entrance machine is also read by the person who runs the machine before it goes up. Anything not yet read sits where the outside cannot see it
- The deployment document — the steps for standing it up can be public. The machine's addresses and port table, and whatever else runs on the same machine, go in a separate place that is not published
- The materials machine — holds the materials for analysis. Out of the entrance machine's reach. A person edits the originals; the AI writes its output into the task folder
- The desk PC — keeps the materials machine's backup. The desk PC pulls it and keeps daily versions (restic). Decide first what to back up, by where it sits and who owns it. Actually restore once
- Money — leave payment to an outside payment service. Card details never pass through your machines
- Email for promotion — keep the list on the internal side. Take sign-ups through a window on the public site; the internal side pulls them and deletes them from the entrance. Send the confirmation mail from the internal side. Put a per-person number, not the email address, in the unsubscribe link. Sending needs the person's consent and a record of it (Japan's Act on Specified Electronic Mail)
What comes first is closing. Start with who can get in.
- Look at the list of keys that can log in, and remove any key not on your list
- Close the ssh password door (Server series, Chapter 4)
- Keep the router's admin ports out of the entrance machine's reach
- Close ports that have no authentication
- Close the outgoing direction (Server series, Chapter 5)
Giving the AI's account no sudo, and running services under their own users, is the same at every scale.
The heavy shapes — a machine for personal information, the data side checking the person across machines — come in when what you protect grows: when you start selling, or start holding personal information.
Split the machines by role
Use four machines and a spare. Each is a separate physical machine; a cheap small PC will do.
| Machine | What runs on it | Ports reachable from outside | Secrets kept on it |
|---|---|---|---|
| Public face | Caddy, the public website, receivers for the API and IoT | 80 and 443 | Certificates |
| Mail and meetings | Stalwart (2-08), Jitsi and Cal.com (2-09) | Mail ports, and the meeting audio port | The DKIM private key |
| Authentication and data | The gatekeeper (2-05), the foundation (2-03), Forgejo (2-06), the document store (2-07) | None; reachable only from inside | The signing secret, database passwords |
| AI workstation | The AI agent, task folders, the CI runner | None | The AI service's key, the key for pushing code |
| Spare | Nothing; kept ready | None | None |
The self-hosted LLM set up in 2-16 goes on a separate server of its own. It needs a GPU and a lot of memory, and its needs differ from the other tools'.
*Gather everything on one machine, and one defect or one breached port reaches all of it.* Separate users on the same machine still share one kernel. Separate virtual machines are no wall either: in 2026 alone, two defects were published that let a virtual machine take over its host (CVE-2026-53359 and CVE-2026-64561, both when nested virtualization is enabled). So split with physical machines, not virtualization.
The lines follow two questions: is it reachable from outside, and which secrets does it hold. If the public face is breached, the authentication-and-data machine is still unreachable from outside. If the mail machine is breached, the signing secret and the database passwords are not there.
If you hold a lot of personal information, such as customers' names and contacts, split it off from the authentication-and-data machine onto one more machine. Encrypt the disks of the machines that hold data.
When data is read across machines, the data side checks the person
Even with the entrance machine and the data machine split, the app on the entrance needs to read data. This is the hardest part.
If the entrance asks "give me this person's records" and the data machine trusts it, then when the entrance is breached, everyone's records come out. It is the same as keeping a key to everyone's records on the entrance. Splitting the key's scope into "read only" and "write" does not split "whose records."
So the data machine checks the person's own proof itself. The entrance only passes along the token the person received from the gate (2-05). The data machine, through a small API (2-12), checks its signature and returns only that person's records. If the entrance is breached, what can be reached is only the records of people who came in while it was breached.
This holds only when the gate's signing key is not on the entrance. With the gate on the entrance, a breached entrance can forge anyone's token. So the gate sits on the authentication-and-data machine, as in the table above. Verifying signatures with a public-key scheme means the verifying side, too, holds no key worth stealing. Having the person's own device key (a passkey) sign is another way.
There are four rules, layered from the top.
- The data machine checks the person's own proof itself. It does not trust the entrance
- Keep only what can be stolen without harm on the entrance machine. Not the gate's signing key, and no personal information such as email
- Split the accounts: people, the AI, and services. The same on the entrance and on the data machine
- Split the network and narrow who can reach what. This sits on top of the three above
Records on the data machine can only be added to from the entrance. The API offers no "delete" and no "rewrite."
A small company can start by borrowing
A small company may borrow services at first. There is no need to have all four machines at once. Say plainly what is borrowed, and decide the order in which it moves onto your own machines. Follow the order of untying in 2-01.
Build on Debian, with apt and systemd
Every machine runs Debian. Python and apt are there from the start, and if you want git it is one apt line away. Updates never reboot the machine on someone else's schedule.
The services the following chapters stand up are installed with Debian's apt and run under systemd. Anything apt does not carry is installed as the single file its project publishes, and registered with systemd. No Docker.
Docker is a tool for distributing, not for building. It is a box that lets someone else run what you made, unchanged, in their environment. When you build on your own machines and run it there, there is no one to distribute to. Isolation is covered by separate machines, separate users, and systemd's restrictions; rebuilding, by the configuration kept in folders and copies of the data. Concretely, there are three reasons not to use it.
- One update stream — what apt installs rides Debian's security updates, and one
apt upgraderaises it all. Containers add a second job: tracking the version of every image - The AI sees everything directly — configuration in
/etc, logs injournalctl, data in known places. A container adds a layer of volumes, networks, port mappings, and mismatched user IDs, so every diagnosis and every fix happens in two places, outside and inside. In development, where you build and fix over and over, that layer is the cost - The firewall holds — Docker diverts traffic to a published container port before it reaches ufw's rules (Docker's own documentation, checked 2026-10-05). The rule "open only the ports we decided" does not reach a container's ports
The exception is set from the distributing side too. Something whose project ships it only as a container is received as that container and run. Use only the official image, and never build one of your own. An image with no one to distribute to only adds things to keep and places to fix.
Install a desktop on the workstation
Install the desktop environment (GNOME) on the AI workstation, and leave it running. Some of the work you want the AI to do requires a screen.
- Open a document on screen and read the values out of it
- Look at a page you built, in a real browser
When a person needs to look, they connect to that desktop from their own PC. The other three machines get no desktop.
Important work is checked by a person
The work of configuring servers is split between the AI and a person. The AI investigates, reads logs, writes the configuration, writes the fix. Changing the machine is a person's job. The account the AI runs under gets no sudo. Every one of those is work in commands and files, and the result can be checked mechanically. It falls squarely inside what 1-01 described as a domain where the rules are explicit and the answer can be checked.
The unit of work is a folder. *Make one folder per task and set the working directory of Claude Code on the workstation to it. That is all.* The AI reads its context from that folder and writes what it builds into it. Git is not required; add it later if you want the history.
But whoever holds root can read every secret on that machine. They can be deceived, and they can make mistakes. That is true of an AI and of a person alike. So important work is checked by a person. If it takes time, so be it. Important work is these eight.
- Applying changes to a machine that holds secrets (the public face, mail and meetings, authentication and data)
- Regenerating keys
- Actions taken outside (changing DNS, sending mail, deleting data in an external service)
- Actions that cannot be undone
- Granting or revoking rights (creating or deleting users, making someone an administrator, giving an outsider rights for a job)
- Opening a way out or in (firewall rules, ports, adding a permitted destination)
- Bringing in new software or an outside service (adding a dependency, widening what data goes to an outside AI)
- Changing how copies and logs are kept (how and where copies go, stopping or deleting logs)
The AI states these eight before doing them. The AI explains each line, and a person reads, checks, and types it. Item 1 means changing configuration and applying it. Security updates are applied automatically, and starting a stopped service changes no configuration, so neither falls under item 1.
Treat an outside person you hire for maintenance the same way. Granting rights job by job would be ideal, but day-to-day maintenance would not keep moving. So separate the daily work from the important work.
- Give the outside person an account in their own name. No shared accounts. No exceptions to multi-factor authentication
- They come in only by a way the company provides. No vendor remote-management tool goes in (in October 2026, a vendor-side backup tool's credential was used to enter hundreds of Microsoft 365 environments — the ConnectWise case, reported by Huntress)
- Rights for daily work may be held continuously, but only for the machines and roles they look after
- The eight kinds of important work, even when an outside person does them, are checked by someone in the company
- The logs stay on the company's side, where the outside person cannot delete them
- When the contract ends, stop the access that day. Review who holds what, regularly
Other steps that need sudo (applying updates, starting a stopped service) are also typed by a person. No line-by-line explanation is required; the result is verified. How to verify is in each chapter's "How to check you are done."
When an AI reads data from outside (the body of a mail, an outside page), that AI gets no tools and no secrets. Instructions to the AI can hide inside what it reads (2-17).
The human keeps only what a reinstall cannot restore
Every configuration is written to files in the task's folder. Whichever machine breaks, it is rebuilt on the spare from that folder and the copies of the data. The human keeps only what a reinstall cannot restore.
- Keys and accounts — domain registration and the management of contracts and payment live on no machine. Each secret lives only on the machine that uses it. The workstation holds only the AI service's key and the key for pushing code
- Copies of the data — databases, files, mail, and repositories are copied off the machines every day. The copy is pulled from outside, so root on no machine can delete it (2-01: "protect only the data and the spec")
- The list of keys and secrets — which secret sits on which machine, until when it is used, and how it is regenerated. The values are not written down
- The record of who did what — people, the AI, and outsiders alike leave what they did in a record. Append only, so that any rewrite shows
- Rebuilding and regenerating keys — a few times a year, a person actually rebuilds a machine on the spare, and regenerates the DKIM private key, the signing secret, the ssh keys, and the API keys, to confirm it all works
Narrow the ports reachable from outside
- Only the public face (80 and 443) and the mail-and-meetings machine (mail ports and the meeting audio port) are reachable from outside. The authentication-and-data machine and the workstation are not
- Outgoing traffic is also stopped by default; only named destinations are opened
- Split the network too. Put the public face and the mail-and-meetings machine on separate networks with the router's LAN division, and decide what may pass between networks. Three defenses are added. It is one more layer for when a machine's firewall is misconfigured. A machine on the same network can no longer claim another machine's address (MITRE ATT&CK T1557.002). Devices without a firewall of their own are covered (NIST SP 800-41 Rev.1). Before adding a box, check whether your current router can divide the LAN
- Keep the router's admin page and ssh out of reach of the machines facing outside. A breached public machine could otherwise try the router at the exit next
- The desktop connection is never opened to the outside. Reach it through ssh from your own PC
- Each service runs under its own user, with systemd restrictions
- ssh is key-only; password and root logins are turned off
- Security updates are applied automatically (
unattended-upgrades). Raising a version is a person's act - Logins, one-time codes, and receivers get attempt limits (
fail2ban, or in the application) - Dependencies are installed at pinned versions (
uv.lockin the folder; 2-10)
2-05's "keep the center minimal, defend in layers on every server" holds with the machines split, too.
Run more than one AI, and have them watch each other
Do not rely on a single AI. Add one from another company as well. Not depending on one vendor is the same idea as avoiding the lock-in examined in 3-05.
Then have them watch each other. Pair AIs from different companies, and give the watching side only the artifact and the criteria for checking it. Do not hand over how it was made. A partner who shares the same history makes the same oversights.
What goes to an outside AI, and what does not
An outside AI is run by a business outside the company. Decide what goes to it and what does not.
- What goes — the contents of the task folder (spec, plan, code) and the logs the work needs
- What does not — keys, passwords, tokens, customers' personal information. A person puts the secrets in place; the AI is given only the name of where they are
- Do not entrust an AI vendor's key to an AI tool service — keep the key on the workstation yourself. A service that holds your keys becomes a new contractor (in October 2026, the AI-vendor keys that an AI coding-tool service held for its users leaked — OpenCode's announcement, per press reports)
- Confirm the setting that keeps your data out of training — each plan has one. Check it before handing anything over
An outside AI can stop — by the vendor's choice, or by a government's rules (3-03). Arrange things so the work does not stop with it. What runs the business is frozen into code and keeps running without the AI (2-17). Building work continues on the self-hosted LLM set up in 2-16.
What you need
- Five machines (four and a spare). Small PCs, roughly ¥50,000–100,000 each, so roughly ¥250,000–500,000 for five. Leave them powered on
- A connection reachable from outside. Point a name at it with a fixed IP or DDNS (2-11). Handling mail needs a fixed IP and reverse DNS (PTR) (2-08)
- The AI subscription
Memory and disk sizes are not decided here. Tell the AI what this series stands up, and the AI decides what each machine needs.
No dedicated server hardware, no maintenance contract. When one breaks, replace it and rebuild on the spare.
Reverse DNS (PTR) is the record that looks up a name from an IP address — the opposite direction from ordinary DNS. A receiving mail server reverse-looks-up the sending machine's IP and checks that the name it gets maps back to the same IP. If not, the mail is treated as spam or refused. Gmail requires this of every sending machine (Google's email sender guidelines, checked 2026-10-05).
The reverse record is set by the owner of the IP address, the line provider. Even on a fixed-IP line it often starts as the provider's generic name. To match it to your mail host name, ask the provider to set it.
What it costs
The machines are a one-time purchase, roughly ¥250,000–500,000 for five.
The AI is paid monthly. At public prices as of 2026-10-05 (excluding tax, monthly), Claude Pro is $20 a month and Max starts at $100. Another company's basic plan sits in the same range (ChatGPT Plus is ¥3,000 a month on its Japanese page). There are two because watching each other needs two contracts with different companies.
| Period | Plans | Monthly |
|---|---|---|
| While building | Claude Max $100 + another company's basic plan, about $20 | About $120 |
| In operation | Claude Pro $20 + another company's basic plan, about $20 | About $40 (under ¥10,000 even with tax) |
In operation, the AI's work is checking that things run and making small fixes. It is not writing all day, so the basic plans suffice.
No approval paperwork, no server contract, no per-head licenses. Only the person who builds (the builder) talks to the AI, and the contract is that one person's. Letting others use a personal plan is forbidden by the terms (Anthropic's terms of service). What everyone in the group uses is the tools the AI built, and tools need no per-head contract.
How to check you are done
This chapter is done when these six hold.
- You can ssh into each of the four machines from your own PC
- You can connect to the workstation's desktop from your own PC through ssh and see GNOME
- On every machine,
systemctl --failedlists no failed service - Seen from outside, the public face shows only 80 and 443, the mail-and-meetings machine shows only its mail and meeting ports, and the other two show no ports at all
- The configuration is in the task folders, the copy of the data has arrived off the machines, and you have rebuilt one machine on the spare
- A person can put the state of each machine (running services, open ports, firewall directions, updates, backups) on one sheet with a tool, and read it
ssh [email protected] # 1 — for each of the four
systemctl --failed # 3
sudo ss -tlnp # 4 — list the listening ports
What the human holds
Values the human supplies
- Each machine's name and role
- The server's domain name
- The ssh public key of your own PC
- The name of the first administrator
- The off-machine location for the copies of the data
Operations the AI states before doing — the eight a person checks
- Applying changes to a machine that holds secrets
- Regenerating keys
- Actions taken outside (DNS, sending mail, deleting data in an external service)
- Actions that cannot be undone (including reinstalling an OS and deleting the off-machine copies)
- Granting or revoking rights
- Opening a way out or in
- Bringing in new software or an outside service
- Changing how copies and logs are kept
Versions checked, and when
- Debian 13 (trixie), GNOME 48
- Claude and ChatGPT prices checked on 2026-10-05
- The defects that let a virtual machine take over its host (CVE-2026-53359, CVE-2026-64561) checked on 2026-10-18
- This procedure was written on 2026-09-20, reviewed on 2026-10-05, and split by role on 2026-10-18
- If a version has moved, have the AI confirm the official procedure before proceeding
Summary
Decide the machines the Independence part runs on, first.
- Split the machines by role — the public face, mail and meetings, authentication and data, the AI workstation, and a spare. Split with physical machines, not virtualization. The self-hosted LLM gets a separate server
- An entry point for each scale — an individual starts with three machines (entrance, materials, desk PC); the heavy shapes come when there is more to protect
- Across machines, the data side checks the person — it does not trust the entrance. The entrance holds only what can be stolen without harm
- A small company can start by borrowing — say what is borrowed, and decide the order of moving it in
- Debian as the OS — Python and apt from the start, no reboots on someone else's schedule
- No Docker — a tool for distributing, not for building. Install with apt, run under systemd. The only exception is software shipped only as a container, and you never build an image yourself
- A desktop on the workstation — open documents, look at pages
- Important work is checked by a person — the AI's account gets no sudo. For the eight, the AI explains each line and a person reads, checks, and types it. Other steps that need sudo are typed by a person too, and their results are verified
- The human keeps only what a reinstall cannot restore — keys and accounts, copies of the data, rebuilding and regenerating keys, the list of keys and secrets, the record of who did what
- More than one AI — pair vendors and pass only the artifact and the criteria
- What an outside AI never gets — keys, passwords, tokens, customers' personal information. If it stops, the business keeps running on code, and building continues on the self-hosted LLM
- Cost — roughly ¥250,000–500,000 for five machines; the AI about $120 a month while building, about $40 in operation (as of 2026-10-05, excluding tax)
The next chapter lays the foundation (SQLite, PostgreSQL, DuckDB) on the authentication-and-data machine.