Light rail near-miss under investigation