A filter to ensure multiroot content consistency