A checklist for when it’s time to quit a job, from the ethics chief who walked out under Trump