fn enforce_incremental_count<T>( root: &Path, _context: &'static str, count: usize, sample: &BTreeSet<T>, ) -> Result<(), CliError>where T: ToString + Ord,
Enforce one path/key count before incremental graph work expands further.