validate / repair ID references (HEAD+DEPS)
source consistency