During TSDB compaction, blocks originating from stale-series cleanup get merged together with regular (non-stale) blocks. When stale_series_compaction_threshold is enabled, this can advance the WAL-replay cutoff incorrectly, which has led to silent data loss and a crash loop on restart. Separately, when an out-of-order block gets merged with other blocks during compaction, the resulting merged block can lose its out-of-order status, which similarly causes the WAL-replay cutoff to be miscalculated.