e0abbc4d18
Add _pid_record_belongs_to_current_profile() helper that verifies a PID record's persisted hermes_home matches the current process. Use it in get_running_pid() and get_runtime_status_running_pid() so the default-profile gateway never mistakes another profile's gateway PID as its own. In _apply_profile_override(), clear HERMES_HOME instead of returning early when it points to a profile directory but no --profile flag was given, letting the sticky active_profile logic resolve the right one. In _guard_existing_gateway_process_conflict(), detect stale PID files from other profiles and emit a warning.