(&mut self)
| 1498 | use rustc_hash::FxHashMap; |
| 1499 | |
| 1500 | // Older/fixed-count planners can leave block-empty shard records when the |
| 1501 | // requested count exceeds the realizable partition. Never persist those |
| 1502 | // leaves: omit them, contract the aggregation tree, and densely renumber |
| 1503 | // the survivors. The Lean consumer additionally prunes zero-*constant* |
| 1504 | // legacy leaves after validating them against the environment. |
| 1505 | let retained: Vec<&ShardInfo> = |