Skip to content

v1 Archive

Pummelchen edited this page Sep 13, 2026 · 2 revisions

v1 Archive

The previous implementation was retired on 2026-08-23 before this redesign began. It is preserved in full and remains checkoutable.

Reference What it is
v1-retired Annotated tag at the final v1 commit 47458eb
archive/v1 Branch pinned to the same commit, for browsing on GitHub
git checkout v1-retired

Nothing was removed from history. The retirement commit removed 126 files from main only; the full tree, the design contracts and the tracked DuckDB snapshot are all reachable from the tag. The pages of this wiki that documented v1 are likewise recoverable from the wiki's own git history.

What v1 was

An AI-assisted release and operations platform for a large modded Minecraft environment across Debian servers and macOS clients:

  • Three Swift 6.2 packages — server, client, shared — totalling roughly 28,000 lines.
  • DuckDB as the sole database, embedded through a C shim.
  • Caddy as the public HTTPS edge with per-version reverse proxying.
  • systemd units isolating each Minecraft version on its own loopback port.
  • Mod discovery and dependency resolution against Modrinth and CurseForge.
  • Immutable releases with checksum-verified sync manifests.
  • macOS DMG builds gated behind a headless client soak test.
  • Client synchronization, self-update, and guarded server administration.

It was verified green at the retirement commit: Scripts/test-all.sh passed all four suites — shared, client, server (47 tests), and 8 Caddy edge tests.

Worth reading as prior art

Two documents encode operational rules that were learned rather than designed, and are cheaper to inherit than to rediscover:

  • Server App/Docs/contracts/PRODUCTION_CONTRACTS.md — release immutability, client sync manifest format, DMG acceptance gating, safe world-reset behaviour, mod-scan throttling and provider rules.
  • Server App/Docs/contracts/CLIENT_IDENTITY.md — per-client identity, token storage, transport authentication, rotation.

Read them as a record of hard-won constraints, not as a specification the new concept must satisfy. The new design deliberately does not carry v1's architecture forward.

Known issues in v1

Identified during the review that preceded retirement, and recorded so the redesign does not reintroduce them:

  • Contract contradicted implementation. CLIENT_IDENTITY.md declared "no unauthenticated client write APIs" as a non-goal, but POST /api/v1/control/events and POST /api/v1/control/acks validated only the payload and client ID, with no bearer check — while every /api/v1/clients/* handler did enforce one.
  • Stale paths in documentation. Docs referred to /opt/pummelchen-swift/runtime; the shipped systemd units used /var/minecraft/<version>/runtime.
  • A migration entrypoint that did not resolve. Server App/Database/duckdb/schema.sql referenced database/duckdb/migrations/…, a path that did not exist from the repository root.
  • A 2,717-line file held the router and all 24 API handlers.
  • No CI. The test suite existed and passed, but nothing ran it automatically.
  • Missing site page. 26.3 was a fully configured version with its own systemd unit and Caddy route, but had no corresponding page on the website.

Lessons carried into v2

  • Keep documentation and implementation reconciled, or stop writing the documentation. A contract that contradicts the code is worse than no contract.
  • Do not put transactional state in an analytical database.
  • Global resources need a single arbiter. v1 had no shared scheduler because it never needed one; v2 does, and cannot work without it.
  • Automatic retention is not housekeeping. On a small host it is uptime.

Clone this wiki locally