Skip to content
André Borchert edited this page Sep 18, 2026 · 25 revisions

Minecraft

A mod release and conflict-validation system for three NeoForge Minecraft servers, built as one Swift engine behind Caddy.

Status: design stage. Nothing described in this wiki is implemented. These pages record the intended architecture and the reasoning behind it, so the decisions are reviewable before any code is written. Where a decision is still open it is marked as such rather than presented as settled.

The problem this solves

Three Minecraft versions — 26.1, 26.2 and 26.3 — each run NeoForge with roughly 300 mods, and each carries a different collection because mods do not all support every version.

That much is bookkeeping. The real difficulty is that mods individually compatible with a server version are frequently incompatible with each other. A pair boots fine until a third mod joins them; a mixin collides; two mods claim the same registry ID. Mod metadata predicts only a fraction of this, so the only trustworthy verdict comes from booting a server with that exact set of files.

No mod set reaches a live server until a throwaway session has proven it boots clean.

Six ideas the design rests on

The mod set is the unit, not the mod. A mod is never validated alone — it is validated as part of a set. The exact file list is hashed into a modset digest that behaves like a lockfile, and verdicts, deployments and rollbacks all attach to that digest. See Modset Model.

Localize failures by bisecting the change. The last validated set is proven good and you typically change six mods, not three hundred. Delta-debugging the change finds the culprit in two or three parallel rounds. See Bisection.

Conflicts are remembered. Every proven incompatibility becomes a permanent edge in a conflict graph and never costs another boot. See Conflict Testing.

A Minecraft version is data, never code. No version string appears in source, configuration, a systemd unit, a Caddy route or the website. Adding 26.4 is one command and a row, not an engineering project. See Adding a Version.

Adding a mod is safe; removing one can destroy a world. Once a mod's blocks exist in a world, taking the mod away can turn them into air and delete the items from every chest. Changes are classified and gated accordingly, and every change goes through a plan before it is applied. See Change Safety.

Players get a modpack, not a client app. An .mrpack per version, generated from the same modset and filtered by each mod's declared side, imports into every launcher on every platform. v1's bespoke macOS client was its largest maintenance burden and none of it needs to exist. See Client Parity.

Pages

Page Contents
Architecture Shape, components, filesystem layout
Engine The Swift process, dependencies, command surface, API
Adding a Version How a new Minecraft version arrives
Modset Model Digests, content store, conflict graph, configs, state machine
Change Safety Plan and apply, destructive removals, world protection
State Database SQLite in WAL mode: configuration, contents, backup
Conflict Testing Detection tiers and session lifecycle
Bisection Fault localization and its cost model
Supply Chain Pinning, re-verification, archival, and where trust actually rests
Client Parity Generating modpacks instead of maintaining a client
Sheet Contract Google Sheets column ownership
Edge and TLS The master Caddy edge, HTTP/3, and certificates. Built.
Website Pages, API, honest latency measurement
Deployment and Rollback The live gate and recovery
Build Order Why the phases run in this order, and what never to build. The checklist itself is PLAN.md
Project Tracker The one table of open work
Decision Record Settled decisions, so they are not relitigated
v1 Archive The retired implementation and what to keep from it

Settled

Decision Choice
Language Swift 6.3.3, one engine process for all versions and the website
Web server One master Caddy owning 80 and 443 for the host, routing by hostname to each project's own server. Live.
Public address https://minecraft.91.99.176.243.nip.io — no port, certificate automatic
Concurrency All three servers run continuously; tests are additional short-lived servers
Conflict test depth Boot plus idle soak — reach Done (…)!, clean logs, hold several minutes
Mod version resolution Pin exact files; update only on explicit request
Deploy authorization Staging deploys itself; the live version waits for approval
Live role A column in the version table, moved by version promote
Unit of validation The modset, not the individual mod
State store Local SQLite in WAL mode via GRDB — not DuckDB

Live

The master edge is deployed and serving https://minecraft.91.99.176.243.nip.io over HTTP/3 with an automatic Let's Encrypt certificate. Everything else on this wiki is still design.

Clone this wiki locally