c5884d6a97
Original draft assumed `brew install lua luasocket` works. It doesn't: luasocket isn't a brew formula (install via luarocks), and default `lua` is 5.5 while the rest of the fleet is on 5.4. Fix tested on riemann (Intel Mac, macOS 14.8.3): - Pin to lua@5.4 (keg-only brew formula) — matches fleet library paths. - Install luasocket via luarocks into the user-local rocks tree. - Source brew shellenv ourselves so non-login bash shells can find brew. - Bake LUA_PATH / LUA_CPATH into the LaunchAgent plist so the service resolves `require 'socket'` from ~/.luarocks/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>