Stopping dev.mjs sent SIGTERM to each service and moved on, so a slow
service, or anything a service spawned (run workers, Next.js workers),
outlived it once the supervisor killed dev.mjs after 20 seconds. The
next start then found the old API answering and reused it: a rebuild
kept running old code.
- Each service runs in its own process group. Stopping signals the
group, waits up to 10 seconds, then kills what remains.
- Under the LaunchAgent supervisor, a service already answering is
refused instead of adopted (WF_LOCAL_REUSE_SERVICES=false).
- npm test, and so CI, now runs scripts/*.test.mjs. The POC check test
that needs the Mac's Homebrew toolchain skips where there is none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>