feat(compaction): support excluding fragments from planning (#8532)