This adds guardrails to the index sending and receiving, to verify that what we thinks is happening is what actually happens.