The reply-to ID references the target message ID, not the sequence number. Excluding public posts with a 0 reply-to ID, I verified that all of the board numbers of the replied-to post match the board number of the reply. I didn't follow exactly what the problem was that caused the question in the first place.