Ok, I've attached a patch with more assertions. Also, can you try with a clean checkout of next and see if the problem still occurs?
Attachment: 0001-more-id-assertions.patch Description: Binary data