fix(review-host): the App Store review host was 21 days stale; move it somewhere it can't be
Apple's reviewer signs into one always-on host. It had been running host-service 1.22.0 since 2026-08-14 while the app shipped 1.26.0, and seven procedures the mobile app calls did not exist on it:
github.getPullRequestDetail (1.23.0), the four PR actions, pullRequests.historyByWorkspaces, agentTooling.listSlashCommands (all 1.25.0).
Each 404s at runtime with no upgrade prompt, because MIN_HOST_SERVICE_VERSION is 1.21.0 and 1.22.0 clears it. The box was never unstable — it was stale, on infrastructure where fixing that by hand silently reverted, and nothing was watching.
Why it moved
A Fly machine resets its rootfs to the image on every restart. Only the volume survives, so an in-place update appears to work and reverts on the next boot — verified the hard way. A Fly host migration on 2026-09-02 did the same. The box could not be updated except by rebuilding the image, and nothing did.
It is now a persistent GCP VM (e2-standard-4, us-west1-b) with /opt/superset and /root/.superset on the boot disk. Proved by hard-resetting the instance: it came back unattended with the same identity, version and data.
Migrated as a takeover, not a new host. getHostId() is HMAC(salt, /etc/machine-id), and on the Fly image that file was empty — the ubuntu base never populates it and nothing there runs systemd — so the id is the HMAC of the empty string. Reproducing it needs an empty file, but systemd reads an empty machine-id as first boot and repopulates it, which would change the id on the next reboot and register a duplicate host the reviewer sees in a picker. The OS keeps a real machine-id; only host-service is shown an empty one via BindReadOnlyPaths. Same id, same v2_hosts row, nothing to clean up cloud-side.
Keeping it current
- Primary: a
release.publishedtrigger (this PR adds the trigger; the automation is separate). - Backstop:
self-update.shon a 6h systemd timer, reading the latestdesktop-v*release — thecli-v*tags are prereleases, so/releases/latestnever returns them. Hands toupdate.sh, which rolls back if the new build does not answer. Only moves forward. - Outside-in:
check.sh+ a Superset automation. It re-derives the host procedures the mobile app calls from the working tree and probes each against the live box — the check that would have caught 2026-08-17 the day it happened. It also verifies worktrees exist on disk (host.dbwill happily describe ones that do not — that is exactly what the migration produced) and that the workspace list still matches the App Store screenshots.
Also here
releasetrigger, all five actions. The GitHub App now subscribes to the Release webhook. The five action labels carry agithub release actioncontext: without it they collide with entries meaning something else —"Published"is a date column elsewhere, which ja renders 公開日, so the menu would have read "publication date". Six new strings, sixteen locales.- Mobile: fall back to Cloud scope when the org has no host. A cloud-only account lands on "Connect a device" and cannot leave — the saved scope defaults to
host, and the only way into Cloud is the scope filter, reached from the screen that was just replaced. - Drop the inert Electric idle-resume path. 102 lines gated on a metadata key nothing has emitted since Electric was removed.
Verification
Against the live host: version 1.26.0, all 31 procedures the app calls, relay presence online, seven workspaces each with a worktree on disk, demo set matching the screenshots. check.sh exits non-zero on a missing instance. update.sh completes a real swap keeping the host identity. Lint clean (7087 files), typecheck green on shared/desktop/trpc, 34 shared + 48 desktop tests, catalogs compile under --strict.
The Fly app is destroyed.
https://claude.ai/code/session_0126YNrKGh5P6h9a2S9j1YAj
Summary by cubic
The App Store review host had been silently running host-service 1.22.0 for 21 days while the app shipped 1.26.0, 404ing on seven procedures the mobile app calls. Moved it off Fly to a persistent GCP VM where updates survive restarts, added scripts to keep it current and notice when it isn't, and hardened them after review so failures are never reported as healthy.
Review host
- Fly reset the rootfs on every restart, so in-place updates silently reverted; the VM's boot disk doesn't.
- The migration is a takeover of the existing host identity, so the reviewer sees no duplicate.
self-update.shon a 6h timer upgrades host-service and rolls back if the new build doesn't answer or the relay can't see it;setup.shrefuses to downgrade.check.shprobes the live host for every procedure the app calls, verifies worktrees exist on disk, and matches the workspace list to the App Store screenshots — and now fails closed when a probe can't run.
Also here
- All five GitHub release actions are now automation triggers, translated in all sixteen locales.
- Cloud-only accounts fall back to Cloud scope when the org has no host instead of being stranded on "Connect a device".
- Dropped the inert Electric idle-resume wrapper and the
ELECTRIC_TASKS_ACCESSflag.
Summary by CodeRabbit
-
New Features
- Added GitHub automation triggers for published, created, edited, unpublished, and deleted releases.
- Added localized labels for GitHub release actions.
- Improved mobile workspace selection for organizations without connected machines by falling back to cloud workspaces.
-
Bug Fixes
- Corrected GitHub release event matching, including events without branch or label information.
- Improved review-host update reliability with version checks, rollback handling, and relay connectivity verification.
-
Documentation
- Added operational documentation, health checks, monitoring, and update procedures for the App Store review environment.
- Added guidance for rebuilding the review environment after releases.