Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pkgs/lab/book/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@

- [Switches](network/switches.md)

- [GitHub Actions](platform/github-actions.md)
- [Nix and the NixOS flake](platform/nix-and-the-flake.md)
- [NixOS flake apps](platform/flake-apps.md)
- [The laptop NixOS config](platform/the-laptop-nixos-config.md)
- [CI/CD: Nix and GitHub Actions](platform/ci-cd.md)
- [Making Nix packages and apps](platform/making-nix-packages-and-apps.md)
- [Containers and Docker images](platform/containers-and-images.md)
- [DNS management](platform/dns-management.md)
- [The Nix cache worker and its alternatives](platform/nix-caches.md)
- [The pipes into Cloudflare and externally](platform/pipes-to-cloudflare.md)
- [Dev shells as a default](platform/dev-shells.md)
- [clan.lol and machine fleets](platform/clan.md)
- [Minimal VMs and KubeVirt](platform/vms-and-kubevirt.md)
- [The role of Terraform](platform/terraform.md)
- [Crossplane and alternatives](platform/crossplane-and-alternatives.md)
- [Nix apps V2 and next-gen tooling](platform/next-gen-nix-tooling.md)
- [Build-server alternatives](platform/build-servers.md)
- [Artifact and binary repositories](platform/artifact-repositories.md)
- [Automation and automated scaling](platform/automation-and-scaling.md)
- [Object storage: RustFS and SeaweedFS](platform/object-storage.md)

- [ESP32](microcontrollers/esp32.md)

