I agree with you, this seems like an old oversight, let's fix the
documentation.
Please open a MR, this makes it easier and more focused to talk.
https://api.kde.org/frameworks/kconfig/html/classKConfigGroup.html#afbfe3ee19f420919fae415b2a7488c2d
KConfigGroup::name also precise that is the root
The documentation for KRecentFilesAction::saveEntries says "You can
provide the name of the group used to load the entries. If the groupname
is empty, entries are saved to a group called 'RecentFiles'".
And in the code it checks if name is empty `(cg.name().isEmpty()) { ...
}`, but `cg.name()`