tmitts.com

Now

Retro

Drawings and documentation

I draw what I build, and I write down how to run it. The system and network drawings are real, of Brainflood and of this site; an employer's systems stay with the employer. The others show how I work wherever I am.

  1. One engineer, teams of agents
  2. Two AI companies, separate duties
  3. Infrastructure by conversation
  4. How a change ships
  5. System diagram: the Brainflood servers
  6. Network diagram: the private mesh
  7. Security: defence in layers
  8. Security: the CVE loop
  9. People: who I talk to
  10. Documentation: a runbook

One engineer, teams of agents

How one person covers the work of a full staff. I give the commands and make the calls. The agents do the volume.

One engineer in command of teams of AI agents I decide, direct, review and approve. Three kinds of agent teams work under that: build agents running Claude, review agents running Grok, and operations agents. Everything they produce lands in one repository. Me Decide, direct, review, approve Build agents Claude: application code and infrastructure changes Review agents Grok: a second opinion from a different AI Operations agents Patch, check and report on a schedule One repository Infrastructure, application and runbooks, in version control

Drawing 1 of 9. Nothing reaches production without the tests passing and my approval.

Two AI companies, separate duties

I do not let one AI mark its own homework. Claude builds. Grok agents review the commits, watch the systems and check anything that goes public. The reviewer runs on a separate machine and can only read the code. They talk through a private repository, and I read both sides.

Two AI companies, separate duties Claude is the builder. Grok is the reviewer, read-only on the code. They exchange reports and verdicts through a handoff repository, which I read. Two more Grok agents check the words and watch the systems. Only I can approve production, the main branch, secrets, spending and mail to real people. Me Reads both, makes the call Handoff repository Reports go one way, verdicts come back Builder: Claude Code and infrastructure, tested, shipped to staging Reviewer: Grok Read-only on the code, on a separate machine Words: Grok Final review of anything that goes public Watch: Grok Read-only eyes on logs and running jobs Only I approve Production, main branch, secrets, spending, mail

Drawing 2 of 9. On Brainflood the reviewer is called BC, the watcher BW and the marketing desk BM. An agent can ask for a production change. Only I can approve one.5

Infrastructure by conversation

I built a chat bot that developers talk to in plain words. It knows the infrastructure because it reads a curated snapshot of the Terraform in GitHub. A developer asks for two new instances; the bot asks which subnet, proposes sizes from similar instances already running, and then does the paperwork.

Infrastructure by conversation A developer asks a chat bot for two new instances. The bot knows the infrastructure from a curated snapshot of the Terraform in GitHub, so it asks which subnet and proposes a size from similar instances. It then opens a ticket and a pull request with the Terraform plan and notes, and the change ends with a Terraform apply. What the bot knows: a curated snapshot of the Terraform in GitHub Developer I need two new instances in AWS. Bot Which subnet? These three fit. Bot Similar ones run this size. Same? Developer Yes, on the second subnet. Bot Ticket and pull request are open. 1. Ticket Opened in Linear, with the request 2. Pull request The Terraform plan, and its notes 3. Apply Terraform makes the change

Drawing 3 of 9. The bot opens the ticket and the pull request with the plan and its notes. The change ends with a Terraform apply.

How a change ships

The same six steps, whether the change is to an application or to the infrastructure under it.

How a change ships Six steps in order: a task, the change, the gate, review, staging and production. A dashed line runs back from production to staging: a bad release can be rolled back. 1. Task One clear job, written down 2. Change An agent writes it, in code 3. Gate Tests, type checks, a build 4. Review A second agent, then me 5. Staging A full copy of production 6. Production Backed up first, watched Roll back if it is wrong

Drawing 4 of 9. The gate is automatic. The review is not.

System diagram: the Brainflood servers

Four cloud servers, each with one job, all running open source software.

Brainflood server layout Customers reach three servers: marketing, production and the sites edge. A fourth server holds staging, metrics and logs. A private WireGuard network joins all four. Customers: hosts, players' phones, venue TVs, visitors Marketing The public site, on Nginx Grafana dashboards Hub of the private network Production Nginx and ModSecurity FastAPI, Celery workers PostgreSQL, Redis Sites edge Venue websites Caddy, static copies Certificates on demand Staging and operations A full staging copy of production Prometheus and Loki for all four Infisical, the secrets store WireGuard private network

Drawing 5 of 9. Customers reach three of them. All four talk to each other privately.

Network diagram: the private mesh

The servers reach each other over WireGuard, in a hub and spoke shape, and so do I.

Brainflood private network A WireGuard network in a hub and spoke shape. The marketing server is the hub. Production, the sites edge, the operations server and my workstation each connect to it. Marketing Hub of the network Production The application, its data Sites edge Venue websites My workstation On the private network Operations Staging, metrics, logs WireGuard

Drawing 6 of 9. Metrics, logs and published venue sites travel over this network.

Security: defence in layers

No single control is trusted to hold. Each layer assumes the one outside it has already failed.

Defence in layers Four layers, one inside the next. The edge, then the application, then the server, then the data at the centre. Each has its own controls. Edge Web application firewall, rate limits, TLS Application Bot protection, sign-in controls Server Intrusion response, file integrity checks Data Nightly backups, a copy off the server, a tested restore

Drawing 7 of 9. This is how Brainflood is protected today.7

Security: the CVE loop

A new vulnerability is checked against what is actually running when it is published, not at the next audit.

The CVE loop Four steps that repeat: a vulnerability is published, it is checked against what is running, the fleet is patched, and the fix is verified. Then the loop starts again. 1. Published A new CVE is announced 2. Exposed? Checked against what is running 3. Patched Across the fleet, from code 4. Verified Versions checked, services healthy Then watch for the next one

Drawing 8 of 9. Because the fleet is defined in code, patching it is one reviewed change.

People: who I talk to

Technology only works when people are heard. I can talk with a CEO and a board of directors, take requests and complaints from engineering, work with HR on site security and camera footage, and with marketing on what they need. I am just as glad to sort something out with the janitor.

Who I talk to I am in the middle. Around me are the CEO and board, engineering, HR, marketing and the janitor. Each gets different words and the same respect. Me The same respect for each CEO and board Risk and cost, plainly Engineering Tools and complaints HR Site security and cameras Marketing What they need, on time The janitor A building that works

Drawing 9 of 9. Different words for each. The same respect for all.

Documentation: a runbook

Documentation is part of the job. This is a real runbook, for the site you are reading, written the way I write them: what it is for, the steps in order, and the way back.

Publishing tmitts.com

What it is for. Get a change to this site live, and get back to the last good version if it is wrong.

  1. Edit the content

    All of the site's words live in one file. Change the file, not the pages.

  2. Run the gate make test

    Checks every link, the contrast of every look, and that nothing private or unconfirmed is in the build.

  3. Commit git commit

    The corner of every page shows this commit, so the live site always says which version it is.

  4. Publish make deploy

    Runs the gate again, builds, copies a new release beside the old ones, and switches to it in one step.

  5. Check

    Open the site. The revision in the corner should match the commit.

  6. If it is wrong make rollback

    Switches back to the release before. Nothing is rebuilt, so it takes seconds.

Worth knowing.

  • The last five releases are kept on the server.
  • Certificates renew by themselves.
  • The site is static files. There is no database to back up, and nothing to patch but the web server.