Parent-process identity check used by the launcher-IPC connection
guard in main.rs. Returns true when the hostβs parent process is
the AgentMux launcher.
Initialize tracing with dual output: rolling daily log file + human-readable stderr.
log_dir is resolved by the caller: <portable-root>/data/logs/ in portable mode,
~/.agentmux/logs/ in installed mode.
Returns a guard that must be held for the lifetime of the process to ensure log flushing.
Suppress the Windows βApplication Errorβ / WER crash dialog so an unhandled
fault (a Chromium LOG(FATAL), an abort(), a breakpoint) terminates the
process immediately instead of wedging it behind a modal the user must
dismiss. While that dialog is up the process is frozen and cannot be
auto-recovered. No-op off Windows. Spec:
docs/specs/SPEC_SERVICE_SUPERVISION_AND_RECOVERY_2026_05_20.md.