The intent of local identifiers (lid) is not obvious. It's defined but not used by the base spec. It's meant to be used by extensions. And maybe profiles. That should be clarified by adding a note in 7.2.1 Identification chapter.
See https://discuss.jsonapi.org/t/how-are-local-ids-supposed-to-be-used/2789/3 for context.