Grid cells as meta data mapping

I believe you are asking about the H of HTM.
I think that the grid part is the signaling between higher-level “hubs” and yes - there is generalization there.

I offer my thoughts on this here

and here