Phin Tech docs Rabbit Ears Manager in the store →

Plan: retire the Swift servers on main

Written 2026-11-03. Background: ADR 0005, CUTOVER.md, mcp.md.

Where it stands #

The Go tower (tower/) runs luigi's station and every device works against it. The Swift tower, the control room and the Mac "AntennaTower" helper still sit in the tree, and the Manager still links their libraries and hosts its own MCP assistant. The decision (ADR 0005) is no Swift/Go hybrid, so they go.

What goes, what stays #

Goes Why
Packages/Station targets StationServer, StationJobs, executables antenna-tower-server, control-room The Go tower does all of it
Packages/RetroRelay target RelayServer (Hummingbird) Go internal/relay
Packages/antenna-tower.Dockerfile, control-room.Dockerfile, deploy/docker-compose.yml tower/Dockerfile replaces them
project.yml AntennaTower Mac app target and Sources/AntennaTower The Mac runs the Go binary under launchd (tower/deploy)
Manager hosting: RelayHost, RemoteServer, in-process jobs, AssistantServer and friends The Manager is a client only

Stays: RelayAdmin, RelayKit, StationCore (including Remote), RetroLineup, RetroSports, all client code. They are the clients' side of the written interface.

Status #

Order #

Each step leaves main building and the Manager working.

  1. Port the assistant to the Go MCP server (this document's first half of work). Until the lineup tools exist in Go, deleting AssistantServer would lose them.
    • 1a. tower/internal/lineup: the dial as a pure function of the synced settings (channelNumbers, channelNames, hiddenChannels, offDialChannels, savedChannels, iptvLineup, channelGroups) plus the built-in channels. Reuses internal/iptv, internal/ledger and the DialNumbers rules (merge, settle, numbering, moving, releasing).
    • 1b. Settings-only tools: list_channels, get_channel, remove_channel, restore_channel, renumber_channel, rename_channel, release_number, list_groups, add_group, set_group, set_on_dial, set_feeds, set_entries, set_preferred_login, merge_channels, set_buffer.
    • 1c. Tools needing catalogs and the network: search_channels, add_channel, add_feed, add_stream_url, find_feeds, sync_catalogs, reload_lineup, test_stream (an HLS fetch: manifest, first segment, ffprobe-free), audit.
    • 1d. Health: get_errors, whats_playing, get_storage, clear_cache, get_diagnostics (Bonjour browse for Apple TVs, fetch the log).
  2. Manager talks to the tower. The 38 Manager files that import the server libraries move to RelayAdmin calls: hosting and handover go (the tower is the host); jobs run in the tower already (/v1/admin events, sports). Where a Manager view called a library directly, it calls the admin API.
  3. Delete the Swift server code, the Dockerfiles and compose file, the AntennaTower target, and fix project.yml, justfile, docs.
  4. Verify: xcodegen, Manager and TV builds, swift test in the remaining packages, go test -race ./... and the Swift-client conformance suite.

Verification of the port #

Decisions #