A grant to the launcher reaches every process it is responsible for at
once, but a session started before the launcher was installed keeps the
old responsible process and its permissions. db-setup names such running
sessions (responsibility_get_pid_responsible_for_pid) so they can be let
finish or retried.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
macOS attributes a dispatched session's local-network connections (SSH to
the VMs) to the LaunchAgent's own program. With Homebrew's Python as that
program the Local Network grant did not hold (Allow helped only the
running process), so dispatcher restarts cut sessions off from the VMs.
Apple programs are exempt only with no non-Apple program (claude) between
them and the agent, so the system Python would not help either.
The dispatcher and the GitHub poller now run under "UTM Bot Agent", a
small ad-hoc signed app (no certificate needed) that spawns the real
command and waits, so it stays the responsible process. It is linked with
a random build UUID and registered with Launch Services before its first
run: macOS matches a blocked process to an app by that UUID, and two
launchers built alike would share it (no prompt, still blocked). It is
rebuilt only when its source or build recipe changes. Tested on macOS 27:
the grant holds across fresh launches.
db-setup and github-setup build it and, while the user is at the Mac, ask
for everything sessions need in a one-shot job under it: Local Network,
controlling UTM (its Info.plist carries the Apple Events usage string,
without which macOS refuses silently), Screen Recording, and UTM's
settings in its container. That last one has no dialog and its per-app
switch does not stick, so setup checks real read/write access (`defaults
export` reads an unreadable domain as empty), opens Full Disk Access and
shows the launcher in Finder. `db-setup --permissions` asks again.
load_agent retries bootstrap while a booted-out agent is still exiting.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
bin/gamesdb and scripts/gamesdb: the internal API through a kept-up SSH
tunnel, validated backups, and a dispatcher that runs the db skills in
unattended Claude Code sessions (usage limits, outages, blockers over
Remote Control and phone notifications, triage leases with heartbeats so
several Macs never take the same report). The db skills: setup, triage,
attachment summaries, moderation, and the Steam VM (baseline, installs,
gifts, cleanup). scripts/agentlib: session code shared with the GitHub
poller.
Co-Authored-By: Claude Opus 5.5 <[email protected]>