Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Lab Book

The lab is the physical side of the project: the machines in the basement of a house in Osseo, Wisconsin, the switches that will join them, the Kubernetes cluster they are meant to become, and the ESP32-class microcontrollers at the small end of the same programme. This book is the record of that lab — what is physically there, what is planned for it, what has actually been proven, and what is still only research.

The book’s primary source is the lab census gathered on 2026-11-23/24 under the programme tracker #13905 and landed as a dated research record in the code repository (doc/2026-11-24T00-58-48Z_research_code-book-census-lab/, PR #13937).

The honesty note — read this first

This book marks every claim with the status the record supports:

  • Proven — a record shows it working or verified.
  • In progress — work or a live partial state exists.
  • Planned — ticketed or designed, not built.
  • Researched-only — documents or research exist; there has been no build and no physical verification.

Those markings are load-bearing, and this book keeps them exactly as honest as the census kept them. The headline, stated plainly: as of the latest status record (2026-10-27), nothing in the current cluster programme has been built yet. The basement machines have no operating system installed, by design — no hand-built state that just exists forever. An earlier Talos test cluster from the v1.9 era was torn down, confirmed by Drew on 2026-10-26, and is history in this book, never present tense. The one proven cluster piece is the TALM per-node disk flow (#1812). The one live network artefact of the lab programme is a Cloudflare Tunnel running on the laptop, not on any cluster machine. A book that is mostly to-do is the correct book for this lab today; the gap list in Gaps and open questions is a deliverable, not an embarrassment.

How to read this book

The platform and toolchain part above is that second part: it landed under #13905 from the platform census of 2026-11-23, with the same honesty markings as the rest of the book — including where the record is thin, planned, or absent, which its short chapters say plainly.

Sibling books and records

One boundary, stated once: this book contains no cost material. Costs belong to the Project Management book.

The Osseo site

The lab is one physical place: the basement of Drew’s house in Osseo, Wisconsin (America/Chicago), plus the home network the house already runs. Drew plans to stay in the house long-term — 10+ years, possibly 40 — and home Ethernet hardwiring is a standing project (doc/platform/hardware.md in the code repository, sourced from the idea register of 2026-10-20).

The basement fleet, as recorded

About a dozen Threadripper machines form the core fleet. The record (idea register 2026-10-20; roadmap planning/roadmaps/basement-cluster.md; status record 2026-10-27) states:

  • The core boxes are identical in motherboard, CPU and specifications, except for their SSDs.
  • One board is named: the ASUS Pro WS WRX80E-SAGE (“WRX80 Sage”), which received a firmware update in the 2026-10-20 pass. The sources do not say whether every core box is this board or only one is.
  • A separate group of Dell machines was picked up alongside; no firmware updates could be found for them, and their BIOS received a best effort.
  • Every CPU at least boots and all RAM works. Nothing has been load-tested.
  • No operating system is installed on any of them — deliberately. The programme’s rule is that there will be no hand-built state that just existed forever; machines will be installed from configuration when the cluster programme reaches them. See Boot and auto-join.
  • The core machines have enterprise BMC/IPMI remote management (built-in enterprise KVM). Versions and every setting are still to be audited — that audit is epic #1081.
  • Two to three mini PCs are planned to join the cluster interconnect alongside the dozen machines (#6077).
  • Several older PCs and laptops can be hooked up quickly — decent when bought, shelved for about two years, at least one with an integrated GPU — alongside a desktop tower, an older Framework laptop and a gaming PC. Their candidate roles are in The cluster programme. The source for this group is an addendum of 2026-10-21 marked unverified dictation, and this book keeps that marking.

Status of the fleet as a whole: planned. The machines exist; nothing is installed on them.

Power

Power is the blocker of record for the full fleet: basement power capacity and general mess stand in the way, and the target is 3–5 machines first.

The electrician brief exists and is complete as a document (planning/roadmaps/basement-cluster-electrician-brief.md): four dedicated 20A circuits, each on its own breaker, 12 AWG copper, duplex receptacles at the rack location, labelled “CLUSTER 1” through “CLUSTER 4”. Its load maths uses 600 W sustained per machine — a planning assumption in the brief itself, to be replaced by measured values. An earlier UPS-breaker drop-off idea is explicitly not wanted.

Ticket state:

  • #1103 — circuit spec and electrician brief: closed.
  • #1104 — engage an electrician (quotes and schedule): open.
  • #1105 — install and verify the dedicated 20A circuits: open.
  • Epic: #1083 — basement power and space.

The census found no record of circuits actually installed, a UPS in place, or measured per-machine draw. That is gap 6 in Gaps and open questions.

Racking and physical layout

  • #1106 — basement cleanup and rack layout for the first nodes: open.
  • #6070 — “another 4 each of racking (as dictated)”: open. The recorded interpretation is “four more rack units / items to rack”; the ticket itself asks that what the four turned out to be be recorded on the ticket. The dictation is not resolved in the record, and this book does not resolve it.
  • #6071 — install 3 more DX010 units: open. See Switches.

No record was found of a rack actually populated, rails installed, or a completed layout. The physical bring-up sequence is ticketed under parent #6066 (filed 2026-11-04): racking, then Dell switches ×3, then edge routing and mesh Wi-Fi, then interconnect, then cluster bring-up. All of it is planned; none of its checkboxes were checked in the bodies the census read.

The home network as it stands today

FactStatus
WAN: 2 Gbps symmetric fiber from Brightspeed — the only fiber provider in this part of Osseo. A second line would make 4 Gbps. Cable is 100 Mbps and pricier (a possible redundancy pickup). TriCounty Communications fiber may reach the address later; then both fibers would be bought.Proven, as the standing service of record
ISP customer-premises equipment in the switching inventory: Calix GP1101X GigaPoint ONT, XGS-PON 10G/10G, one 10GBASE-T portResearched-only (inventory record; no install state stated)
Current LAN: Brightspeed fiber into a TP-Link Deco BE11000 in router modeProven (memory of record)
Home IPv6 is broken in practice: IPv6 payload transfers to Cloudflare/npmjs stall at 0 bytes; PMTUD black hole is the lead suspect. IPv6 is ULA-only; the standing directive is to prefer IPv4 everywhere until fixed (#1280)In progress — a workaround landed for the laptop (PR #1286); the root fix is open on #1280
Drew’s networking priority, ruled 2026-11-05: router and Wi-Fi firstStanding direction
Edge routing reconfigure and rewire (#6067) — sequenced after the Dell switches are racked; the edge router’s config is to be stored in the code repositoryPlanned
Mesh Wi-Fi rewire (#6068)Planned

The one live artefact

The lab programme’s first Cloudflare Tunnel went live on 2026-11-06: a connector on the laptop (amd), seed ingress lab.security.cab, NixOS service services.lab-tunnel (#6455, closed). It is proven — and it is also the one live network artefact of the whole lab programme. Note where it runs: on the laptop, not on any cluster machine.

What is not at the site yet

No running Kubernetes cluster. No installed switch fabric for the cluster. No racked cluster nodes. No cluster storage pools. The v1.9-era Talos test cluster (VIP 10.10.0.42, controllers a1/a2/b1, workers a3/a4/b2–b6, recorded in infra/talos/01b.us/) is historical reference only — torn down, confirmed by Drew 2026-10-26. See Talos and Cozystack.

Hardware register

This chapter records the lab’s hardware exactly as far as the record supports it — and names, just as exactly, where the record stops. The register’s figures come from Drew’s idea register of 2026-10-20 and the records built on it. Where two figures exist, both are given.

The core fleet

ItemRecord
Threadripper machinesAbout 12 (“a dozen”). Identical motherboard, CPU and specifications except SSDs; one named board is the ASUS Pro WS WRX80E-SAGE. Enterprise BMC/IPMI on the core machines. High-speed NICs whose exact specification is still to be verified — “at least 200 Gb ports” was dictated and remains unverified (see the gap list). Every machine has a consumer NVMe boot drive; the best are Samsung 990 Pro.
RAMAt least 3 TB of DDR4 server ECC RAM across the fleet. All of it works; none of it is load-tested.
Hard drives15–16 × 16 TB helium Western Digital server pulls (Drew also said “at least 12” once; the register records both figures). Bought before storage prices spiked. Eight are still in the box, uninstalled, with no SMART or baseline data captured for any of the HDDs.
NVMe and SSDsEvery machine has some consumer NVMe boot drive. Best tier: prosumer Samsung 990 Pro. Mid tier: 980s, smaller 990s, other good consumer SSDs. Per-machine SSDs are the one specification that differs between core boxes.
NVMe firmware/SMART archiveA backup hard drive holds SMART data and manufacturer firmware data for every NVMe (not the HDDs). Firmware updates were run wherever findable. Proven as recorded, 2026-10-20.
Firmware stateWRX80E-SAGE updated. Dell machines: no updates found, BIOS best effort. Every CPU boots, all RAM works. The full audit is epic #1081, with #1099–#1102 (golden baseline, bring-to-baseline, routine KVM screenshot verification) all open.

The rest of the site hardware

Machine or groupRecord
Dell machinesPart of the basement fleet. Count not recorded; no further specification in the sources read; no firmware updates found for them. A gap.
Mini PCs2–3, planned as cluster interconnect members (#6077). No specification in the record. A gap.
Spare PCs and laptopsSeveral, plus a desktop tower, an older Framework laptop and a gaming PC. Candidate roles: compile/test runners, iGPU remote-desktop hosts, Talos nodes, quorum witnesses — see The cluster programme. Source marked unverified dictation in the register addendum of 2026-10-21.
Second NixOS host, nixosA Framework 13-inch 12th-gen Intel machine with a 2 TB NVMe layout and desktop profile, defined in nixos/hosts/default.nix. No lab role recorded. A gap.
PC Engines APUA hardware configuration exists (nixos/hardware-configuration/pcengines/apu/). No lab role recorded. A gap.

Out of scope for the lab, recorded so the boundary is plain: the work Mac (a Vertex job machine — explicitly not lab hardware) and Drew’s phone.

GPUs — explicitly not a compute resource

The register lists 3× Intel B50 and 1× RTX 2060 (noted: low hash rate), plus very old display cards useful only for basic GUI/BIOS access on a misbehaving box. There are no local model-farm plans.

One framing tension is recorded, not reconciled: a separate closed research issue, #6072, covered GPU options after Modal credits and its title records “local (none owned)” for that capacity question. This book uses the register’s list as the lab’s hardware of record and notes the difference; see gap 10 in Gaps and open questions.

The one collected machine record: the laptop amd

Exactly one machine in the whole estate has a collected inventory record: Drew’s Framework laptop, amd (doc/hardware/machines/amd.md, collected 2026-10-29 by machines/collect-inventory.py):

  • Framework Laptop 13, AMD Ryzen 7 7840U (8 cores / 16 threads).
  • About 128 GB RAM (132,752,572,416 bytes as collected).
  • Samsung SSD 990 PRO 4TB NVMe.
  • MediaTek MT7922 Wi-Fi.
  • BIOS INSYDE 03.18.
  • NixOS host config amd in nixos/hosts/default.nix (Framework 13-inch 7040-AMD hardware, 4 TB NVMe disk layout). The laptop is Drew’s primary workstation, the canonical Atlas home and ingest factory, and the machine that runs the lab’s Cloudflare Tunnel connector — see The Osseo site.

The laptop is proven and in daily use. It is also the exception that proves the rule of the next section.

The per-machine inventory gap

There are no NixOS definitions for any Threadripper or cluster machine in nixos/hosts/ — the two Framework laptops are the only hosts defined. That is consistent with the design (the cluster machines will run Talos, not NixOS, and currently run nothing), but the deeper gap is inventory itself:

  • The inventory-record schema and template are built, and the design task is closed (#1094). The schema is in use in doc/hardware/machines/ — for the laptop alone.
  • Gathering statistics is still open for the core Threadrippers (#1095), for the remaining machines plus the boxed-HDD baseline (#1096), and for ranking and naming the first 3–5 nodes (#1098).
  • The umbrella is #1810 — hardware inventory and first-node selection, under epic #1080.

Until those land, every “identical core boxes” claim in this book rests on Drew’s 2026-10-20 dictation. The book says so rather than letting the claim harden into a specification.

The completion path: the AliExpress inventory

No per-item prices exist in any source the census read — no purchase prices for machines, boards, RAM, NVMe, GPUs, NICs or switches. The only timing note is that the HDDs were bought before storage prices spiked.

The priced inventory is precisely what #13910 is meant to create: aggregate the AliExpress purchase history into a hardware inventory. That issue is open; its access step is pending Drew and no login was attempted by the programme. When it lands, this chapter gains the per-item record it currently lacks — and Keeping this book current makes updating it part of the sync rule.

A note on the hardware-doc repository

The sibling repository developing-today/hardware-doc (symlinked into the code repository as doc/hardware) holds device and component research decomposed to primary evidence, with every claim carrying its source and evidence status. Its own verification reports are explicit that its passes carry zero hardware-tested claims. This book therefore treats hardware-doc device records as researched-only evidence about parts, never as proof that Drew owns a given board. Ownership is established only by the machine inventory above and the AliExpress aggregation — both still to come.

The cluster programme

The cluster programme is the plan to turn the basement fleet of The Osseo site into a Kubernetes cluster: Talos Linux installed declaratively with TALM, running Cozystack, with replicated storage and the project’s own workloads. This chapter gives the programme’s structure and its current state. The design areas have their own chapters: Talos and Cozystack, Storage: LINSTOR and DRBD, and Boot and auto-join. The programme’s runtime-detection layer is Security: Falco runtime detection.

Structure of record

  • Parent epic: #1817 — Basement Talos/Cozystack cluster program.
  • Project home: planning/roadmaps/basement-cluster.md in the code repository (PR #1082, merged).
  • First status record: doc/2026-10-27T03-14-08Z_status_basement-cluster/.
  • Twelve epics, #1080 through #1093, in org Project #4, with the Area option literally lab-cluster and execution-mode labels for online, hybrid and physical work.
  • Thirteen detailed tasks, #1094 through #1106, under epics 1–3.
  • A dashboard visualisation (#1108) is closed.
  • Predecessors dezren39/nix#501–#508 (filed 2026-10-20) are all closed with superseded-pointer comments; their content lives on as code issues in the #1810–#1815 range and elsewhere.
  • Physical bring-up parent: #6066 — racking, Dell switches ×3, edge routing and mesh Wi-Fi, interconnect, cluster bring-up.
  • A fleet-drafted integration design, doc/living/lab-integration.md (P9), is a draft awaiting Drew’s ratification (#8873, open). Nothing in it is decided until he ratifies it, and this book cites it only as a draft.

The twelve epics, by subject: #1080 hardware inventory and first-node selection · #1081 firmware/BIOS/BMC audit · #1083 basement power and space · #1084 network fabric · #1085 storage assembly · #1086 TALM and Talos bootstrap · #1087 Cozystack platform · #1088 platform services · #1090 observability, backup and recovery · #1091 cloud extension · #1092 first workload · #1093 the ESP32 wing (see ESP32).

Hard rules

Two rules govern the whole programme, from the idea register, stated explicitly there:

  • No HashiCorp anything. Nomad was abandoned; the programme is all-in on Kubernetes.
  • Everything bootstrappable from config. No hand-built state — the same rule that leaves the basement machines with no OS today (see Boot and auto-join).

Current state

As of the latest status record (2026-10-27): nothing in the current cluster programme has been built yet. What exists is thorough research and planning, one proven local TALM container flow, one live Cloudflare Tunnel on the laptop, and a large ticketed programme. Component by component:

ComponentState
Talos Linux (current programme)Planned — no node installed; “no node is installed until the TALM bootstrap flow is proven” (status record 2026-10-27). Epic #1086 open.
Talos (historical v1.9 test cluster)Proven, then retired — torn down 2026-10-26. History only.
TALM bootstrap flowProven locally (containers); planned on bare metal. See Talos and Cozystack.
CozystackPlanned — the platform is chosen, settled by Drew 2026-11-23; not yet installed. Install epic #1087 is “proposed/Later” in the roadmap.
LINSTOR + DRBDPlanned — design only. See Storage: LINSTOR and DRBD.
Postgres (CloudNativePG via Cozystack)Planned — CloudNativePG + streaming replicas (Drew’s lean; Cozystack’s shipped operator); decision recorded in the research brief: use Cozystack’s CNPG-based managed Postgres, do not deploy a second operator. Treatment in Storage: LINSTOR and DRBD.
RustFS (S3)Planned; the RustFS-versus-SeaweedFS decision landed 2026-11-24: SeaweedFS stays as Cozystack’s S3 layer, and RustFS is pilot-only for standalone large-object workloads outside Cozystack; epic #1088. See Object storage: RustFS and SeaweedFS.
Runtime detection (Falco)Planned — adopted as the design’s tripwire layer (Drew, 2026-11-23); not deployed. See Security: Falco runtime detection.
Platform services (NATS, FluxCD, Cloudflare tunnel, Tailscale on-cluster)Planned — the day-one list from the register; epic #1088.
First workload: the ID app on FluxCDPlanned — epic #1092. Which app exactly is “the ID app” is still an open question (gap 12).
Observability, backup and recoveryPlanned — epic #1090, including the power-return boot order.
save-secrets tooling for TalosProven fix — #6554 closed via PR #8000 (atomic encrypt, fail loudly).

The one live artefact

The programme’s first lab tunnel is its one live artefact: the Cloudflare Tunnel of #6455 (closed), live since 2026-11-06, connector on the laptop (amd), seed ingress lab.security.cab, NixOS service services.lab-tunnel. It is proven — and it runs on the laptop, not on any cluster machine. It is mentioned here, in the programme chapter, because there is nowhere more built to mention it.

Research baseline

The programme’s research brief (2026-10-03, in the lab-cluster goal workspace) pins the stack: TALM is cozystack/talm v0.35.0 (the goal’s original talos-systems/talm name is wrong — canonical is cozystack/talm), Talos v1.14.1, Cozystack v1.6.4, RustFS 1.0 GA 2026-09-16, managed Postgres = CloudNativePG. Stack fit as recorded: TALM produces Talos configs, Cozystack runs on top, and CNPG Postgres plus RustFS provide data services.

Adjacent programme pieces

  • Containerised builds. Generic containers for ID and fleet purposes are closed on the record (#6076, closed with label status:done): Nix-built generic containers, no hand-maintained Dockerfiles. The census read the issue body and its closed/done state but did not independently re-verify the proof artefacts, and this book cites it as closed-per-record. Containerised build/compile in the cluster is planned and waits on the cluster — see the High-level roadmap.
  • VMs near the lab. #5772 (open) covers declarative guests (nixvirt / microvm.nix). Its recorded current state (2026-11-04 inventory): libvirtd enabled in the laptop profile and zero guest definitions anywhere; one seed microVM (prometheus, 2 vCPU / 1 GB) exists as a flake input with its profile commented out on amd. Planned.
  • Spare-PC roles and the quorum question. The register addendum (2026-10-21, marked unverified dictation) names candidate roles for the spare PCs: basic compile/test runners; headless graphics via the integrated GPU serving remote sessions; Talos nodes in the 3–5-node cluster (open question whether they are strong enough — verify against actual specs); and quorum / tie-breaker witness nodes for LINSTOR/DRBD split-brain decisions in layouts with only two (or four) storage nodes — a Raspberry Pi is the named alternative for the witness role. The SBC question was taken up as #6078, which is closed; its body acceptance checkboxes stand unchecked and the census did not extract a verdict from its comments, so the per-role verdict is a gap (gap 8), not a claim in this book.
  • Cloud extension. Alongside the cluster, an OCI always-free maximisation was planned in detail (epic #1091; child #4904 still open). But the memory of record states plainly that Oracle/OCI is not a backend — stood down 2026-10-31. The epic and child issues remain open on GitHub. This book records both facts and flags the pair as unreconciled, in Gaps and open questions — it does not resolve the contradiction by picking a side.
  • Egress. The egress strategy for the 2 Gbps home fiber is #5030 (open, design), with enforcement implementation #8408 (open). Direction of record: tunnel or shunt bulk traffic to cheap-or-free-egress services, compress aggressively, and only cross the home link with what must. Falco’s unexpected-egress watching is the planned detection side of this strategy — see Security: Falco runtime detection. (Budget figures from the record are cost material and are not reproduced in this book.)
  • boats.dev, a container-hosting service with a free tier — not one of the project’s domains, corrected 2026-10-25 — is a research item (#1815, open). Researched-only.

What pkgs/lab-ops-hub is not

A footnote, because the name invites the mistake: pkgs/lab-ops-hub is not the physical lab. Its own README describes it as a Cloudflare full-stack demo — one Worker exercising the Workers platform surface at personal scale — built and deployed 2026-10-20. Its database was seeded with three fictional machines named talos-1/2/3 “matching the basement-cluster sketch”, which is a demo dataset, not the lab’s inventory. The lab connection is nominal and thematic only, and this book gives it no chapter.

Talos and Cozystack

The cluster’s operating system is Talos Linux, configured declaratively with TALM; the platform on top is Cozystack. This chapter states what is planned, what is history, and the one piece that is proven.

The planned state

  • Talos Linux on the first 3–5 of the core machines, installed only through the TALM bootstrap flow: “no node is installed until the TALM bootstrap flow is proven” (status record 2026-10-27). Bootstrap epic: #1086.
  • Cozystack on top of Talos: the chosen platform — settled by Drew on 2026-11-23 (“we will definitely use the Cozystack”), no longer an open evaluation. It was researched in depth before the decision (CNCF Sandbox; LINSTOR on ZFS/DRBD for storage; Kube-OVN, Cilium and MetalLB for networking; SeaweedFS buckets; KubeVirt; CNPG Postgres). Storage preference, settled by Drew 2026-11-23: LINSTOR-first, and Ceph avoided where possible — see Storage: LINSTOR and DRBD. Install epic: #1087, “proposed/Later” in the roadmap. The CNCF census adds the caveat that Cozystack “decides storage/tenancy/GitOps for you” (doc/2026-11-23T22-33-41Z_research_cncf-landscape/) — a property of the chosen platform, recorded with the decision. Chosen is not built: the status below stands unchanged.
  • Data services as decided in the research brief: CloudNativePG managed Postgres (do not deploy a second operator), and S3 object storage — the RustFS-versus-SeaweedFS verdict landed 2026-11-24 (record doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/, PR #13990): SeaweedFS stays as Cozystack’s S3 layer; see Object storage: RustFS and SeaweedFS. Epic #1088 remains the programme home.
  • Platform services from the register’s day-one list: NATS, FluxCD, a Cloudflare tunnel, Tailscale on-cluster (epic #1088).
  • First workload: the ID app on FluxCD, epic #1092 — with the register’s open question #1 still open: which app exactly is “the ID app” that FluxCD runs first (gap 12 in Gaps and open questions).

Status of everything in this section: planned. No node is installed, no Cozystack deployment exists.

History: the v1.9 test cluster, torn down

A real Talos cluster ran once. The v1.9-era test cluster — VIP 10.10.0.42, controllers a1/a2/b1, workers a3/a4/b2–b6, recorded in infra/talos/01b.us/ and doc/talos-addresses.md — ran Talos v1.9.0 from an image factory schematic with the siderolabs/drbd, siderolabs/tailscale and siderolabs/xen-guest-agent extensions, with PXE, ISO and raw assets recorded. It was a test, and it was torn down — confirmed by Drew on 2026-10-26.

Status: proven, then retired. Everything about it in this book is past tense. Nothing from it is running, and the current programme starts from bare machines. The only DRBD artefact that ever ran is that cluster’s siderolabs/drbd Talos extension — historical; see Storage: LINSTOR and DRBD.

The proven piece: the TALM per-node disk flow (#1812)

Drew’s open design question — how do you declaratively configure, in Talos/TALM, a bunch of hard drives that are all different per machine? — is answered and closed: #1812, landed as infra/cluster/README.md (with worked examples infra/cluster/examples/node-file.yaml and infra/cluster/examples/user-volume.yaml) via PR #5052. It is the one proven cluster piece in this book, proven as design plus a local container flow.

The answer, in brief:

  • One TALM node file per node in git (infra/cluster/<cluster>/nodes/<hostname>.yaml). Running talm template -i against a node booted in Talos maintenance mode harvests its real hardware into that file as comments; anything below the file’s modeline is a strategic merge patch over the shared cluster template at talm apply time. A non-empty body pins the file to exactly one node — a disk patch can never leak onto the wrong machine.
  • Match disks by identity, not description: the boot disk via machine.install.diskSelector on serial/wwid (never size or model alone — a replacement drive must fail loudly, not silently match a sibling); data volumes via Talos v1.10+ UserVolumeConfig CEL selectors with the load-bearing !system_disk guard. machine.disks[] is deprecated in v1.10 — do not build on it.
  • The runbook covers adding a node, replacing a disk (a boot-disk swap is a rebuild of that node from config, by design), and wiping and rebuilding a node from config only — “the node rejoins the cluster from git alone”. That runbook is the mechanism behind Boot and auto-join.

The local container-flow proof recorded on #1812: talm template -i harvest, hand-edit of disk fields only, talm apply --dry-run showing the resolved install disk, then talm apply — observed in Drew’s local container runs and verified in triage on 2026-11-03. What it does not prove: real drive-swap behaviour, or the rebuild drill on physical nodes. Both are gated on the hardware inventory, #1810.

The P9 draft — unratified

A fleet-drafted integration design, doc/living/lab-integration.md (P9), lays out a phased landing plan for the lab: Atlas serve mode, queue workers, PM surfaces and build overflow on the cluster, backups proven by a recorded restore, and more. Its status is exact: a draft awaiting Drew’s ratification (#8873, open). This book cites its contents only as draft contents. Where a later chapter mentions a P9 phase, “planned (draft)” is the whole claim.

Version pins of record

From the research brief (2026-10-03): TALM is cozystack/talm v0.35.0 — the canonical repository is cozystack/talm; Talos v1.14.1; Cozystack v1.6.4; RustFS 1.0 GA 2026-09-16; managed Postgres is CloudNativePG. These are the pins the programme was researched against; they are research-baseline facts, not a claim that anything runs them.

Storage: LINSTOR and DRBD

Cluster storage is designed, not built. This chapter records the design exactly as the record carries it — and then states plainly what exists today: no cluster storage pools, and a local↔cloud sync story that today runs entirely outside the cluster.

Tiered storage is the design centre of this chapter, per Drew’s direction of 2026-11-23: LINSTOR device tiers built from the lab’s actual hardware, with a defined fallback where LINSTOR cannot serve. Everything tier-shaped below is planned — design only, written against a planned system that does not exist yet.

The settled storage preference: LINSTOR first, Ceph avoided

Ceph is avoided where possible (Drew, settled 2026-11-23). Where the wider research weighed distributed storage options — the CNCF landscape census carried the LINSTOR-over-Rook/Ceph line for the Cozystack stack — this book now states the settled preference plainly: LINSTOR-first is the direction; Ceph is not the fallback plan and is not carried as a co-equal candidate. Factual note, kept brief: Ceph is a widely deployed distributed storage system and Rook is its Kubernetes operator; neither is in this estate’s design, and this book gives Ceph no further treatment. Status: settled direction (2026-11-23); nothing built.

The replication design (planned)

Cozystack’s storage layer is LINSTOR on ZFS/DRBD, per the research brief. Drew’s sketch adds the shape: three machines replicating via DRBD/LINSTOR, so data loss needs the same failure on two machines at once. The storage work sits in #1813 (open) under epic #1085.

Status: planned — design only. The only DRBD artefact that ever ran is the torn-down v1.9 test cluster’s siderolabs/drbd Talos extension — historical, see Talos and Cozystack. The NIC and switch-gear sanity check that LINSTOR/DRBD replication traffic depends on is still open (#1097); with the dictated “at least 200 Gb ports” figure unverified against a 100GbE-max fabric of record, the design cannot be sanity-checked until that lands (gap 2).

Tiered storage: the design centre (planned)

The tiers are LINSTOR storage pools over device classes taken from the Hardware register. Anything about the tiers that the register does not support is marked design intent, not inventory.

Tier 1 — fast: Samsung 990 SSDs (PCIe 4)

  • Hardware of record: Samsung 990 Pro NVMe — the register’s best tier (“prosumer Samsung 990 Pro”), present as boot drives across the core fleet and as the laptop amd’s collected Samsung SSD 990 PRO 4TB. The PCIe 4 designation is Drew’s 2026-11-23 tier naming (design intent as a tier label; the register records the drives, not a per-drive bus audit).
  • What lands here: the data that pays for latency — Postgres primary and streaming-replica data and WAL (see “Postgres: CloudNativePG and streaming replicas” below), etcd-class and control-plane volumes, hot workload volumes, and the read cache / landing zone for the join pattern below.
  • Shape: LINSTOR pool over the 990-class devices, DRBD replication across three machines per the replication design above; the register’s earlier named pools — (1) 4 drives RAID 10 and (2) 6 drives RAID 100 — are carried as the pool layouts of record, to be validated.

Tier 2 — mid: mixed NVMe and consumer SSDs

  • Hardware of record: 980s, smaller 990s and good consumer SSDs — the register’s mid tier, and the one specification that differs between the otherwise identical core boxes.
  • What lands here: general workload volumes, build and CI scratch that must survive a node, and the second copy class for data whose hot copy lives on Tier 1.
  • Shape: stripe 3 (about 990-class performance) × mirror 2, “RAID 100” (3 stripes, 2 mirrors, 6 drives), so two drives must die to down a machine (idea register, 2026-10-20).

Tier 3 — bulk: helium HDDs

  • Hardware of record: 15–16 × 16 TB helium Western Digital server pulls (Drew also said “at least 12” once; the register records both figures); eight are still in the box, uninstalled, with no SMART or baseline data captured. Flagged, not reconciled: Drew’s 2026-11-23 direction for this pass named a Seagate helium HDD bulk tier. The register — this book’s hardware source — records Western Digital. This chapter follows the register and flags the difference; the per-drive inventory (#1096, open) is what settles it, not an editorial choice.
  • What lands here: capacity data — S3 buckets on the HDD pools (the SeaweedFS layer of Object storage: RustFS and SeaweedFS), cold-ish buckets, backups, media and sealed archive bundles awaiting the cold store.
  • Shape: 3 hosts × 4 × 16 TB in RAID 10 (idea register, carried into epic #1085 / #1813), feeding the object layer.

Goal and open inventory work

  • Goal: 3–5 devices with near parity in disk size and capability.
  • Still open: install the 8 still-boxed HDDs and capture their baseline SMART/firmware data; per-drive records/passports so TALM and LINSTOR decisions have real data (#1096, open). The NVMe baseline already exists on a backup drive — see the Hardware register.

Where LINSTOR cannot serve: the fallback design (planned)

LINSTOR/DRBD is block storage for cluster workloads. Two classes of need sit outside it, and the design names a fallback for each. Status: design intent — nothing below is built.

  • Object-shaped and off-cluster data → S3. Anything that is an object rather than a volume — backups, sealed bundles, media, data that must be reachable from outside the cluster or survive it — goes to the S3 layer: SeaweedFS as shipped by Cozystack inside the cluster (the verdict of Object storage: RustFS and SeaweedFS, record dated 2026-11-24), and the existing R2/Drive cold store outside it (see the sync sections below). LINSTOR volumes are never the only copy of anything in this class.
  • Data spread across locations → pull-from-multiple-locations- and-join. Where a dataset legitimately lives in more than one place (for example a sealed bundle in the cold store, a working copy on the laptop, a bucket copy in-cluster), the reader does not pick one home and copy the whole dataset first. The design shape:
    1. A manifest/index — held outside the bulk data, as the cold-store design already specifies for Drive bundles — names every location holding each part, with checksums.
    2. The reader pulls each part from the nearest or cheapest available location, in parallel where the parts are independent.
    3. The join verifies each part against the manifest checksum before assembly; a part that fails verification is pulled from another location, never trusted.
    4. The assembled result lands on Tier 1 or Tier 2 as a cache or working copy; the locations of record are unchanged — the join is a read pattern, not a migration.

Open questions (explicit, by design)

This tier/fallback/join design is a design centre, not a solved system. The open questions are part of the design record:

  • Placement policy. What decides which tier a new volume or object lands on, and who moves data between tiers as it cools — LINSTOR pool rules, application choice, or a mover job? No policy is written yet.
  • Join consistency. The manifest is the join’s only truth: what updates it, what happens when two locations disagree about a part, and what a reader sees mid-update are all undecided. The design assumes checksums catch corruption; it does not yet define conflict resolution.
  • Rebuild behaviour. When a Tier 1 or Tier 3 device dies, what rebuilds first, at what priority, and what does DRBD resync traffic do to the unverified fabric (gap 2) while it runs? RAID 100’s “two drives must die” property is a sketch figure, not a measured rebuild story.
  • Quorum. Split-brain decisions in two- or four-storage-node layouts still want a witness (see The cluster programme); the witness’s own storage class is unnamed.

Postgres: CloudNativePG and streaming replicas (planned)

The basis is settled: Postgres in the cluster is CloudNativePG (CNPG), as shipped by Cozystack — Drew’s lean and Cozystack’s shipped operator agree, and the research brief’s decision stands: use Cozystack’s CNPG-based managed Postgres; do not deploy a second operator. Status: planned — no Postgres runs in any cluster, because there is no cluster.

The shape, against the tiered design above:

  • What runs where. Each CNPG cluster is a primary plus streaming replicas, spread across machines so a machine loss loses at most one member. Data and WAL sit on Tier 1 (Samsung 990) LINSTOR volumes — Postgres is the workload the fast tier exists for. Nothing Postgres-shaped lands on the HDD bulk tier except its backups.
  • Streaming-replica shape. The primary streams WAL to its replicas continuously (Postgres streaming replication, as CNPG manages it); replicas serve failover first and read traffic second. Replica count, synchronous-versus-asynchronous commit, and read scaling are open tuning questions, not settled figures — this book records the shape, not numbers the record does not carry.
  • Backups. CNPG backups and WAL archiving go to an S3 endpoint — under the 2026-11-24 object-storage verdict that is the in-cluster SeaweedFS layer (Cozystack’s bundled cozy-backups SeaweedFS bucket) first, with the external cold store as the off-cluster copy. See Object storage: RustFS and SeaweedFS.
  • Relation to the estate’s existing Postgres uses. The estate’s Postgres today lives outside any cluster: the supabase-backups R2 bucket in the backup topology below is the record’s named trace of a Supabase Postgres in the backup set. CNPG in the cluster does not replace that estate by declaration; whether any existing Postgres workload migrates onto CNPG is a per-workload decision with no record yet, and this book claims none.

Local↔cloud sync: what exists today (proven, outside the cluster)

  • The general backup topology of record (2026-10-27): sandbox → laptop + R2 + Drive; laptop → Drive + R2. “Sandbox is not storage” is a standing rule.
  • Five R2 buckets are named in the cold-store design’s source inventory: agent-inbox-mail, labops-files, nix-cache-nars, supabase-backups, webhook-gateway-payloads. No source read by the census established byte totals for them, and this book invents none.
  • The lab’s first Cloudflare Tunnel is live from the laptop — the first working local→cloud path carrying the lab name. See The Osseo site.

Local↔cloud sync: what is designed (planned)

  • Cold-store layout design (2026-10-25) — explicitly “design only; this pass moved nothing, created no bucket or folder, changed no lifecycle rule”. Google Drive is the cold, immutable archive vault: data packed into sealed 4–16 GB bundles with the searchable index/manifest held outside Drive. Cloudflare R2 is the hot/operational tier: current backups, served media, build/cache objects, with free egress. Existing tenant/bucket boundaries are kept; nothing is consolidated for neatness.
  • Cluster tiering direction: object tiering to R2 (epic #1091); cluster backups into the cold store like every other store, proven by a recorded restore (P9 draft phase 3 — draft, unratified); an etcd + TALM config recovery vault as encrypted snapshots offsite, for example R2 (epic #1090); CNPG Postgres backups to the in-cluster SeaweedFS S3 endpoint (verdict of 2026-11-24, see the Postgres section above). The wider object-storage verdict — Object storage: RustFS and SeaweedFS — is object storage, not this chapter’s block storage.
  • Atlas sync shape (cross-link): the Framework laptop stays the canonical Atlas home and ingest factory; a cluster Atlas serve mode would read the Turso hot copy (P9 draft phase 2 — draft, unratified).
  • DNS/domain side: a standing domain register with a regular full DNS-config backup exists as a completed first pass (2026-10-25, 40 domains), with recurring machinery on #902 — in progress, recorded here because the register’s own text ties it to the cluster programme’s files; it is not lab-cluster storage proper.

The honest summary

There is no cluster sync running — there is no cluster. Local↔cloud sync today is the laptop/sandbox backup topology plus one tunnel. Everything cluster-shaped in this chapter is design, and the chapter’s status words keep it that way.

Boot and auto-join

Merged priority list item 5: all servers online, auto-connecting and presenting to the cluster on boot. Every server powers on, joins the network and presents itself to the cluster declaratively — no hand-built machine that “just exists forever”. This chapter records the ambition, the mechanism that would deliver it, and the current state, which is the deliberate opposite of a running system.

The ambition

Drew’s seed, as filed on #13905: “servers auto-connecting and presenting to the cluster on boot”. In the merged priority list it sits directly after “switches integrated and racked” (item 4) and before “Talos cluster live … on Cozystack” (item 6) — the cluster is defined over machines that present themselves, and hand-installing the first nodes would create exactly the snowflake state the programme forbids.

  • Type: capability-set.
  • Area: lab (primary). Cross-links: fleet (enrolment is the same shape as fleet agent enrolment); ID (the hosted-worlds deployment pack targets these machines — see the High-level roadmap).
  • Most related: the TALM + Talos bootstrap epic #1086, named as parent of the cluster config in infra/cluster/README.md.

Current state: no OS, by design

Not started. The record, stated without softening:

  • No OS is installed on any basement machine — deliberately, per the 2026-10-27 status record. The absence is the design: “no hand-built state that just existed forever”.
  • Every CPU boots and all RAM works; nothing is load-tested.
  • Basement power capacity is a named blocker (see The Osseo site); the build target is the 3–5 best, most identical machines first.
  • Timing: no timing in the record. The hardware state (no OS, power blocker, 3–5 first) is as recorded 2026-10-20/21 in the hardware register; no reprioritisation is recorded since.

The mechanism that would deliver it

The mechanism of record is the TALM flow proven in Talos and Cozystack:

  1. A node boots from the Talos image into maintenance mode.
  2. talm template -i harvests its real hardware into its per-node file in git.
  3. talm apply lays the node’s strategic merge patch — disks matched by identity, never by description — over the shared cluster template.
  4. The node joins, or rejoins, the cluster from config alone. The #1812 runbook’s wipe-and-rebuild path is exactly this: “the node rejoins the cluster from git alone”.

The historical test cluster additionally used PXE (an iPXE script from factory.talos.dev) as a boot path — proven then, retired now, recorded in infra/talos/01b.us/README.md.

Power-return behaviour is separately ticketed as part of epic #1090: a dependency-sequenced power-return boot order, documented and exercised once. Planned.

The gap this chapter states plainly

There is no dedicated implementation issue for auto-join. The census searched for one and found none: the ambition lives in the #13905 seed, in merged-list item 5, and in the TALM mechanism that would deliver it — not in a ticket of its own. This book does not invent one, does not borrow #1086’s number as if it were the auto-join issue, and records the absence here so the programme can file the issue deliberately. Until then, #1086 is the closest parent and the TALM flow is the mechanism of record.

Switches

The switches research is the most complete research in the lab programme — and nothing in it is installed. This chapter folds in the dedicated research records, states the conclusions they support, and names the gaps the physical checks still have to close. Status of the whole chapter: researched-only, thoroughly; integration planned, not started. No switch is recorded as racked, configured for the cluster, or carrying cluster traffic.

The research records

The research lives in doc/inventory/ in the code repository — four companion files:

  1. doc/inventory/routing-and-switching.md — 2,745 lines, last updated 2026-04-02. The master inventory: 21 devices, each enriched with a full attribute set (ports/ASIC/capacity, power, latency, L2, LAG, MC-LAG, first-hop redundancy, L3 routing, security, monitoring, stacking).
  2. doc/inventory/standard-attributes.md — the standard attribute template (sections A–K) every device is enriched against.
  3. doc/inventory/enrichment-checklist.md — all 21 devices marked enriched, one device at a time, with a one-line capability digest per device.
  4. doc/inventory/gap-analysis.md — “Enrichment Gap Analysis — 2026-04-03”: what is still missing after enrichment (below).

An older gap closed by the census: doc/platform/hardware.md explicitly flagged that its own pass had not folded the switching file in (“switch make/model/count is MISSING here until that file is folded in”). The fold-in follows.

The inventory — every switch and router of record

Quantities and classes are as recorded in the summary table of routing-and-switching.md. Location and state — racked, in use, boxed — are not stated in that document for any device. That absence is exactly what #13920 now owns.

Core fabric switches

DeviceQtyTop speedPortsManagedL3Multi-chassisStackingClass / era
Celestica DX0104100GbE32× QSFP28Yes (SONiC)YesMC-LAG (pairs of 2)NoDC, 2016
Arista DCS-7050QX-32-F140GbE32× QSFP+Yes (EOS)YesMLAGNoDC, 2013
IBM Mellanox SX6036156G IB / 40GbE36× QSFPYesLimitedNoNoHPC/DC, 2013
IBM RackSwitch G8316440GbE16× QSFP+YesYesvLAGUnclearDC spine, 2012
IBM RackSwitch G8264310/40GbE48× SFP+ + 4× QSFP+YesYesvLAGYes (up to 8)DC ToR, 2012
IBM RackSwitch G8264e (G8264T)110/40GbE48× 10GBASE-T + 4× QSFP+YesYesvLAGLikelyDC ToR, 2012

One of the four DX010 units is missing fans/PSU, noted in the inventory heading itself — at most three are deployable as-is.

Routers

DeviceQtyNotes from the record
Mono Gateway Router3NXP LS1046A, OpenWrt; summary table: 2× SFP+ 10GbE + 1G ports; enrichment digest: 5× 2.5GbE + 1× SFP+, WiFi 6 tri-radio M.2, DPAA hardware offload, about 15–25 W typical
Cisco 28112ISR G1, 2× GbE, HSRP pair candidate
Cisco 18411ISR G1 compact, 2× FastEthernet — “lab/learning device” per the enrichment digest
Cisco 8811ISR G1 SOHO, fanless desktop

Managed switches, 10GbE and above

DeviceQtyNotes
Netgear ProSafe XS712T-100NES112× 10GBASE-T, smart-managed, no L3
TRENDnet TEG-30284124× GbE + 4× SFP+, L2+, fanless

Managed switches, 1GbE / 2.5GbE

DeviceQtyNotes
TP-Link Omada SG3210XHP-M228× 2.5G PoE+ + 2× SFP+, 240 W PoE budget, Omada SDN
Dell PowerConnect 5448448× GbE + 4× SFP combo, stackable up to 12 units (proprietary stacking, single management IP)
Cisco SG300-52150× GbE, L3-lite
Netgear ProSAFE GS116E116× GbE, “Plus” web-GUI only

Cisco Catalyst, specialty and CPE

DeviceQtyNotes
Cisco Catalyst 35601L3 enterprise; not stackable (the 3750 is the stackable variant)
Cisco Catalyst 29601L2; stacking only on S/X variants (FlexStack)
Cisco ASA 55051Firewall, 8× FE
Cisco 4402 Wireless LAN Controller1802.11a/b/g era, up to 50 APs
Calix GP1101X GigaPoint ONT1ISP CPE — see The Osseo site

Conclusions the research supports

  • The cluster fabric candidates are the DC-class switches, and among them the Celestica DX010 is the only 100GbE fabric: 32× QSFP28 (Broadcom Tomahawk, 3.2 Tbps), breakout to 4×25G / 2×50G / 4×10G per port (up to 128× 25G), SONiC on ONIE, MC-LAG pairs, VRRP plus static anycast gateway, BGP/OSPF/IS-IS via FRR, VXLAN EVPN, about 150–200 W typical, about 400 ns cut-through. One of the four recorded units is missing fans/PSU.
  • Dictation resolved: the “DXO10” of the 2026-11-04 build-out dictation is the DX010. Drew confirmed on 2026-11-05 that the model is the DX010 (recorded in ~/memory/2026-11-05.md as “Celestia DX010” — the inventory’s spelling is Celestica; the GitHub issue title #6071 also reads “Celestia DX010”, a spelling variant of the same device). #6071 = install 3 more DX010 units. The tension the book must state honestly: the April 2026 inventory already lists 4× DX010 owned, so “3 more” reads as installing three of the inventoried units, or expanding beyond four — the record does not say which. Physical check required (gap 4).
  • No stacking on the top fabric tier: DX010, Arista 7050QX and SX6036 have no stacking — redundancy is MC-LAG/MLAG pairs of 2, or ECMP beyond 2. Stacking exists only lower down: IBM G8264 (up to 8, QSFP+ 40G links), Dell PowerConnect 5448 (up to 12), Cisco 2960-S/X only. The inventory’s own reference section states the trade plainly: stacking = one logical switch / single management plane; MC-LAG = independent control planes coordinating LAG membership.
  • The IBM fleet is the 10/40G workhorse tier: G8264 (48× SFP+
    • 4× QSFP+, vLAG, stacking) ×3, its copper sibling G8264e ×1 (48× 10GBASE-T, about 450–550 W typical — the power-hungriest switch in the inventory), G8316 40G spines ×4. The Mellanox SX6036 is the InfiniBand/RDMA outlier (36× QSFP, FDR 56G IB or 40GbE, no MC-LAG, no stacking).
  • The Dell switches of the build-out tickets are not model-identified in any record read. #6073, #6074 and #6075 (all open) each require, per switch: rails built and racked → firmware updated (version recorded on the ticket) → hardware verified → initial config built and deployed → config stored in the code repository (the ticket establishes a lab/switches/<hostname>/ home if none exists) → physical labels (hostname, role, management address). Each ticket’s record section is where model, hostname and management address will land. The only Dell switches in the research inventory are the PowerConnect 5448 ×4 — the record nowhere states that the three build-out Dells are 5448s, and this book does not assert it. This is the single biggest switches gap (gap 3) and the first slice of #13920.
  • NIC/switch sanity check is still open: the cluster design needs the exact high-speed NIC specification on the core machines and the switch gear between them confirmed, to sanity-check LINSTOR/DRBD replication traffic — #1097 (open), under network-fabric epic #1084. The register’s dictated “at least 200 Gb ports” remains unverified — with a 100GbE-max fabric of record, that figure cannot be taken at face value.
  • Documentation-survival caveat (from the inventory’s References note): many of these devices are end-of-life or discontinued; Cisco removes documentation for retired products and IBM/Lenovo/Mellanox legacy documentation is partially gone. The inventory links archived copies and community sources where the manufacturer’s are dead, and lists dead or unresolvable links per device rather than hiding them.

What the gap analysis says is still missing (2026-04-03)

All 21 devices are enriched; the remaining gaps are attribute-level, per doc/inventory/gap-analysis.md:

  • Systemic (nearly every applicable device): protocol-based VLAN (C4), trunk negotiation (C7), quantified STP convergence time (C9), LAG failover time (D7), min-links (D8), CoPP/CPU rate-limiting (J7), port security (J8), DNS client (K7). High priority because they are one-liners for most devices: C7, C9, D7, D8, K7.
  • Heaviest per-device gaps: the Mellanox SX6036 (whole attribute families missing — C, D, F, G, J, K sections), the Cisco 1841 and 881 routers, and the IBM G8264/G8264e/G8316 routing, security and monitoring rows (G5, G7–G9, J3–J5).
  • Router C-section gaps and GS116E/GP1101X gaps are assessed as expected or negligible for their device classes.

The owning issue and the physical-check list

The owning issue for completing the inventory and then integrating and racking is #13920 (open, filed under #13905 because the census found the seed had no owning issue). The per-switch physical tickets are #6073–#6075, the fabric epic is #1084, and the interconnect that depends on them is #6077 (open, labelled blocked).

One dating fact the book keeps visible: the switches research is dated 2026-04-02/03 — the newest fact in it is seven months older than the rest of the programme. Firmware versions, device survival, and the DX010’s missing fans/PSU may have changed. A physical check list is #13920’s stated output, and until it exists, this chapter is a research record, not a site survey.

GitHub Actions

GitHub Actions is the estate’s CI system of record: in use, and proven — it is where the code repository’s checks, deploys and housekeeping actually run. This chapter records the estate as counted by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959, under the programme tracker #13905). How Actions combines with Nix is covered in CI/CD: Nix and GitHub Actions; this chapter is the Actions estate itself.

What exists today

  • 92 workflow files sit under .github/workflows/ in the code repository (counted 2026-11-23). The families: per-project suites (id, mcpx, pm, fleet, atlas), worker publish/promote/deploy workflows, docs-to-Pages workflows, and housekeeping — branch-cleanup, stale-run-sweeper, worktree janitor and reaper, Bitwarden freshness, flake-inputs update, and a daily flake sync.
  • Runners are GitHub-hosted. Counted from runs-on: lines: 131 uses of ubuntu-latest, 14 of ubuntu-24.04, 2 of ubuntu-24.04-arm, plus matrix and conditional forms. No self-hosted runner label appears anywhere in this repository’s workflows — the census searched for it and found none.
  • Blacksmith is an option, not the default. The reusable workflow .github/workflows/org-run.yml takes a runner input choosing GitHub-hosted ubuntu-24.04 or blacksmith-4vcpu-ubuntu-2404; its header records the setup job defaulting to Blacksmith so matrix expansion happens off the GitHub-hosted queue, with Blacksmith scoped to organisation surfaces. The fleet placement design widens this into a spill cascade — GitHub Actions, then Blacksmith, then Codespaces, then queued, never dropped — recorded in the fleet design register (pm-stack/design-register-2026-11-11.md). The record also keeps a caution: a closed fork issue recorded Blacksmith jobs that never picked up, with the queue growing unbounded.
  • Actions-exec — live, short-lived exec sessions inside Actions runners, handed off by a coordinator — is #13774, open and in flight, with slices landing on 2026-11-23. The surface exists in the fleet book and in the queue broker; its design companion is the compile coordinator, #13765.
  • The wider estate (workflow counts from the laptop’s clones, 2026-11-23; clones other than the primary may lag main): dezren39/fleet 11, developing-today/opencode 30, openchamber 34 in the upstream clone and 22 in the developing-today clone, dezren39/nix 10, developing-today/nix-cache 2, cairn 2, zettel 4. The fleet repository’s own workflows are the sync and placement machinery’s CI; fork-sync pushes fleet main to roughly 102 forks.
  • Policy (.github/ci-policy.md, owner rulings 2026-11-13 and 2026-11-16): no pull-request or push CI triggers and no required checks; CI runs nightly on main (07:17 UTC by default) and on manual dispatch; deploys keep their push triggers. Merges never wait for CI — main-branch CI is post-merge evidence.

What the record plans

Actions-exec (#13774) and the compile coordinator (#13765) are the active build-out: ephemeral runner sessions as a fleet placement surface, covered further in Build-server alternatives and Automation and automated scaling. The spill cascade is the standing placement direction of record.

Gaps

  • No self-hosted runner fleet exists; the “self-hosted” leg of the estate is Blacksmith and Actions-exec instead.
  • The #13765 and #13774 designs live only in issue bodies — an audit record of 2026-11-24 flags that neither has a doc/ record. That gap is recorded on the issues themselves.

Sources

Platform census §§1 and 20 and supplements S1 and S11, 2026-11-23, landed as PR #13959.

Nix and the NixOS flake

Everything in this estate is built on one Nix flake: the code repository’s flake.nix and the roughly 1,940-line lib/default.nix beneath it. Status: in use — it is the repo’s foundation, the source of its packages, its NixOS hosts, its dev shells and its deploys. This chapter records how the flake is put together, as read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • The root flake is a hand-rolled composition, not a literal flake-parts call. The header comment naming flake-parts.lib.mkFlake is aspirational. The actual shape is outputs = inputs: let lib = import ./lib inputs; in lib.merge [ … ] — a fold over builder functions: make-clan, make-root-apps, make-id, make-mcpx-overlay, make-mcpx-modules, make-pm-stack, make-archer-slack, make-laptop-backups-checks, make-fleet, make-deploy and make-vim. flake-parts is a real input and is used by sub-flakes and by inputs, but the root composition is lib/default.nix’s own merge, a deep recursive-update fold over merged nixpkgs and home-manager libraries.
  • Hosts and configurations. flake.nix exposes hosts = import ./nixos/hosts inputs, a VM guest registry (vmGuests = import ./nixos/vm-guests — see Minimal VMs and KubeVirt), and nixosConfigurations built from the host configurations, the VM configurations and the unattended-installer configurations.
  • One nixpkgs pin for the fleet. nixpkgs follows nixpkgs-unstable, which since 2026-11-02 follows the fleet-wide pin in dezren39/fleet (fleet.url = "github:dezren39/fleet"; nixpkgs-unstable.follows = "fleet/nixpkgs"), so the code, opencode and openchamber repositories build against the same nixpkgs revision and share one store closure. There are no master or stable-channel inputs — a directive of 2026-10-31 (#3327) records why: master revisions skip Hydra and force source builds.
  • The flake’s own Nix configuration (nixConfig in flake.nix): substituters are cache.nixos.org, yazi.cachix.org and hyprland.cachix.org, with several more cachix caches present but commented out; a long experimental-features list (flakes, nix-command, ca-derivations, dynamic-derivations, fetch-closure, recursive-nix, pipe-operators, and more); accept-flake-config = true; trusted users root and @wheel. On the NixOS side, nixos/nix/settings/default.nix simply applies the flake’s nixConfig as nix.settings. Which caches those substituters are — and the proven cache this list omits — is the subject of The Nix cache worker and its alternatives.
  • The standing ecosystem survey is doc/nix-ecosystem-scan-2026-08.md: release cadence, nixpkgs structure, module changes, CLI and store, cache alternatives, and clan. It is a watch-brief, not a decision record — see Nix apps V2 and next-gen tooling.

What the record plans

The builder-function composition is the settled pattern; the record plans no replacement for it. Sub-flakes (id, atlas-search) carry their own outputs beside the root composition.

Gaps

  • The root flake’s composition style is undocumented as a pattern: no “how this flake is put together” document was found by the census. This chapter is the first prose record of it.
  • Several inputs carry “TODO: use this?” or “way out of date” comments — clan-core among them; see clan.lol and machine fleets.

Sources

Platform census §2 and supplements S2–S3, 2026-11-23, landed as PR #13959.

NixOS flake apps

The flake’s app surface — the commands a user runs as nix run .#<recipe-name> — is mostly not written by hand. It is generated from the repository’s justfile. Status: in use. This chapter records the mechanism as read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • Root apps are generated from the justfile. lib.make-root-apps in lib/default.nix reads just-recipes.json (produced by just just-recipes), filters out private recipes and the default recipe, and emits one flake app per public recipe. The comment of record states the whole contract: to add a new Nix app, add a recipe to the root justfile, run just lockfiles, and the app appears automatically as nix run .#<recipe-name>. Each app is a writeShellScriptBin wrapper that executes just <name>, with shared metadata (homepage, MIT/ASL20 licences).
  • Hand-written apps exist alongside the generated set — further apps blocks in lib/default.nix serve the project outputs (mcpx, deploy tooling, and the per-system maps at the make-id and make-deploy layers), and sub-flakes carry their own apps (pkgs/id/flake.nix).
  • Deploy apps are the Cloudflare Worker deploy standard. The chain just deploy-<name> → flake app → deploy.mjs was the recorded standard for exactly three workers as of the 2026-11-04 deployment-architecture record (pkarr, developing-today-backup, id-mail). How that standard has since spread through workflows is covered in CI/CD: Nix and GitHub Actions.

What the record plans

No change to the generation mechanism is recorded. New apps arrive by adding justfile recipes, per the contract above; the next generation of Nix app tooling is a research question, not a plan — see Nix apps V2 and next-gen tooling.

Gaps

  • No catalogue document lists the current app surface. The generated-from-justfile mechanism is discoverable only from the comment in lib/default.nix; this chapter is its first prose record outside the source.

Sources

Platform census §3 and supplements S3, 2026-11-23, landed as PR #13959.

The laptop NixOS config

The laptop is this estate’s daily driver and its build and deploy host, and its NixOS configuration lives in the same flake as everything else. Status: proven and in use — it is the machine this book’s work runs on. This chapter records the host as read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959). The physical machine is in part 1’s Hardware register.

What exists today

  • Host amd in nixos/hosts/default.nix: a Framework 13-inch with 7040-series AMD hardware, disks nvme0n1 (4 TB) plus a tmpfs root, and users user, backup, muse, dot-ssh and root. Six wireless profiles are defined.
  • Profiles. Alongside the desktop profile, the host enables service profiles: flatpak, id-mail, pm-stack, lab-tunnel, sandbox-link-tunnel, pm-apps, power-guard, openai-cred-watchdog, opencode-go-seating-guard, opencode-watchdog, keyring-auto-unlock, signal-audit, archer-slack, networking/dhcp-nat, and an nvidia-egpu specialisation. The two tunnel profiles are the lab’s pipes to the outside — see The pipes into Cloudflare and externally.
  • Two profiles are commented out, deliberately: microvm and server. The commented-out microvm profile is why the one defined VM guest sits unused — see Minimal VMs and KubeVirt. These are non-states the record keeps visible, not omissions.
  • Per-host fragments sit beside the host definition: amd-rustdesk.nix, amd-sunshine.nix, amd-krdp.nix, amd-ipv4-preference.nix (the IPv6 workaround), amd-openclaw-secrets.nix, and amd-agent-rebuild.nix (agent-triggered rebuilds of the amd config from main).
  • The rest of the host tree: a second host, nixos (Framework 13, 12th-generation Intel, 2 TB NVMe), and a PC Engines APU hardware configuration exist in the same tree.
  • Machine inventory of record: doc/hardware/machines/amd.md, collected 2026-10-29 — Ryzen 7 7840U, roughly 128 GB RAM, Samsung 990 PRO 4 TB.
  • Standing mechanics: deploys and rebuilds run from the primary clone on the laptop; the orchestration sandbox never builds. CI runs in GitHub Actions — see CI/CD: Nix and GitHub Actions.

What the record plans

No host redesign is recorded. The disabled microvm and server profiles are the named future switches: enabling microvm is the step that would activate the defined VM guest.

Gaps

None material for a book chapter — the census found this one of the best-documented areas of the platform. The chapter notes the commented-out profiles as deliberate non-states, per the census.

Sources

Platform census §4 and supplements S10, 2026-11-23, landed as PR #13959.

CI/CD: Nix and GitHub Actions

Two systems meet in this estate’s delivery pipeline: Nix builds the artefacts, and GitHub Actions runs the builds. Status: in use and proven. This chapter records the pinned pattern that joins them, what CI does with Nix, and both CD legs — as counted by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959). The Actions estate itself is in GitHub Actions; the flake is in Nix and the NixOS flake.

Actions using Nix — the house pattern

Actions-using-Nix is a pinned, repeated pattern (uses counted 2026-11-23):

  • DeterminateSystems/nix-installer-action at a pinned commit (v23) — 32 uses.
  • DeterminateSystems/magic-nix-cache-action at a pinned commit (v15) — 24 uses, typically configured use-flakehub: false, use-gha-cache: true (the container-images.yml instance is the type example) and often continue-on-error: true.
  • actions/checkout@v7 — 124 uses. Language setup actions (node, go, bun, python, deno) fill out the rest.

The rationale is recorded in the workflows themselves: id-check.yml’s comments give the magic-nix-cache reason as “so unchanged derivations are not rebuilt from cold”, and record Determinate Nix quirks the estate has hit (a shallow-repo revCount refusal; a lazy-trees note, #705). The cache leg of this pattern is the GitHub Actions cache — not the estate’s own cache worker; that tension is The Nix cache worker and its alternatives.

What CI does with Nix

  • nix-ci.yml — a nightly full nix flake check plus an advisory host-eval, explicitly not a merge gate (per .github/ci-policy.md and #3039).
  • deploy-flake-checks.yml and flake-inputs-update.yml.
  • mcpx-nixbuild.yml.
  • container-images.yml — nix build of the container packages, publishing to GHCR on push to main; see Containers and Docker images.
  • id-check.yml — the project check suite on the pattern above.

The governing policy is nightly-on-main: CI is post-merge evidence, and merges never wait for it.

CD from Nix

lib.make-deploy builds pkgs/deploy — a deploy-targets registry with schema validation (the validation fixtures in lib/default.nix exist to reject the exact malformed-registry form of #6383) — targeting laptop and systemd services. pkgs/deploy is the flake-native deploy leg.

CD to Cloudflare

The 2026-11-04 deployment-architecture record is the baseline audit, and this book presents it as a baseline, not as current state. It found a split estate: the good pattern (just deploy-<name> → flake app → deploy.mjs, the 2026-10-31 standard) covered exactly three workers (pkarr, developing-today-backup, id-mail); other workers used raw wrangler deploy or a manual REST PUT; no GitHub Action deployed any Worker at that date; and id-mail had no rollback path.

The current tree shows the follow-through in progress: many worker publish, promote and deploy workflows now exist — desktop-commander, id-mail, mcpx, message-bridge, pkarr, pm-console-edge, queue-transport-alert, voice-line. The two records are not the same statement, and the book does not merge them.

Releases

goreleaser.yml (goreleaser-action v7) and mcpx-release.yml cover the binary-release leg; docs sites deploy via actions/deploy-pages@v5.

Gaps

  • The Worker rollback and coverage gaps from the 2026-11-04 record have no follow-up re-audit in any later record the census found. Whether every worker now follows the standard is not established.

Sources

Platform census §5 and supplements S1 and S8, 2026-11-23, landed as PR #13959.

Making Nix packages and apps

The estate’s packages live in pkgs/ — 90 entries counted by the platform census of 2026-11-23, including default.nix and shell.nix — and the patterns they follow are consistent enough to state, even though no single how-to document states them. Status: in use. Census source: doc/2026-11-24T01-20-46Z_research_code-book-census-platform/ (PR #13959). How packages become runnable apps is NixOS flake apps; how they become images is Containers and Docker images.

What exists today — the patterns of record

  • Composition by callPackage. lib/default.nix wires packages into the flake with callPackage — the type example is mcpx: pkgs.callPackage ../pkgs/mcpx/package.nix { }, with variants beside it (a container build calls the same package with wrapWithRuntimes = false, doCheck = false).
  • Per-package folders holding package.nix or default.nix. Some packages carry their own sub-flake (pkgs/id/flake.nix, pkgs/atlas-search/flake.nix).
  • buildNpmPackage for npm-distributed CLIs, with vendored lockfiles. pkgs/cf and pkgs/wrangler mirror each other, including the update ritual documented in the package comments: fix the hash from the build failure. pkgs/cf matters beyond packaging — it is the Cloudflare CLI direction of record in DNS management.
  • Rust via the crane flake input, with dependency-layer splitting (#8392) and the id rust overlay; Go via the standard builders; shell tools via writeShellScriptBin — the same builder the generated flake apps use.
  • Test and guard packages are first-class citizens of the tree: sigterm-witness, lane-overlap-check, opencode-config-normalize, and their kin sit in pkgs/ beside the services.
  • Whole systems are package families here: fleet itself (pkgs/fleet — a Rust workspace plus its book), the brokers’ clients, and the PM stack.

What the record plans

No packaging rework is recorded. New packages follow the neighbouring package’s pattern; new apps follow the justfile contract in NixOS flake apps.

Gaps

  • No single “how to add a package” document was found by the census; the patterns are consistent but learned from neighbours. This chapter is the first collected statement of them.
  • The census flagged one unread file honestly rather than asserting over it: the exact role of pkgs/default.nix against the lib composition was not fully read.

Sources

Platform census §6 and supplements S9, 2026-11-23, landed as PR #13959.

Containers and Docker images

This estate builds its containers the Nix way: images assembled purely from Nix store paths, with no Dockerfile and no upstream base image. Status: proven and in use. This chapter joins the two halves of the record — the from-scratch Nix build pattern, and the OCI/Docker image estate it publishes into — as read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959). Where the published images live is Artifact and binary repositories.

The from-scratch pattern

  • Mechanism: pkgs.dockerTools.buildLayeredImage throughout. An image is its store-path contents and its config — that is the from-scratch pattern here, by construction.
  • Generic runtimes (#6076, closed): pkgs/generic-containers/ holds runtime-base.nix (bash, coreutils, cacert and tzdata only; user 1000:1000; writable /work and /tmp; the CA bundle wired through SSL_CERT_FILE), js-runtime.nix and python-runtime.nix. The header states the design: the common denominator of the service images, deliberately carrying no service code.
  • Service images: pkgs/mcpx/container-image.nix, pkgs/identity/container-image.nix plus its provider-image.nix, pkgs/lab-ops-hub/container-image.nix, and the mcpx end-to-end test image built inline in lib/default.nix.
  • The programme rule behind it (Drew, 2026-11-04): Nix-built generic containers for ID and fleet, no hand-maintained Dockerfiles. Audit trail: #5765 (deployment epic) and #5771 (containers Nix-build audit).
  • Cloudflare-side containers: pkgs/cf-container-hello (a Cloudflare Containers hello project with its own workflow) and the lab-ops-hub container, deployed with its worker, are the edge-container leg.

The pipeline and the image estate

.github/workflows/container-images.yml builds all of the above on the Determinate installer plus magic-nix-cache pattern (see CI/CD: Nix and GitHub Actions) and, on push to main only, publishes the generic images to GHCR with v1 and commit-SHA tags. The ordering and concurrency rationale is recorded in the workflow itself, from PR #8369 review. Policy home: doc/fleet/generic-containers.md §3.

The published estate of record: ghcr.io/developing-today/code/mcpx (0.1.0 and latest), the generic runtime images (generic-runtime, generic-js-runtime, generic-python-runtime), and ghcr.io/developing-today/fleet-build:full, the CI runner image.

What the record plans

No change to the build pattern is recorded. The open registry question — when, if ever, to self-host — is a decision with named triggers, kept open in Artifact and binary repositories.

Gaps

None for the build story. Runtime and rollout proof for the generic images rests on #6076’s closed record; the census noted it did not re-verify that record’s proof artefacts.

Sources

Platform census §§9 and 17 and supplements S6, 2026-11-23, landed as PR #13959.

DNS management

DNS is one subject with two live systems, and this is the book’s one DNS chapter: the registrar layer that owns the domains, and the Cloudflare layer that serves the estate’s names. Status: in use, split across two systems, with classification and backup work planned. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959). This chapter is also a member of the between-lab-and-fleet trio; its siblings are The pipes into Cloudflare and externally and Automation and automated scaling.

The registrar layer — Porkbun, Terraform, Nix

  • Domains are registered at Porkbun and their records are managed from infra/dns/ — the estate’s one Terraform corner, told in full in The role of Terraform. The short form: dns_config.yaml is generated from Nix (infra/dns/dns_config/default.nix), and Terraform applies it as porkbun_dns_record resources.
  • infra/dns/domains.txt lists 39 domains — security.cab, developing.today, 01b.us, lair.cloud, the 1110x and 0x111 families, and the rest of the register.
  • A discrepancy the census flagged and did not reconcile: the standing domain register’s first pass (completed 2026-10-25) is described as covering 40 domains. The register description and domains.txt disagree by one; one of them is stale. This book carries the flag, not a guess.
  • The recurring machinery — DNS backup job, renewal tracking and a dashboard view of the domain register — is #902, open. (Its renewal element touches cost tracking; costs belong to the Project Management book and are cited here for existence only.)

The Cloudflare layer — the service zone

  • security.cab is the working service zone. Its names of record: lab.security.cab (a CNAME to the tunnel’s cfargotunnel.com address, proxied — recorded in nixos/services/lab-tunnel/default.nix), dispatch.security.cab, pm.security.cab, mail.security.cab (plus the id-mail route names in nixos/services/id-mail/worker/config.json), and sandbox-link.security.cab. What those names front is The pipes into Cloudflare and externally.
  • Worker custom domains and routes are declared per project in the 28 wrangler configuration files in the tree.

Tooling direction

pkgs/cf packages Cloudflare’s cf CLI — Wrangler’s successor, in open beta since 2026-09-28, packaged at 1.0.0-beta.20 with buildNpmPackage and a vendored lockfile because cf is not in nixpkgs. The standing direction (Drew, 2026-10-20, recorded in the package) is to prefer cf for Cloudflare work; pkgs/wrangler stays for existing wrangler.jsonc projects until they migrate. Helper wrappers (pkgs/cf/wrangler-authed.py, wrangler-secret.py) bridge authentication in the meantime.

A possible future shape

Drew’s recorded thinking (2026-11-23, explicitly unformed) names Porkbun as the example resource Crossplane could earn its place managing — resources without operators or proper Kubernetes projects, managed from the infra folder. See Crossplane and alternatives. Nothing about today’s two systems changes under that thinking.

Rulings and gaps

  • Ruling of record (doc/living/turso-cloudflare-integration.md, item C6): Porkbun stays the deliberate registrar layer; per-domain classification is still owed, and the classification checkbox in that document is still open.
  • Cloudflare Access is absent as a documented system. The census searched for a dedicated Access policy or configuration record and found none — the record shows tunnels and application-level authentication instead (the dispatch gateway’s expected 401, for one). The book flags this as a gap; it does not assert Access is unused.
  • The infra/dns TODO list (alias-as-CNAME handling, multi-config refactor, per-section applies) is unowned.
  • The physical network this DNS names: part 1’s Switches and The cluster programme.
  • A fleet-side cross-link to this chapter is owed from the Project Management programme’s fleet pass (#13900); until that pass lands, this chapter is the DNS record both books point back to.

Sources

Platform census §§11 and 13 and supplements S7, 2026-11-23, landed as PR #13959.

The Nix cache worker and its alternatives

This chapter carries the platform’s central tension, stated plainly: the estate has built and proven its own Nix binary cache — and does not use it by default. The worker is proven in its own repository; it is not among this flake’s substituters. Both halves are load-bearing. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

The worker — what exists

The cache lives in its own repository, developing-today/nix-cache (two workflows of its own). Its architecture, from the memory topic of 2026-10-05 and the design-register entry C1 (pm-stack/design-register-2026-11-11.md):

  • A Cloudflare Worker as the front door.
  • An R2 bucket, nix-cache-nars, holding the NAR bytes.
  • A KV namespace, INDEX, as the hot index.
  • A D1 database, nix-cache-db.
  • A Queue, nix-cache-indexing, feeding indexing.
  • A daily cron orphan sweep.
  • Deployed on workers.dev. Uploads go through a secret path prefix, because nix copy --to cannot send custom headers. The signing keypair is named nix-cache-1.
  • Deliberately no Durable Objects — the rationale in its README: cache PUTs are atomic and idempotent, and the queue gives verified, retried indexing.

The proof of record

A content-addressed demo derivation was built, signed, pushed, deleted locally, and then substituted back from the cache alone in 1.8 seconds, against a 93-second build, with only this substituter and its key trusted. Follow-on work shipped and was live-verified on 2026-10-07: a zstd push path (a custom script — nix copy hardcodes xz) and presigned R2 upload URLs for all objects, bypassing the 100 MB Worker body limit. A benchmark programme against Cachix, Attic and Garnix exists in that repository (BENCHMARK.md); its figures belong to that repo and the Project Management book, and are not reproduced here.

What the estate actually uses today

  • This flake’s substituters are cache.nixos.org plus the yazi and hyprland cachix caches — see Nix and the NixOS flake. The nix-cache worker is not among them.
  • CI uses magic-nix-cache backed by the GitHub Actions cache — see CI/CD: Nix and GitHub Actions.

Alternatives and successors — researched, undecided

doc/nix-ecosystem-scan-2026-08.md §5 is the standing survey: Lix’s documentation steers away from the perl nix-serve toward attic, harmonia, and S3 plus garage; a cache shootout (April 2026) benchmarked harmonia, nix-serve and nix-serve-ng, ncps (a proxy cache), attic (sqlite/S3, zstd chunks), the snix nar-bridge, and plain nginx/S3. Determinate Systems maintains an attic fork; the original attic project moves slowly. The scan’s action item: a self-hosted cache of attic (or its Determinate fork) plus S3 is the current best-practice stack, and n2p over iroh is a zero-config LAN/WAN store-sync option worth attention. A dezren39/nix-serve-ng fork exists in the repo universe.

One recorded dead end: the Attic client comparison died on a build problem — the atticd server built and ran, but the Attic client links Nix C++ libraries unavailable for the estate’s Nix 2.35.2 (doc/platform/toolchains/rust.md, 2026-10-05).

Gaps and the open decision

  • No retention or LRU garbage collection exists — the cron sweeps orphans only (filed as developing-today/nix-cache#7).
  • What Drew wants to cache for real was never decided, per the design register.
  • No successor or migration decision is recorded. Attic-class self-hosting versus the Cloudflare worker versus the status quo is an open choice, and this book presents it as open.

Sources

Platform census §14 and supplements S8, 2026-11-23, landed as PR #13959.

The pipes into Cloudflare and externally

How does anything outside the house reach the lab — and how does the lab reach out? This chapter collects the pipes: Cloudflare Tunnels inbound, the Tailscale mesh, and the estate’s other recorded transports. Status: proven and in use. It is a member of the between-lab-and-fleet trio, with DNS management — the names these pipes are reached by — and Automation and automated scaling. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

Cloudflare Tunnels — the inbound pipes

  • lab.security.cab — the lab’s first tunnel, live since 2026-11-06 (#6455, closed). Its connector runs on the laptop (amd): a NixOS module at nixos/services/lab-tunnel/, token-file based with the token never in the Nix store (#8933), a watchdog and an edge status service on localhost:8790, and the DNS CNAME recorded in the module. Part 1 tells the same tunnel from the cluster side in The cluster programme — the one live network artefact of the lab programme, running on the laptop rather than on any cluster machine.
  • sandbox-link.security.cab — #10356: the sandbox-to-laptop-agent control path rides this tunnel as its primary transport, with Tailscale as fallback (the host configuration’s comment of record; see The laptop NixOS config).
  • A reusable module exists for the generic case: nixos/services/cloudflared/, holding tunnel credentials in sops. Its header documents the one-time cloudflared tunnel login and tunnel-create ceremony honestly, as a manual step.
  • Service doors on the zone: dispatch.security.cab (the PM dispatch gateway that Actions workflows post to — an outside-probe workflow, dispatch-health-probe.yml, watches its public path and files an issue on failure), pm.security.cab, and mail.security.cab.

Tailscale — the mesh pipe

nixos/tailscale-autoconnect/ wires the laptop onto the tailnet (sops-held auth key, login.tailscale.com, split DNS through systemd-resolved — after a recorded dhcpcd/openresolv SERVFAIL incident). The fleet session proxy rides the tailnet to the laptop: this is the laptop-agent route every agent in the estate uses to reach the machine.

Other meshes in the record

  • The clan zerotier instance — clan’s controller and peer on its one defined machine; see clan.lol and machine fleets.
  • Clan’s researched transport ladder: p2p-ssh over iroh, then internet, wireguard, zerotier, mycelium, yggdrasil, tor.
  • iroh is the peer-to-peer transport of the ID and fleet stack (ecosystem scan §7), including n2p — nix-copy over iroh, named in The Nix cache worker and its alternatives.

The egress direction

Design #5030 (via the lab census): tunnel or shunt bulk traffic to cheap-egress services — R2’s zero-egress property among them — and cross the home link only with what must. Enforcement (#8408) is open. The dual-exposure direction (Tailscale Serve paired with a private Cloudflare Tunnel, item C9) is drafted, not ratified (doc/living/lab-integration.md).

Gaps

  • The C9 dual-exposure draft awaits ratification (#8873).
  • Egress enforcement is unbuilt.
  • The pipes are documented per service, not in one network map; nix-topology is an unused flake input that nominally addresses exactly that.

Sources

Platform census §19 and supplements S10, 2026-11-23, landed as PR #13959.

Dev shells as a default

Dev shells are the default way into this repository’s tooling — and the root shell lives in a surprising place. Status: in use, on a thin record; this chapter is short because the record is. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • The root flake’s devShells are defined inside the make-clan output in lib/default.nix — an historical accident of composition, visible in the source. “The clan output” and “the dev environment” are the same flake branch; clan.lol and machine fleets tells the clan side.
  • The shells are generated for four systems (x86_64-linux, aarch64-linux, aarch64-darwin, x86_64-darwin) from nixpkgs-unstable plus the id rust overlay, with unfree packages allowed and the Android SDK licence accepted — the shell carries the Android SDK through nix-common.nix, shared with shell.nix so nix develop and nix-shell resolve identical versions.
  • The shell pins a pristine official Bun 1.4.5 binary instead of the nixpkgs patchelf repack, with the crash evidence recorded on #13337. clan-cli is among the shell’s shared packages.
  • Sub-flakes carry their own shells: devShells.default = pkgs.mkShell { … } in pkgs/id, pkgs/atlas-search, and the roc platform templates.

What the record plans

Nothing specific: shells arrive with the projects that need them.

Gaps

  • There is no estate-wide devshell standard document, and no per-language shell catalogue.
  • The census did not search for a direnv record, and this book asserts nothing either way about direnv.

Sources

Platform census §7 and supplements S3, 2026-11-23, landed as PR #13959.

clan.lol and machine fleets

clan.lol is the estate’s candidate tool for configuring fleets of NixOS machines. What exists today is a scaffold: clan is consumed as a flake input with exactly one toy machine defined. Status: in use as a scaffold; planned as a fleet system. No clan-managed fleet exists. This chapter is short because the record is. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • The input is stale by the repo’s own comment. clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz", annotated in flake.nix: “TODO: update! way out of date even as of 2026-03”.
  • lib.make-clan (in lib/default.nix) calls the clan library with meta name “developing-today” and machines = { user = { }; } — one machine, named user (a second, sara, is commented out). Its inventory instances: sshd (server, all tags; host certificates disabled — the repo has no shared openssh-ca vars), user-root (the users module), zerotier (this machine as controller and peer), and user-user. It exports nixosConfigurations, clanInternals and the clan config. A migration is already recorded in its comments: the instances are clanServices replacements for the clanModules imports that modules/shared.nix used to carry (clanModules was removed upstream; see #159).
  • That is the whole fleet. There is no machines/ directory in the repository — the census searched, and only lib/clan.sh and lib/clan-installer-flash.sh match the clan name outside docs. Those helper scripts cover the installer flow, and clan-cli ships in the dev shell (see Dev shells as a default — the root dev shells are defined inside this same make-clan output).

The research record

doc/nix-ecosystem-scan-2026-08.md §6 records clan’s current form: the version scheme now tracks NixOS releases (26.05 stable), the inventory instances plus roles/tags model, vars secrets generators (sops by default), the clan machines install|update|build commands, and the layered fallback transports — p2p-ssh over iroh, internet, wireguard, zerotier, mycelium, yggdrasil, tor. The scan’s relevance note: this flake already consumes clan-core, and the iroh transport pairs with the estate’s iroh findings (see The pipes into Cloudflare and externally).

Where clan would bite — and the gap

The lab machines will run Talos, not NixOS (part 1’s Talos and Cozystack), so clan’s plausible estate role is the NixOS machines — laptop-class hosts and future NixOS boxes — not the cluster. No record found states that decision explicitly. The census names the gaps plainly: the clan-core pin is stale; there are no real machine definitions; and no document explains what clan is for in this estate against the hand-rolled hosts builder of Nix and the NixOS flake.

Sources

Platform census §8 and supplements S4, 2026-11-23, landed as PR #13959.

Minimal VMs and KubeVirt

The estate has a disciplined design for Nix-built minimal VMs — and exactly one defined guest, which is not enabled. KubeVirt, the Kubernetes way of running those VMs, is researched-only, and the bridge between the two — a Nix-built guest image designed for KubeVirt — is absent as a design: the census searched for it and found none. Status: planned (registry and one guest); KubeVirt researched-only. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • The guest registry: nixos/vm-guests/default.nix — in its own header, “pure data: the flake-level record every guest must appear in before it may be defined on a host” (#5772, open).
  • The renderer decision (2026-11-12, recorded on #5772): the libvirt class renders through nixvirt (fallback: flake-generated libvirt XML checked into the guest generation, with the gap named per guest); the ephemeral/agent class renders through microvm.nix, already a flake input, with one guest under nixos/microvm/.
  • Generation discipline: a guest generation is exactly the triple of domain definition, disk image, and NixOS source revision. Data volumes attach to a generation and never live inside it, so rollback swaps the triple and leaves data untouched. Rationale: doc/2026-11-12_vm-guests-generation-discipline.md.
  • Actual guests: exactly one — prometheus (microvm class, host amd, config nixos/microvm/prometheus, qemu, 2 vCPU, 1024 MiB), recorded in the registry itself as defined-not-enabled: the microvm profile is still commented out in the laptop’s host definition (see The laptop NixOS config). The mutable carve-out list and the full-drift waiver list both start — and remain — empty.
  • The minimal-VM mechanism of record is the microvm.nix model: store-shared, one image per guest. The estate’s from-scratch container work is the neighbouring discipline — Containers and Docker images.

KubeVirt — the research record

From the CNCF census (landed in-repo 2026-11-23): KubeVirt graduated from the CNCF on 2026-11-04, and is the standard way people make VMs in Kubernetes now. Cozystack’s VM offering is KubeVirt underneath. Cozystack is the cluster’s chosen platform — settled by Drew on 2026-11-23 — so Cozystack is the given frame for this chapter: KubeVirt is treated as Cozystack’s VM layer, and the estate’s KubeVirt path arrives through the planned Cozystack cluster (part 1’s Talos and Cozystack), not through hand-written KubeVirt configuration. Chosen is not built: the cluster itself is still planned-state. The census searched doc/, nixos/, pkgs/ and infra/ for kubevirt: the hits are only the CNCF records and fleet source documents. There is no KubeVirt configuration anywhere in the estate.

Gaps

  • Enabling even the seed guest is unproven.
  • No KubeVirt guest-image design exists — the Nix-VM-to-KubeVirt bridge is unbuilt and undesigned.
  • #5772’s lifecycle proof is still owed.

Sources

Platform census §10 and supplements S5 and S12, 2026-11-23, landed as PR #13959.

The role of Terraform

Terraform’s role in this estate is small, exact, and easy to get wrong: it is in use in exactly one corner — DNS — and absent everywhere else. The natural assumption that it is simply absent is wrong, and the correction is this chapter. Status: in use (infra/dns/ only). Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959). The DNS system it serves is DNS management.

What exists today

  • Where it lives: infra/dns/ only. Its main.tf uses a local backend and two providers — cullenmcdermott/porkbun 0.3.0 and carlpett/sops 1.4.1, with credentials read from a sops file. It declares one resource type, porkbun_dns_record, driven by for_each over dns_config.yaml.
  • That YAML is generated from Nix (infra/dns/dns_config/default.nix, rendered by generate_dns_config.sh) — Terraform here is the apply tool for a Nix-declared configuration, not the source of truth.
  • State is manual and known-awkward: the encrypted state is committed (terraform.tfstate.enc), and shell wrappers provide plan, apply, apply-skip-plan, init, load, save — plus cleanup scripts (cleanup_terraform.sh, cleanup_terraform_tfstate.sh) whose existence says the state juggling is handled by hand. infra/dns/TODO records open wishes: alias-as-CNAME handling, a multi-config refactor, per-section applies.
  • The search evidence for “everywhere else”: a repo-wide search for terraform returns 44 files; after infra/dns/, they are documentation mentions, vendored agent skills, the CNCF records, and .gitignore/dependabot noise. No other .tf configuration exists, and no Terraform appears in pkgs/, lib/, nixos/, or any workflow.

Context the record gives

The cluster programme’s hard rule is “no HashiCorp anything” (part 1’s cluster chapters). Terraform’s survival is as a registrar-DNS tool that predates and coexists with that rule — not as platform infrastructure-as-code. The CNCF record covers the successors as research: OpenTofu (Linux Foundation; CNCF Sandbox, April 2025) and Atlantis (CNCF Sandbox) — and Crossplane and alternatives notes Crossplane also ships a Terraform provider.

A sketched future role

Drew’s recorded thinking (2026-11-23, unformed — see Crossplane and alternatives) gives this Terraform corner a possible second job: in the chain Kubernetes → Crossplane → Terraform, Terraform applies the versioned declaration, and rollback is pushing the old version number back. That is a sketch, not a plan; the corner’s actual role today is the DNS one above.

Gaps

  • No record proposes migrating infra/dns to OpenTofu. That is a decision gap, currently unowned.

Sources

Platform census §11 and supplements S7, 2026-11-23, landed as PR #13959.

Crossplane and alternatives

Crossplane — Kubernetes objects for external infrastructure — has been fully censused for this estate, given a verdict, and not adopted. Status: researched, with a verdict recorded; none adopted. This chapter is short because one strong census file is the whole record. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What the record says

  • Primary source: the CNCF investigation’s platform-and-gitops.md §3, landed in-repo at doc/2026-11-23T22-33-41Z_research_cncf-landscape/.
  • Crossplane itself: CNCF Graduated on 2025-11-06 — the census corrects the older “incubating” assumption. It manages external infrastructure through Providers and Compositions/XRDs; version 2.0 (August 2025) made resources namespaced and added Operations.
  • The verdict for this estate: mostly no — not now. The reasons of record: this estate’s infrastructure is NixOS and Talos declared in Nix and Git, not cloud APIs, so providers have almost no surface to act on; Cozystack already is a Kubernetes-native provisioning layer for databases, buckets, clusters and VMs; and fleet already owns dispatch and placement.
  • The named revisit trigger: the day the estate needs to provision and continuously reconcile external resources — cloud buckets, DNS, GitHub organisation objects, SaaS tenants — through the same GitOps flow as cluster state. That trigger points straight at DNS management.

Drew’s thinking — recorded 2026-11-23, explicitly unformed

The census verdict above is the researched record. Separately, and not as a decision, Drew recorded his current thinking on where Crossplane could still earn its place. This section is that thinking, with its open edges kept open:

  • The niche: resources that don’t have operators or proper Kubernetes projects. Where no operator exists, a Crossplane provider may be the only Kubernetes-native way to manage the resource. His example: managing Porkbun — the DNS registrar — from the infra folder, the same infra/dns/ corner that The role of Terraform and DNS management describe.
  • Alternative shape (a): Nix handling APIs directly. Nix packages and built-in Nix apps that call the APIs themselves, as an alternative to Crossplane providers — the estate already generates its app surface from the flake (see NixOS flake apps), so an API-managing app is a shape the estate knows how to build.
  • Alternative shape (b): the Cloudflare provider under a versions/uploads rule. Crossplane’s Cloudflare provider used under a rule that all objects are Cloudflare versions/uploads, with Cloudflare’s own native tooling doing the management — Crossplane as the versioned declaration layer, not the operator.
  • The versioned-infra chain he sketched: Kubernetes → Crossplane → Terraform applies the version; rollback is pushing the old version number back. Versioned declarations in the cluster, applied through the Terraform corner that already exists, reversed by re-pushing a number rather than by hand-editing state.

None of this is decided, scheduled, or ticketed in the record this book was written from. It is recorded here because the programme’s thinking belongs in the book — labelled as thinking.

The neighbouring field, as censused

The same census file covers the GitOps engines (ArgoCD and Flux — FluxCD is already the planned cluster GitOps, per part 1), the Terraform successors OpenTofu and Atlantis (see The role of Terraform), and the platform frameworks (Cozystack first among them). Its estate lens is explicit that several famous projects compete with things this estate already owns — fleet above all.

Gaps

  • The revisit trigger — external-resource reconciliation, with DNS named — has no owner and no tracking issue that the census found. It connects directly to the open DNS classification work (#902) in DNS management.

Sources

Platform census §12 and supplements S7 and S12, 2026-11-23, landed as PR #13959.

Nix apps V2 and next-gen tooling

An honest opening: “Nix apps V2” as a named programme is absent. No document or issue the census found uses that name; the flake-apps mechanism of record is the justfile generation in NixOS flake apps. What does exist is the tooling-generation question — which Nix, and which surrounding tools, come next — and its record is one standing scan. Status: researched-only; no adoption decision. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

doc/nix-ecosystem-scan-2026-08.md §§4–5 is the record:

  • Upstream Nix 2.30–2.34 highlights: an evaluation profiler, WAL SQLite caches, nix flake prefetch-inputs, HTTP binary-cache compression, external-builders, nix store roots-daemon, and an unprivileged daemon via nix-nswrapper. The estate’s own system runs a 2.35 pre-release line (the scan, and doc/platform/toolchains/rust.md).
  • Lix 2.95 — a fork of CppNix 2.18: no lazy trees, a CA-derivations rewrite planned, and 8–20% faster than 2.18 per its own materials, as cited by the scan.
  • Determinate Nix — the validated downstream. The estate already depends on Determinate’s installer and cache action in CI (see CI/CD: Nix and GitHub Actions), while the determinate flake input in flake.nix sits commented out.
  • snix/Tvix — the Rust reimplementation lineage, present in the cache benchmarks through its nar-bridge (see The Nix cache worker and its alternatives).
  • Also in the input graph, each marked “TODO: use this?”: omnix, nix-output-monitor (in use), nix-topology, and nix-search.

What the record plans

Nothing adopted. The scan is a watch-brief: it tracks the field so a decision can be made from current facts when one is needed.

Gaps

  • No evaluation or adoption record exists for Lix or Determinate Nix as the system Nix. The book presents this section as a research summary with an open decision, because that is what the record supports.

Sources

Platform census §15 and supplements S2, 2026-11-23, landed as PR #13959.

Build-server alternatives

Asked “what is this estate’s build server?”, the honest answer is that the estate does not run one — its fleet placement system over GitHub Actions and Blacksmith is the build-server answer. The named alternatives are mostly absences, each searched for. Status: in use (placement); researched (the rest). Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • Fleet placement dispatches builds with a runner choice (--runner auto|github|blacksmith, a --push-nix-cache option, and container/surface options — the fleet book and the design register carry the surface). Jobs spill across surfaces in the cascade of record: GitHub Actions, then Blacksmith, then Codespaces, then queued, never dropped (see GitHub Actions).
  • Actions-exec sessions (#13774) and the compile coordinator design (#13765) are the ephemeral-capacity leg.
  • The laptop itself is a build host, with the ghcr.io/developing-today/fleet-build:full CI runner image and a cargo-target-broker for shared Rust build caches. The in-cluster build ambition is planned, waiting on the cluster (lab census, 2026-11-23).

The alternatives, as the record leaves them

  • Garnix: never used as a CI or build service. A repo-wide search finds only template-repository links in TODO and archive lists, and its name in the nix-cache benchmark comparison. Absent as a system.
  • Hercules CI: hercules-ci-effects is a flake input (with flake-parts following it), but no Hercules CI service usage record was found. In use as a library input only, as far as the record shows.
  • Hydra: a lib/hydra.nix file exists in the repository; no record of a running Hydra was found. File present, service absent per the record searched — the census flags this one as lightly searched.
  • Cachix appears as the upstream project caches the flake consumes, and as a benchmark comparator for the cache worker — not as the estate’s own CI cache. That role belongs to magic-nix-cache over the GitHub Actions cache today (see The Nix cache worker and its alternatives).

Gaps

No build-server procurement or migration is recorded or planned; the placement system is the settled answer, and its scaling story is Automation and automated scaling.

Sources

Platform census §16 and supplements S13, 2026-11-23, landed as PR #13959.

Artifact and binary repositories

The Artifactory question — where do built artefacts live, and should the estate run a repository manager of its own — has a crisp current answer and a deliberately open future one. Status: in use (GHCR for containers; the Nix cache plane for Nix artefacts); the self-host decision is researched, with a named trigger, left open where the record leaves it. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

What exists today

  • Containers live on GHCR. The registry decision of record (doc/fleet/generic-containers.md §3) is GHCR — the registry this repository already uses. The published estate: ghcr.io/developing-today/code/mcpx, the generic runtime images, and ghcr.io/developing-today/fleet-build:full (see Containers and Docker images). The CNCF registries census records the structural point: there is no cost pressure on this choice today. (Pricing detail belongs to the Project Management book.)
  • Nix artefacts live in the binary-cache plane — the proven-but-unwired cache worker or a future attic-class self-host; there is no separate artifact repository for Nix outputs, by design of the ecosystem. See The Nix cache worker and its alternatives.
  • Everything else — npm, cargo, generic file artefacts — flows from upstream registries and the repository itself. No universal artifact repository is in use or recorded, and the record does not treat that as a problem.

The researched verdict

From the CNCF registries census (landed in-repo, registries-and-builds.md): “GHCR is the right registry today, and the trigger for self-hosting is friction, not price.” The self-host triggers of record: air-gapped or LAN-local clusters, egress at scale, sovereignty, and pull-through caching.

  • Zot (CNCF Sandbox; a single Go binary, OCI-native, no database — the storage directory is the registry) is the named first self-host step: the registry to stand up the day GHCR friction appears, including as a LAN pull-through mirror.
  • Harbor (CNCF Graduated) is the governance-heavy answer the census explicitly sizes as too much platform for a one-operator estate today.
  • Dragonfly (Graduated 2025-10-28) is not a registry at all — a peer-to-peer distribution layer for later, at much larger node counts.
  • JFrog Artifactory itself: commercial, multi-format, and “not our shape” per the census.

The decision, as the record leaves it

GHCR now for containers, plus a Nix binary cache for Nix artefacts; Zot-on-LAN as the pre-decided first step when the triggers fire; Harbor and Artifactory-class systems rejected for now on fit. The Zot step and the cache-plane choice are decisions the record leaves open — queued decisions with triggers, not settled plans — and this book presents them exactly that way.

Sources

Platform census §17 and supplements S12, 2026-11-23, landed as PR #13959.

Automation and automated scaling

When does this estate grow and shrink its own capacity without a human asking? The answer differs by layer: builds already scale by dispatch, edge workers scale on their platform, servers do not scale automatically at all, and cluster autoscaling is research waiting for a cluster. Status: in use for builds and edge workers; researched/planned for servers and the cluster. This chapter is a member of the between-lab-and-fleet trio, with DNS management and The pipes into Cloudflare and externally. Read by the platform census of 2026-11-23 (landed as doc/2026-11-24T01-20-46Z_research_code-book-census-platform/, PR #13959).

Builds — in use

Fleet placement plus the queue broker scale build capacity by dispatch: jobs spill across GitHub-hosted runners, Blacksmith, Codespaces, and Actions-exec ephemeral sessions that are created, handed off, renewed and closed programmatically (see GitHub Actions and Build-server alternatives). That is automated scale-up and scale-down of build capacity, with the queue as the scaler. The laptop joins as a placement surface, and a lab-integration draft (P9) would add cluster nodes as overflow — planned and unratified (lab census §2.4).

The fleet side of this story — placement and the compile coordinator — is carried by the fleet book’s placement and compile-coordinator material (the fleet book); the Project Management programme owns those fleet sections, and this chapter is the lab-side summary that points at them.

Containers and edge — in use, by the platform

The Cloudflare Workers estate (28 wrangler projects) scales on Cloudflare’s platform. The estate’s own automation there is the deployment and promotion workflows of CI/CD: Nix and GitHub Actions — not scaling logic.

Servers — planned

NixOS hosts are rebuilt and replaced from configuration; clan’s machines install|update model is the researched shape for doing that across a fleet (see clan.lol and machine fleets), and the TALM flow gives the cluster the same shape (part 1’s Talos and Cozystack). No automated provisioning of new physical or VM servers runs today; the one defined VM guest is not even enabled (see Minimal VMs and KubeVirt).

Cluster autoscaling — researched

The CNCF runtimes census rates KEDA (CNCF Graduated; event-driven autoscaling including scale-to-zero) “the highest value-per-effort project in this file after KubeVirt” — a candidate for when a cluster exists. No HPA, KEDA or Karpenter configuration exists anywhere in the estate, because no cluster exists yet. One neighbouring design must not be conflated with this: the ID currency-autoscaling design (#5825) is application-level scaling design — a stateless front end and its scaling triggers — not infrastructure autoscaling.

Detection feeds — planned

Falco’s runtime detections are planned to feed this automation layer as their consumer: the tripwire’s alerts become automation inputs (see Security: Falco runtime detection). No wiring exists; this is planned only.

Gaps

  • No written automation and scaling strategy ties these layers together; this trio chapter is that missing synthesis, written from the records that do exist.
  • Cluster scaling is entirely downstream of the cluster existing.

Sources

Platform census §18 and supplements S12, 2026-11-23, landed as PR #13959.

Object storage: RustFS and SeaweedFS

The cluster needs an S3-compatible object store — for CloudNativePG backups, for buckets on the HDD pools, for the cold tier. Two candidates were compared, and the verdict has landed: SeaweedFS stays as Cozystack’s S3 layer. Status: decided (2026-11-24); not deployed — there is no cluster.

The verdict rests on the dated comparison record doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/ in the code repository (PR #13990, record dated 2026-11-24), read in full for this update. Drew’s earlier lean to SeaweedFS (2026-11-23, because Cozystack ships it) is confirmed by that record’s evidence, and this chapter now states the decision rather than deferring it.

First, a distinction this book keeps plain: part 1’s Storage: LINSTOR and DRBD is block storage — replicated volumes for workloads. This chapter is object storage — S3 objects in buckets. Different layers, different tools, no overlap in the choice.

The verdict (2026-11-24)

  • SeaweedFS stays as Cozystack’s S3 layer. It is the object store Cozystack ships — its buckets are SeaweedFS underneath, and its bundled cozy-backups uses a SeaweedFS bucket — and the comparison record’s overall call for a Cozystack-shaped estate is to stay on it: it won the record’s independent head-to-head on small-object write throughput and latency and on object-count scaling, and it carries a decade of production exposure. Adopting anything else inside Cozystack would mean a second, self-managed S3 control surface with no COSI Bucket or tenant integration.
  • RustFS is a credible pilot candidate only for standalone large-object workloads outside Cozystack — the shape where the record’s evidence favours it (large-object throughput, small footprint, one binary, erasure coding at write time) — to be re-evaluated after a year of GA exposure. It is not the platform S3 layer, and per the record it is not yet to be trusted with the platform’s only copy of anything: its 2025–2026 security record (a hardcoded gRPC token CVE in pre-GA builds; an Object Lock bypass CVE) argues for the waiting period.
  • Programme home: epic #1088.

SeaweedFS operating rules (guardrails of record)

The record’s data-loss investigation is part of the verdict: SeaweedFS’s real losses concentrate in maintenance tooling, single-copy configurations and metadata-store failures — not in acknowledged writes on replicated volumes — and each carries a guardrail. Carried here in substance, as operating rules for when the cluster exists:

  • Use a SQL filer store — not LevelDB, not etcd. The record’s fsck case ran on an etcd-backed filer whose store still walks non-snapshot paths, and its metadata-corruption case was a LevelDB filer store zeroed by a power loss; the SQL filer stores carry the snapshot fix.
  • Back up the filer metadata — scheduled filer-metadata backups (weed filer.meta.backup in the record’s wording). The object data surviving while its metadata is lost is the record’s documented failure shape; the metadata is therefore a backup item in its own right.
  • Never run fsck-delete during file moves — never volume.fsck -reallyDeleteFromVolume while clients are moving files: the record’s reproduction lost moved files silently, with the loss masked until vacuum.
  • No scripted -force maintenance purges — no automated maintenance suite running -force delete/balance/rebuild commands unattended; the record’s disputed total-loss report had exactly that ingredient.
  • Replication is never left at 000 for data that matters — a single-copy (defaultReplication=000) configuration is the other ingredient in that same report.
  • Pin versions rather than tracking latest (the record’s recommended posture, carried with the guardrails above).

The two candidates, as compared

  • RustFS — an S3-compatible object store written in Rust. The research brief (2026-10-03) records RustFS 1.0 GA on 2026-09-16, and the cluster programme’s brief designated RustFS as its S3 target for CNPG backups and buckets on the HDD pools. That designation is superseded by the 2026-11-24 verdict above for everything inside Cozystack; it survives only as the pilot candidacy outside it.
  • SeaweedFS — a distributed object and file store with an S3 interface, and the object store Cozystack ships. Cozystack is the cluster’s chosen platform (settled by Drew, 2026-11-23 — see Talos and Cozystack), so SeaweedFS arrives with the platform — and, per the verdict, it is also the chosen general store, not merely the bundled one.

Gaps

  • No deployment exists: the verdict decides the layer, it does not build it. Benchmarks and data-loss records are the comparison record’s, cited there; this chapter asserts none beyond its summary.
  • The RustFS re-evaluation has a condition (a year of GA exposure) but no calendar owner yet; when it comes due, this chapter’s sync rule (see Keeping this book current) is what folds the outcome back in.

Sources

The comparison record doc/2026-11-24T01-33-33Z_research_rustfs-vs-seaweedfs/ (record dated 2026-11-24, PR #13990) — verdict, benchmark, feature, project-health and data-loss sections and its Cozystack-fit supplement; the cluster research brief and status records behind part 1 (2026-10-03 / 2026-10-27); the platform census of 2026-11-23 (PR #13959); and Drew’s recorded lean of 2026-11-23, confirmed 2026-11-24. Updated 2026-11-24.

Security: Falco runtime detection

The cluster this book plans will run agent workloads — software that shells out, reads credential files and talks to the network as its normal mode of work. That makes the estate’s runtime- security question sharper than usual: the tripwire has to tell a misbehaving or compromised workload from an agent doing its job. The design’s tripwire layer is Falco (Drew, 2026-11-23). Status: not deployed — candidate adopted as the design’s runtime-detection layer; there is no cluster to deploy it on.

What Falco is in this design

Falco is a runtime-detection tool: it watches system calls on a host — via eBPF probes on modern kernels — and matches the behaviour it sees against a rule set. In this estate’s design its job is detection, not prevention: Falco raises the alarm; it does not block the call, kill the container or enforce policy. Enforcement, where the design wants it, belongs to other layers; Falco is the layer that notices.

The behaviours it is adopted to watch for, named plainly:

  • A shell spawned in a container that has no business running one — the classic first move after a workload is compromised.
  • Reads of credential files — a process opening secret or credential material outside its expected paths.
  • Unexpected egress — a workload opening network connections its role does not explain, in an estate whose egress strategy is deliberately narrow (see The cluster programme).

For an estate running agent workloads, those three are the tripwire’s centre: each is something an agent can do legitimately in the right context and an intruder must do in almost any context, which is exactly what makes the tuning cost below real rather than hypothetical.

The tuning cost, stated honestly

Falco’s cost is not the probe; it is the rule set. A stock rule set on an estate full of agents — which spawn shells, read credentials and make network calls as their day job — will produce a false-positive load that trains its operators to ignore it, and an ignored tripwire is worse than none. The design therefore carries, as known and accepted costs:

  • Per-workload rule tuning: the expected-behaviour profile differs per workload, and writing it is real work that lands with each workload, not once for the cluster.
  • An alert-triage habit: detections need a named place to go and a human or agent routine that reads them; Falco without a consumer is log volume, not security. The natural consumer is the estate’s automation layer — see Automation and automated scaling — but no wiring exists and none is claimed.
  • Kernel/eBPF fit on Talos: Falco’s eBPF delivery on an immutable, declarative OS like Talos is a deployment question to prove at install time, not a property this book asserts.

Where it sits in the programme

  • Cluster home: the cluster programme’s platform-services and observability work (epics #1088 and #1090) — see The cluster programme, which cross-links this chapter.
  • It watches workloads; it does not replace the estate’s other boundaries (egress design, secrets handling, declarative rebuild-from-config), and this chapter claims no coverage beyond runtime behaviour on cluster nodes.

Current state

Not deployed. No Falco configuration, rule set or alert route exists anywhere in the estate today. What exists is this decision of record (Drew, 2026-11-23): Falco is the adopted candidate for the runtime-detection layer, to be installed and tuned when a cluster exists to run it on.

ESP32

The microcontroller end of the lab: ESP32-family boards as an ID hardware shell — sensors and LoRa connected to the ID project — under epic #1093 (“ESP32 wing”, open, horizon: Ideas). Drew’s own framing, repeated in every source: “a side project of a side project” — noted and lightly planned, not resourced ahead of the core build. The first genuinely useful slice on record is basement sensor coverage (power, temperature) feeding the cluster’s observability epic #1090.

This chapter’s status, stated at the top because everything else hangs on it: researched-only and designed, with two software proofs, and zero physical-hardware verification anywhere in the record. No board is yet recorded as bought, flashed, or run. No record states that any specific ESP32 board has been flashed, run, or even confirmed owned. See gap 11 in Gaps and open questions.

The verified part names

Drew dictated “ESBs 3 and ESBP 4” for this chapter. Both readings are verified from the record, not guessed:

ESP32-S3 — the reference part

  • Named as the reference chip/board class in a landed design, doc/2026-11-09_design_id5783.md: “a single reference board — ESP32-S3 devkit-class (16 MB flash / octal-PSRAM class, native USB)”. The decision record landed via PR #8001 for #5783.
  • Named as the tier’s reference chip in landed research, doc/2026-11-23T18-55-21Z_research_id13630_embedded_display_tier/: “The tier’s reference chip — every first-wave target below is S3”. First hardware target: the Waveshare ESP32-S3-Touch-LCD-1.28 (ESP32-S3R2). Research issue #13630 closed via PR #13635.
  • Chip facts of record: Xtensa LX7 dual-core at 240 MHz, 512 KB SRAM, WiFi 4 + BLE 5.0, native USB.
  • Silicon records exist in hardware-doc: esp32-s3r8, esp32-s3fn8, esp32-s3-wroom-1, esp32-s3-wroom-1u — research records about parts, not ownership records (see the hardware-doc caveat in the Hardware register).

ESP32-P4 — the named future tier

  • Named in the display-tier research as the future larger-panel tier: MIPI-DSI and a hardware JPEG codec suit panels above 320×240 and RGB panels, at the price of a two-chip design — the P4 has no on-chip radio; Wi-Fi comes via an ESP32-C6 companion over ESP-Hosted.
  • Chip facts of record: RISC-V dual-core at 400 MHz, 768 KB SRAM, no on-chip radio.
  • Five official Espressif P4 board records exist in hardware-doc (esp32-p4-eye, esp32-p4-function-ev-board, esp32-p4x-c5-function-ev-board, esp32-p4x-eye, esp32-p4x-function-ev-board), and the research pass of record established the real P4 board lineup — no Korvo board exists on P4.
  • The P4 is also targeted in one slice today: as the application processor of the Tanmatsu, below.

The Tanmatsu — “Tenmazu”, resolved

The dictated “tenmazu” is the Tanmatsu, resolved from the record: a whole-repository search for “tenmazu” returns nothing; the device is spelled Tanmatsu. It is a physical device: a handheld terminal from the Nicolai Electronics / badge.team lineage (it began as the WHY2025 badge design and is sold commercially), which Drew named as the reference design for making worlds work “as an app” on this tier. Its review is §9 of the #13630 research record.

PartWhat it is
Application processorESP32-P4 (dual RISC-V at 400 MHz, 768 KB SRAM, 32 MB PSRAM, 16 MB flash) — runs the launcher and apps
Radio coprocessorESP32-C6 module (WiFi 6, BLE 5.3, IEEE 802.15.4) over ESP-Hosted (SDIO)
Management coprocessorWCH CH32V203 (keyboard matrix and power management, I2C peripheral to the P4)
Display3.97-inch 800×480 MIPI-DSI (ST7701S)
Input69-key QWERTY keyboard (no touchscreen)
ExtrasLoRa module (Ai-Thinker Ra-01S/SH, 433 or 868/915 MHz) on the C6 side; microSD slot
LicensingSoftware MIT; hardware CERN-OHL-P-2.0

The app system the tier adopts from it: the tanmatsu-launcher plus AppFS (badge.team) — an app is a standard, unmodified ESP-IDF binary with slug/title/version metadata in an 8 MB AppFS partition; apps arrive via the on-device Hatchery store, BadgeLink over USB (also the provisioning route), host-side image tools (apps embedded in the firmware image at build time), or as the main firmware itself (kiosk boot). Adopted shapes: presenter-as-an-app, slug-keyed data, BSP-shaped hardware access, a host management protocol.

One honest gap recorded in the research: stock AppFS bootloader support covers ESP32, ESP32-C6 and ESP32-P4 — not yet the ESP32-S3, this tier’s first target. Adopting AppFS literally on the S3 presenter waits on an upstream bootloader port; on P4-class hardware it works today. A hardware-doc device family for Nicolai Electronics exists (doc/hardware/devices/nicolai-electronics/).

The ESP32 platform design (#5783) — designed, decision-ready

doc/2026-11-09_design_id5783.md — “Design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power”. Status in the record: decision-ready proposal — design only; no firmware is implemented here. Issue #5783 is open, under ID epic #2056. Its decisions:

  • Board: one reference board (ESP32-S3 devkit-class) plus a written compatibility envelope (Wi-Fi, at least 16 MB flash, PSRAM, hardware RNG, USB flashing without an external UART bridge) — no supported family in v1. Rejected as reference: ESP32 classic (no native USB, thinnest RAM margin; eligible later in a WROVER/PSRAM variant), ESP32-C3/C6 (RAM too tight for the TLS plus frame budget; named revisit), ESP32-S2 (single core, no BLE).
  • Identity (the ID tie-in): a device-owned keypair generated on-device at first boot; enrolment binds it through the #5884 setup ceremony; factory reset destroys the key and re-enrols as a new device; a stolen device yields only its own key, expiry-bounded cached grants and its journal — never user keys.
  • Lifecycle: Nix-flake reproducible builds in CI, offline-signed images, A/B partitions with automatic rollback to last-good, OTA fetched over HTTPS (never inside MQTT frames), a checksummed journal ring across reconnects.
  • Firmware language: Rust on esp-idf, sharing the workspace’s wire-bounds constants and manifest schema types with the bridge so the 64 KiB / 8 KiB limits are one definition. C/Arduino and bare-metal esp-hal + embassy-net both rejected for v1 (embassy-net with a named revisit).
  • Power: the v1 reference build is mains-powered (“Drew’s bench”); battery is a budgeted envelope, not a tested claim — invariant I-10 forbids shipping a battery-life number without a measured profile on the reference board. Wake-storm avoidance is a fleet property (jittered, per-device-seeded backoff on the bridge’s 1 Hz time.tick floor).
  • Field posture: fail-closed; distrust power, network, broker and time in that order; the device is never a time authority (the bridge assigns ingest time); bounded store-and-forward with explicit gap signalling; never clicks through captive portals.

The embedded display tier research (#13630) — researched, slices filed

doc/2026-11-23T18-55-21Z_research_id13630_embedded_display_tier/ — “Embedded display tier: ESP32 screens as world presenters” (issue #13630 closed; PR #13635). Chip table of record: ESP32-S3 (reference); original ESP32 (supported envelope); ESP32-C3 (cost floor, bridge-only class); ESP32-P4 (named, not targeted — except via the Tanmatsu, above). The research also records the iroh project’s ESP32 walkthrough — ESP32 microcontrollers as QUIC endpoints — as a transport data point for the tier. Filed follow-on slices, all open:

  • #13632 — presenter slice 1: round-panel hello-world presenter (GC9A01
    • CST816S, bridge-fed glance card, touch back-channel) — the Waveshare S3-Touch-LCD-1.28 target.
  • #13643 — presenter slice (Tanmatsu class A): world presenter as an AppFS app on ESP32-P4.
  • #13646 — e-paper presenter (M5Paper class): refresh discipline, ambient-first cards.
  • #13647 — rotary-knob input slice (S3-Knob-Touch-LCD-1.8 / P4-Knob-Touch-AMOLED-1.75 named in the title).

Projects and proofs — software only

  • MQTT device bridge — spec plus labelled proof of concept, proven in code (no hardware): the design record for #2343 defines the id.device.v1 topic schema (retained manifest only; wants never retained; TLS plus per-device credentials, fail-closed, no-oracle refusals; 64 KiB documents / 8 KiB args; a 1 Hz minimum time.tick chosen to avoid wake storms on ESP32-class radios). The proof of concept is pkgs/id/src/device_bridge.rs with FakeBroker/FakeDevice and integration tests. Home Assistant interop is out-of-scope-but-supported: HA may bridge to the same topics; the ID capability model stays authoritative. Production hardware rollout stays deferred (#2028); boards, firmware, OTA, ESPHome and power are #5783’s.
  • ESP32-class hardware shell spike — done as a spike: #10929 closed via PR #12942. The shell is specified as a capability statement (presence, journal-head, and the interaction subset).
  • A separate ESP32 screen repository exists: dezren39/muse-esp32-screen — #10417 (open) replicates a format auto-fix workflow to it. The census cites its existence from the issue title; its contents were not read, and this book claims nothing about them.
  • Capability-taxonomy groundwork: a design investigation defines one wire contract across web, ESP32/MQTT and text/audio (an ESP32 with GNSS serves loc.position at about 5 m; speech.capture exists for devices that cannot run speech to text — “most ESP32s”). A provider-security record flags the open hardware-attestation question for the ESP32 class: a provider key in extractable flash is cloneable, so until the secure-element decision is taken, ESP32-class instances are ceilinged as if cloneable.

Maker-bench context

Drew’s broader bench includes ESP32-class hardware, Raspberry Pi, sensors, displays, logic analysers, buses and radios; networking technology including LoRa, Reticulum, Thread, Matter, Zigbee and Meshtastic (memory of record). No per-device inventory of any of it exists — a gap (gap 11), and the AliExpress aggregation (#13910) is the intended remedy.

The hardware-doc microcontroller corpus is wide — Seeed XIAO ESP32S3 Sense, Waveshare S3/P4/C6 boards, the M5Stack Cardputer family and its LoRa expansions, LilyGO T-Display-S3, Xteink e-readers, and more — and every verification report in it carries the same caveat this chapter opened with: 0 hardware-tested claims. It is research about parts. It is not a shelf inventory.

High-level roadmap

This chapter is the Lab Book’s section of the project’s merged priority list (census B, gathered 2026-11-23/24 under #13905). The ordering logic of the whole list, stated once there: execution substrate first, then the physical substrate, then the data substrate, then search intelligence, then the ID platform build-out, then the gateway/PM/fork surfaces, then the record itself. Within a tier, dependency order wins; ties break on leverage.

The lab’s assignment (§2 of the census): four primary items — 4, 5, 6 and 24 — in full below, and four cross-links — ◦2, ◦7, ◦17 and ◦30 — as one-liners. Timing is from §3 of the census. Where the record has no timing, this chapter says so; no dates are invented anywhere in it.

Primary items

4. Switches integrated and racked (SEED)

  • Type: milestone.
  • Description: The dedicated switches from the repo’s switching research are installed, racked and integrated, so the basement machines share a real fabric instead of ad-hoc links.
  • Area: lab (primary, sole). Cross-link: fleet (cluster networking assumptions).
  • Most related: the code repo’s dedicated switches research — doc/inventory/routing-and-switching.md and doc/hardware/ (see Switches). At census B’s gathering, no single GitHub issue owned this item; the owning issue now is #13920, filed under #13905 — complete the inventory, then integrate and rack. Per-switch physical tickets: #6073, #6074, #6075; fabric epic #1084; NIC/switch verification #1097.
  • Status today: not started (planned). At census B, switch make/model/count was explicitly missing from the hardware record until the switching research was folded in; the lab census (census C) performed that fold-in — it is the Switches chapter. No OS is installed on any basement machine yet, and no switch is recorded as racked or carrying cluster traffic.
  • Timing (§3): no timing in record. The switch inventory itself was incomplete (make/model/count missing) — the lab census under #13905 is the first dated step.
  • Ordering rationale: First physical dependency: racking and networking precede servers presenting (item 5) and the cluster boot (item 6). Cheap, unblocking, and entirely Drew-side / logistics-paced.

5. All servers online, auto-connecting and presenting to the cluster on boot (SEED)

  • Type: capability-set.
  • Description: Every server powers on, joins the network and presents itself to the cluster declaratively — no hand-built machine that “just exists forever.”
  • Area: lab (primary). Cross-links: fleet (enrolment is the same shape as fleet agent enrolment); ID (the hosted-worlds deployment pack targets these machines).
  • Most related: the TALM + Talos bootstrap epic #1086 (named as parent of the cluster config in infra/cluster/README.md); the ID hosted-worlds P5 basement-cluster deployment pack #10697; the fleet agent enrolment family around #12236. There is no dedicated implementation issue for auto-join itself — see Boot and auto-join.
  • Status today: not started. Record: no OS installed on the basement fleet (deliberate); every CPU boots, all RAM works, nothing load-tested; basement power capacity is a named blocker; build target is 3–5 best/most-identical machines first.
  • Timing (§3): no timing in record. The hardware state is as recorded 2026-10-20/21 in the hardware register; no reprioritisation recorded since.
  • Ordering rationale: The cluster (item 6) is defined over machines that present themselves; hand-installing the first nodes would create exactly the snowflake state the programme forbids.

6. Talos cluster booted live, accepting data on Cozystack (SEED)

  • Type: milestone.
  • Description: A Talos Linux cluster bootstrapped declaratively with TALM, running Cozystack with Postgres (CNPG), RustFS, NATS, FluxCD and DRBD+LINSTOR replication — live and accepting data. Hard rule of record: no HashiCorp tooling.
  • Area: lab (primary). Cross-links: fleet (in-cluster builds, item 2); ID (hosted worlds deployment target); Atlas (storage tiers).
  • Most related: the TALM + Talos bootstrap epic #1086; planning/roadmaps/basement-cluster.md (the current programme doc; the v1.9-era test cluster in doc/talos-addresses.md is torn down, confirmed by Drew 2026-10-26); the ID deployment pack #10697. Programme parent: #1817.
  • Status today: designed / not started. Design and per-node disk config exist (infra/cluster/; the TALM flow is the one proven piece — see Talos and Cozystack); nothing is running. The storage design sketch is Drew’s, to be validated: 15–16× 16 TB HDDs (8 still boxed), at least 3 TB ECC RAM, RAID-10/RAID-100 NVMe tiers, 3-machine DRBD replication.
  • Timing (§3): the v1.9-era Talos test cluster was torn down (confirmed by Drew 2026-10-26) — a recorded miss/reset: the current programme (basement-cluster.md) restarts from declarative bootstrap. No live date in record.
  • Ordering rationale: The physical keystone: in-cluster builds (item 2), self-hosted ID servers (item 17) and the local leg of the backup mesh (item 7) all presume it. Ranked below its own prerequisites (items 4–5) by dependency, above everything that consumes it by leverage.

24. ESP32 hardware platform line — ID on microcontrollers

  • Type: capability-set.
  • Description: ESP32-family boards as an ID hardware shell — sensors and LoRa connected to the ID project — a lab chapter today, its own line long-term.
  • Area: lab (primary). Cross-link: ID (the hardware shell crate id-hw-shell and the shells programme, item 22 of the merged list).
  • Most related: #5783 — ESP32 hardware platform line (open, design; already tasked by a completed first pass); per-device verification docs in developing-today/hardware-doc (mostly ESP32 boards today — exact part names are verified there, not guessed). Wing epic: #1093. Full chapter: ESP32.
  • Status today: designed / side-line. Recorded in the hardware census as “a side project of a side project for now — noted, not scheduled.”
  • Timing (§3): no timing in record; explicitly “noted, not scheduled” in the hardware record.
  • Ordering rationale: Genuinely long-term: it inherits the shell contract (item 22) and the lab’s physical readiness (items 4–6), and blocks nothing.

One line each, by the census’s completeness rule — the full text of each item lives in its primary book.

  • ◦2 — Containerised build/compile systems (fleet primary): the in-cluster half runs on item 6 and is not started — it waits on the cluster; the Actions/compile-coordinator half is designed and in flight in the fleet book’s chapter: Containerised builds — fleet book.
  • ◦7 — Backups + storage automated, one coherent complete backup set (Atlas primary): the local leg runs on cluster storage — the DRBD/LINSTOR tiers of Storage: LINSTOR and DRBD; the mesh itself is the Atlas book’s chapter.
  • ◦17 — Tunnels to spin up ID servers dynamically (ID primary): the basement-cluster deployment pack for hosted ID worlds is #10697 (P5 of the hosted-worlds chain) and runs on item 6; the chain itself is the ID book’s chapter.
  • ◦30 — The books and Spaces themselves (PM primary): this book is that programme line’s lab deliverable — the Lab Book plus the Lab Space plus the AliExpress inventory issue #13910, coordinated on #13905.

Gaps and open questions

This chapter is the lab census’s gap list (§8 of census C, 2026-11-23/24), carried into the book verbatim in substance. It is the honest to-do record: where the record is thin, what is unverified, and which contradictions stand unreconciled. A gap listed here is not softened anywhere else in the book — chapters cite these numbers.

  1. No per-machine inventory exists for any basement machine. Only the laptop amd has a collected record. CPU model, board-per-machine, RAM-per-machine, drive-per-machine: all ungathered (#1095 / #1096 / #1810 open). Every “identical core boxes” claim rests on Drew’s 2026-10-20 dictation.
  2. NIC specification unverified. “At least 200 Gb ports” (dictated) versus a 100GbE-max switch fabric of record; #1097 open. The LINSTOR/DRBD design cannot be sanity-checked until this lands.
  3. The three build-out Dell switches have no model, hostname, or state anywhere in the record (#6073–#6075 will create it). Whether they are the inventoried PowerConnect 5448s is unstated. Location/state (racked, in use, boxed) is unstated for every one of the 21 inventoried network devices — #13920’s first slice owns exactly this.
  4. DX010 count tension: the inventory says 4× owned (1 missing fans/PSU); #6071 says install 3 more. Install-of-owned versus buy-more is not distinguished in the record.
  5. Racking state unknown. No record of racks present, rails installed, or layout executed; #6070’s very subject (“another 4 each of racking”) is unresolved dictation.
  6. Power unverified beyond the brief: no installed-circuit record, no UPS record, no measured draw (600 W per machine is a planning assumption in the brief itself).
  7. Nothing cluster-shaped has run since the v1.9 test cluster was torn down. Cozystack, LINSTOR/DRBD, CNPG, RustFS, NATS, FluxCD on-cluster: zero deployments. TALM is proven only against local containers.
  8. #6078’s verdict not extracted. The SBC/Pi research issue (#6078) is closed, but its body checkboxes are unchecked and the census did not read its closing comments; the per-role verdicts (quorum witness / web serving / ID free tier) must be pulled from the issue before the book asserts them. This book asserts none.
  9. OCI contradiction — unreconciled, not resolved. Epic #1091 and child #4904 remain open on GitHub, while the memory of record (2026-10-31) says OCI is stood down and is not a backend. Both facts stand in this book, flagged as unreconciled. Neither this chapter nor any other picks a winner; reconciliation is programme work on #1091, not an editorial act.
  10. GPU framing tension: the register lists 3× Intel B50 + an RTX 2060 as owned-but-not-a-resource; #6072’s title records “local (none owned)” for the GPU-capacity question. The book uses the register’s list and notes the #6072 framing difference.
  11. ESP32 ownership is nowhere established. Hardware-doc is research, not ownership; no board is recorded as bought, flashed, or run. The AliExpress aggregation (#13910) is the planned fix and is blocked on Drew granting access.
  12. “Which ID app first” is still open (register open question #1, 2026-10-20; repeated in the P9 draft, 2026-11-12) — it gates epic #1092’s acceptance.
  13. P9 lab-integration design is unratified (#8873) — its phased landing plan (Atlas serve, queue workers, PM surfaces, build overflow on the cluster) must not be cited as decided. This book cites it only as a draft.
  14. Switches research is dated 2026-04-02/03 — the newest fact in it is seven months older than the rest of the programme; firmware versions, device survival, and the DX010’s missing fans/PSU may have changed. A physical check list is #13920’s stated output.
  15. Mini PCs, Dell machines, spare PCs: counts without specs. “2–3 mini PCs”, “some Dell machines”, “several spare PCs” — no models or specifications in any source read.
  16. No timing exists for any lab item. No record read in the census carries a projected or planned date for any physical or cluster milestone; the roadmap’s Now/Next/Later/Ideas horizons are the only sequencing of record. The High-level roadmap keeps every lab timing entry as “no timing in record” for exactly this reason.

Closing this list

Each gap names its owning issue. A gap closes when the record changes — an inventory lands, a physical check is recorded, an issue is reconciled — and the chapter that carried the gap is updated in the same pass, per Keeping this book current. Gaps do not close by being reworded.

Keeping this book current

The Lab Book describes physical things and a programme that will change state in jumps: a circuit gets installed, a switch gets racked, a node gets its first OS. A book like this goes stale silently unless the sync rule is explicit. This chapter is that rule.

The rule

Every hardware or cluster claim in this book is dated, and the book is updated when the underlying record changes. Concretely, a change to any of the following is not done until this book matches it:

  • A physical change at the site — a machine inventoried, racked, moved or retired; a circuit installed; a switch racked, configured or removed; a drive installed or replaced; a board bought, flashed or run. The change’s own ticket (for example #6073–#6075 for the Dell switches, #1095/#1096 for the inventory) records the fact; the book chapter that carries the claim is updated in the same pass.
  • A cluster state change — a node installed, the TALM flow proven on bare metal, Cozystack deployed, a storage pool created, a workload landed. Status words move only when a record shows the new state: planned becomes in progress becomes proven on evidence, never on intention.
  • A census refresh — when a new lab census supersedes the 2026-11-23/24 census this book was built from, the chapters are re-derived from the new census: figures, statuses, the gap list and the roadmap timings are replaced, not patched over.
  • A programme change — an epic opened or closed, the P9 draft ratified or withdrawn, a contradiction reconciled (gap 9’s OCI pair is the standing example), a new owning issue filed (the auto-join gap in Boot and auto-join is the standing example).

How the update is made

  1. Edit the chapter whose claim changed. Keep the status vocabulary of the Lab Book introduction — proven, in progress, planned, researched-only — and keep the date of the record the new claim rests on in the text.

  2. If a chapter is added, renamed or retitled, add it to book/SUMMARY.md in the same change, keep its sole H1 equal to its SUMMARY entry text, and update the link text in every chapter that links to it.

  3. Stage the new files in git before building — Nix flakes only see tracked files, and an unstaged chapter fails the build as an invisible path.

  4. Build and require zero warnings:

    nix build .#lab-docs
    

    A warning is a defect: an unclosed tag warning in particular means a bare angle-bracket placeholder is being read as HTML and text is silently vanishing from the rendered page. Escape placeholders in prose (&lt;name&gt;) rather than accepting the warning.

What this book never does

  • It never promotes a claim past its evidence. Research in hardware-doc is not ownership; a closed research issue’s unextracted verdict is not a verdict (gap 8); a draft is not a decision (gap 13).
  • It never carries cost material. Costs belong to the Project Management book.
  • It never resolves a recorded contradiction by editorial choice. Contradictions are flagged as unreconciled until the programme reconciles them on their issues.

Deploying this book

This book is an mdBook that lives with the subject it documents: sources in pkgs/lab/book/, configuration in pkgs/lab/book.toml, build definition in pkgs/lab/docs.nix, published to the developing-today/code GitHub Pages site under /lab/. This chapter describes exactly how that works.

For the rule that keeps the book’s content current, see Keeping this book current.

The pieces

  • pkgs/lab/book.toml — mirrors the fleet book’s configuration: title “Lab Book”, src = "book" (a dedicated folder), build directory rendered, and create-missing = false — every chapter in SUMMARY.md must exist on disk; the build never invents stubs.

  • pkgs/lab/book/ — SUMMARY.md plus the chapters. index.md is the introduction.

  • pkgs/lab/docs.nix — mirrors pkgs/fleet/docs.nix. It takes a siteUrl argument (default "/") that is baked into the rendered book as mdBook’s output.html.site-url, injected at build time via the MDBOOK_OUTPUT__HTML__SITE_URL environment variable rather than stored in book.toml. It also rewrites links that escape the book source tree to the file’s repository URL (https://github.com/developing-today/code/blob/main/pkgs/lab/) in the copied pages only — the sources keep their relative links for GitHub.

  • lib/default.nix — exposes the package next to its sibling books: labDocs = pkgs.callPackage ../pkgs/lab/docs.nix { }; and lab-docs = labDocs; in the packages set, so the build is:

    nix build .#lab-docs
    

The two workflows

Repository CI runs on main only, and the book follows the same policy.

lab-docs.yml — build only

.github/workflows/lab-docs.yml mirrors the fleet book’s build job: on push to main and on workflow_dispatch, it builds .#lab-docs, stages the result, and verifies the rendered site (the index page exists). It never deploys. Its job is to fail by name on main when a chapter breaks the build — a missing SUMMARY.md target under create-missing = false, a bad link, a broken derivation — before the deploy path is involved.

mcpx-docs.yml — the combined Pages deploy

The deploy lives inside the existing .github/workflows/mcpx-docs.yml, whose deploy staging gains the Lab Book. The reason is a hard constraint of GitHub Pages:

One repository has one Pages site, and a Pages deploy replaces the whole site.

The mcpx book already occupies https://developing-today.github.io/code/, and the sibling books sit under it (the fleet book under /code/fleet/, the Code Book under /code/code/). A lab-only deploy would publish an artifact containing only the Lab Book — and wipe every sibling book off the site. So the deploy job builds all the books and stages one combined site:

site/          ← the mcpx book, built with siteUrl "/code/"
site/lab/      ← the Lab Book, built with siteUrl "/code/lab/"

The Lab Book is therefore reached at https://developing-today.github.io/code/lab/, and its siteUrl is /code/lab/ — the /code/ project-site prefix plus the lab/ staging directory. The combined artifact then goes through the same publish shape as the sibling books: a staging job (configure-pages + upload-pages-artifact) and a separate publish job with the pages concurrency group.

The combined-deploy staging for this book is landed by the programme coordinator; this book’s own change deliberately does not edit mcpx-docs.yml.

GitHub Pages for developing-today/code is already enabled with build_type = "workflow" (source: GitHub Actions). There is no manual enable step, no gh-pages branch, and no generated HTML is ever committed.

Preview the book locally

  1. Build the packaged form from the repository root:

    nix build .#lab-docs
    
  2. Open or serve result/index.html and check the chapter order, internal links, and search.

  3. Or, for a faster edit loop, build in place from pkgs/lab/:

    mdbook build
    

    and preview the output directory named by book.toml. The Nix build is the authoritative check — it is the same derivation, mdBook version, and siteUrl handling the deploy uses.

Note the local default siteUrl is "/". Links inside the book are relative .md links, so local preview navigation works regardless; only absolute site URLs differ between the local build and the deployed one.

FAQ

Is there a running Kubernetes cluster in the basement?

No. As of the latest status record (2026-10-27), nothing in the current cluster programme has been built. The basement machines have no OS installed, by design. See The cluster programme.

Didn’t a Talos cluster run there before?

Yes — a v1.9-era test cluster (VIP 10.10.0.42, controllers a1/a2/b1, workers a3/a4/b2–b6). It was torn down, confirmed by Drew on 2026-10-26, and is history only. See Talos and Cozystack.

What is actually proven, then?

Three things carry the proven marking in this book: the TALM per-node disk flow (#1812 — design plus a local container flow, not bare metal); the first lab Cloudflare Tunnel (#6455 — live since 2026-11-06, running on the laptop); and the record-level facts about the machines themselves (every CPU boots, all RAM works, the firmware pass on the named board). Everything else is in progress, planned, or researched-only, and the chapters say which.

Why do the machines have no OS? Isn’t that backwards?

It is the programme’s central rule: everything bootstrappable from config, no hand-built state that just existed forever. The machines get an OS when the TALM bootstrap flow installs it declaratively — see Boot and auto-join.

Which switches will the cluster use?

The only 100GbE fabric in the research inventory is the Celestica DX010 (four recorded, one missing fans/PSU). The full inventory — 21 devices — and the conclusions the research supports are in Switches. No switch is recorded as racked or configured for the cluster yet.

Is pkgs/lab-ops-hub the lab’s operations hub?

No. It is a Cloudflare full-stack demo that borrowed the lab’s vocabulary — its database was seeded with three fictional machines matching the basement-cluster sketch. It is not the physical lab, and this book gives it a footnote, not a chapter. See The cluster programme.

Has any ESP32 board been bought or run?

No board is recorded as bought, flashed, or run. The ESP32-S3 is the verified reference part and the ESP32-P4 the named future tier; the platform design is decision-ready and the display-tier research is landed — all of it research and design, with two software proofs and zero physical verification. See ESP32.

Where are the prices for all this hardware?

Not in this book. No per-item prices exist in any source the census read; the priced inventory is the job of the AliExpress aggregation (#13910), and cost material belongs to the Project Management book in any case.

When will the cluster be live?

No record carries a projected date for any lab milestone — the census’s gap 16. The High-level roadmap records every lab timing entry as “no timing in record” rather than inventing one.

Glossary

AppFS — The badge.team application filesystem adopted from the Tanmatsu: an app is a standard, unmodified ESP-IDF binary with slug/title/version metadata in a dedicated partition. See ESP32.

BMC / IPMI — Baseboard management controller / Intelligent Platform Management Interface: the enterprise remote management (KVM, power, sensors) built into the core machines. Versions and settings are still to be audited (epic #1081).

Ceph — A distributed storage system avoided where possible in this estate (Drew, settled 2026-11-23); LINSTOR-first is the direction.

Cozystack — The Kubernetes platform planned for the cluster: it decides storage, tenancy and GitOps, and provides LINSTOR storage, CNPG Postgres and SeaweedFS buckets. Planned, not installed.

CNPG — CloudNativePG, the managed Postgres operator the programme uses via Cozystack. The research brief’s decision: use Cozystack’s CNPG-based Postgres; do not deploy a second operator. Runs as a primary with streaming replicas; see Storage: LINSTOR and DRBD.

DRBD — Distributed Replicated Block Device: block-level replication between machines, managed by LINSTOR in the cluster design. Drew’s sketch replicates across three machines so data loss needs the same failure on two at once.

DX010 — Celestica DX010: the 100GbE fabric switch of the research inventory (32× QSFP28, SONiC). The dictated “DXO10” and the issue-title spelling “Celestia DX010” are the same device.

Falco — A runtime-detection tool (eBPF/syscall behaviour watching); the design’s tripwire layer — detection, not prevention. Not deployed. See Security: Falco runtime detection.

LINSTOR — The storage management layer in Cozystack that provisions DRBD-replicated volumes on ZFS. Design only in this programme.

P9 — The fleet-drafted lab-integration design (doc/living/lab-integration.md). A draft awaiting Drew’s ratification (#8873); nothing in it is decided.

RAID 100 — The register’s name for the mid NVMe tier’s layout: stripe 3 × mirror 2 (6 drives), so two drives must die to down a machine.

RustFS — An S3-compatible object store, one of the two candidates for CNPG backups and buckets on the HDD pools. The RustFS-versus-SeaweedFS verdict landed 2026-11-24: SeaweedFS stays as Cozystack’s S3 layer, and RustFS is pilot-only for standalone large-object workloads outside Cozystack, re-evaluated after a year of GA exposure. See Object storage: RustFS and SeaweedFS.

TALM — cozystack/talm: the tool that templates and applies Talos machine configuration per node from files in git. Its per-node disk flow (#1812) is the book’s one proven cluster piece.

Talos — Talos Linux, the cluster’s operating system: installed declaratively via TALM, never hand-built. No node is installed yet.

Tanmatsu — The handheld terminal (Nicolai Electronics / badge.team lineage) built on an ESP32-P4 plus ESP32-C6, named as the reference design for worlds-as-apps on the embedded tier. The dictated “tenmazu” is this device.