From missing flashing details to incomplete roof venting, understanding how things go wrong is the first step to getting them right.