ab0e1b860f
flyd mounts the local Machines API (flaps) socket at /.fly/api owned root:root 0755, but the gateway runs as the unprivileged hermes user. The scale-to-zero self-suspend (gateway/scale_to_zero.py suspend_self) therefore failed every attempt with EACCES and an opted-in machine could never sleep — fail-awake held, but the feature was inert. Verified live on staging 2026-08-20: repeated 'flaps suspend request failed: [Errno 13] Permission denied' until a manual chgrp/chmod on the socket, after which the same watcher tick suspended the machine cleanly (flaps 200 -> suspension/suspended). stage2 runs as root before the supervision tree starts: chgrp hermes + g+w on the socket when present. Minimal widening — the socket stays root-owned; no-op off Fly.