- [High-level roadmap](roadmap/high-level-roadmap.md)
Expand Down
3 changes: 3 additions & 0 deletions pkgs/lab/book/cluster/storage-linstor-and-drbd.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ From the idea register (2026-10-20), carried into epic #1085 /
CNPG Postgres backups to an S3 endpoint — in-cluster RustFS,
Cozystack's bundled `cozy-backups` SeaweedFS bucket, or external
(decision open, see [Talos and Cozystack](talos-and-cozystack.md)).
The wider RustFS-versus-SeaweedFS object-storage question —
object storage, not this chapter's block storage — is
[Object storage: RustFS and SeaweedFS](../platform/object-storage.md).
- **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 —
Expand Down
23 changes: 15 additions & 8 deletions pkgs/lab/book/cluster/talos-and-cozystack.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,26 @@ that is proven.
until the TALM bootstrap flow is proven" (status record
2026-10-27). Bootstrap epic:
[#1086](https://github.com/developing-today/code/issues/1086).
- **Cozystack** on top of Talos: researched in depth (CNCF
Sandbox; LINSTOR on ZFS/DRBD for storage; Kube-OVN, Cilium and
MetalLB for networking; SeaweedFS buckets; KubeVirt; CNPG
Postgres). Install epic:
- **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). Install epic:
[#1087](https://github.com/developing-today/code/issues/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/`).
(`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 RustFS as the designated S3 target — with the
RustFS-versus-SeaweedFS decision still open under epic
[#1088](https://github.com/developing-today/code/issues/1088).
operator), and S3 object storage — the RustFS-versus-SeaweedFS
question is now with a dedicated comparison lane, with Drew's
current lean to SeaweedFS because Cozystack ships it; see
[Object storage: RustFS and SeaweedFS](../platform/object-storage.md).
Epic [#1088](https://github.com/developing-today/code/issues/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
Expand Down
4 changes: 2 additions & 2 deletions pkgs/lab/book/cluster/the-cluster-programme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ ticketed programme. Component by component:
| 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](https://github.com/developing-today/code/issues/1086) open. |
| Talos (historical v1.9 test cluster) | Proven, then retired — torn down 2026-10-26. History only. |
| TALM bootstrap flow | Proven locally (containers); planned on bare metal. See [Talos and Cozystack](talos-and-cozystack.md). |
| Cozystack | Planned / researched-only. Install epic [#1087](https://github.com/developing-today/code/issues/1087) is "proposed/Later" in the roadmap. |
| Cozystack | Planned — the platform is **chosen, settled by Drew 2026-11-23**; not yet installed. Install epic [#1087](https://github.com/developing-today/code/issues/1087) is "proposed/Later" in the roadmap. |
| LINSTOR + DRBD | Planned — design only. See [Storage: LINSTOR and DRBD](storage-linstor-and-drbd.md). |
| Postgres (CloudNativePG via Cozystack) | Planned — decision recorded in the research brief: use Cozystack's CNPG-based managed Postgres; do not deploy a second operator. |
| RustFS (S3) | Planned, one decision open (RustFS versus Cozystack's bundled SeaweedFS); epic [#1088](https://github.com/developing-today/code/issues/1088) owns the decision. |
| RustFS (S3) | Planned; the RustFS-versus-SeaweedFS decision is with the comparison lane (Drew's current lean: SeaweedFS, 2026-11-23); epic [#1088](https://github.com/developing-today/code/issues/1088). See [Object storage: RustFS and SeaweedFS](../platform/object-storage.md). |
| 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 FluxCD | Planned — epic [#1092](https://github.com/developing-today/code/issues/1092). Which app exactly is "the ID app" is still an open question (gap 12). |
| Observability, backup and recovery | Planned — epic [#1090](https://github.com/developing-today/code/issues/1090), including the power-return boot order. |
Expand Down
31 changes: 25 additions & 6 deletions pkgs/lab/book/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ is a deliverable, not an embarrassment.
three design areas in turn.
- **The network** — [Switches](network/switches.md) folds in the
dedicated switching research: 21 devices, enriched in April 2026.
- **Platform and toolchain** — the part added from the platform
census of 2026-11-23 (landed as
`doc/2026-11-24T01-20-46Z_research_code-book-census-platform/`,
PR [#13959](https://github.com/developing-today/code/pull/13959)):
[GitHub Actions](platform/github-actions.md),
[Nix and the NixOS flake](platform/nix-and-the-flake.md),
[NixOS flake apps](platform/flake-apps.md),
[The laptop NixOS config](platform/the-laptop-nixos-config.md),
[CI/CD: Nix and GitHub Actions](platform/ci-cd.md),
[Making Nix packages and apps](platform/making-nix-packages-and-apps.md),
[Containers and Docker images](platform/containers-and-images.md),
[DNS management](platform/dns-management.md),
[The Nix cache worker and its alternatives](platform/nix-caches.md)
and
[The pipes into Cloudflare and externally](platform/pipes-to-cloudflare.md),
with shorter chapters on dev shells, clan, VMs and KubeVirt,
Terraform, Crossplane, next-gen Nix tooling, build servers,
artifact repositories, automation and scaling, and the
RustFS-versus-SeaweedFS object-storage question.
- **Microcontrollers** — [ESP32](microcontrollers/esp32.md) covers
the ESP32-S3 reference part, the ESP32-P4 tier, and the Tanmatsu.
- **Roadmap and plans** — the
Expand All @@ -69,12 +88,12 @@ is a deliverable, not an embarrassment.
[Deploying this book](operations/deploying-this-book.md) describes
how the book is built and published.

A second part of this book — the platform and toolchain running on
the lab — is in preparation under
[#13905](https://github.com/developing-today/code/issues/13905). Its
census is still being gathered, so no platform chapters exist yet;
the structure above is complete without them and they will slot in
as their own part when the census lands.
The platform and toolchain part above is that second part: it
landed under
[#13905](https://github.com/developing-today/code/issues/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

Expand Down
10 changes: 6 additions & 4 deletions pkgs/lab/book/operations/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ ratification (#8873); nothing in it is decided.
stripe 3 × mirror 2 (6 drives), so two drives must die to down a
machine.

**RustFS** — The S3-compatible object store designated for CNPG
backups and buckets on the HDD pools. Whether it also replaces
Cozystack's bundled SeaweedFS as the general store is an open
decision (epic #1088).
**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 is deferred to the comparison
lane's dated record; Drew's current lean (2026-11-23) is
SeaweedFS, because Cozystack ships it. See
[Object storage: RustFS and SeaweedFS](../platform/object-storage.md).

**TALM** — `cozystack/talm`: the tool that templates and applies
Talos machine configuration per node from files in git. Its
Expand Down
70 changes: 70 additions & 0 deletions pkgs/lab/book/platform/artifact-repositories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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](https://github.com/developing-today/code/pull/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](containers-and-images.md)).
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](nix-caches.md).
- **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.
77 changes: 77 additions & 0 deletions pkgs/lab/book/platform/automation-and-scaling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# 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](dns-management.md) and
[The pipes into Cloudflare and externally](pipes-to-cloudflare.md).
Read by the platform census of 2026-11-23 (landed as
`doc/2026-11-24T01-20-46Z_research_code-book-census-platform/`,
PR [#13959](https://github.com/developing-today/code/pull/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](github-actions.md) and
[Build-server alternatives](build-servers.md)). 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](https://developing-today.github.io/code/fleet/));
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](ci-cd.md) — 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](clan.md)), and the TALM flow gives
the cluster the same shape (part 1's
[Talos and Cozystack](../cluster/talos-and-cozystack.md)). 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](vms-and-kubevirt.md)).

## 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.

## 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.
61 changes: 61 additions & 0 deletions pkgs/lab/book/platform/build-servers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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](https://github.com/developing-today/code/pull/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](github-actions.md)).
- **Actions-exec sessions** (#13774) and the **compile
coordinator design**
([#13765](https://github.com/developing-today/code/issues/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](nix-caches.md)).

## 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](automation-and-scaling.md).

## Sources

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