b0acc558b1
Generalize the HERMES_S6_SUPERVISED_CHILD supervisor-marker mechanism so ANY supervised gateway launch (systemd, launchd, Windows Scheduled Task, external supervisor) skips the active_profile redirect in _apply_profile_override(). Previously only the s6 container marker was honored, so a systemd-launched default-profile gateway with HERMES_HOME=<root> followed the sticky active_profile file and silently assumed another profile's identity — logging under that profile's tree and connecting with its Telegram bot token (double-polling a token owned by that profile's own live gateway). - hermes_cli/main.py: honor HERMES_SUPERVISED_CHILD (new generalized marker), HERMES_S6_SUPERVISED_CHILD (back-compat), INVOCATION_ID (systemd; gateway commands only, since it leaks into every descendant of systemd-launched processes), and HERMES_GATEWAY_EXTERNAL_SUPERVISOR. - hermes_cli/gateway.py: export HERMES_SUPERVISED_CHILD=1 in generated systemd units (user + system) and the launchd plist. - hermes_cli/gateway_windows.py: export it from the Scheduled-Task cmd/vbs launchers and the windowless respawn env overlay. - hermes_cli/service_manager.py: export it alongside the s6 sentinel. - tests: regression coverage for all markers + non-gateway INVOCATION_ID neutrality + generated-unit marker presence. Fixes #74872