Each instance will first look for an object id within the shape. If that’s not present the search will continue up the hierarchy until one is found. So in this case the 3 spheres correctly get the object IDs 1, 2 and 3. So, that’s the intended behavior. From what I understand you want to have the spheres simultaneously have two object IDs ? So both render elements wouldn’t be black ?
Yep, that’s the expected behavior, each object can have only one object id currently. So the spheres get object IDs 1, 2 and 3, and the the group object id is ignored in this case. I’ll write this down as a feature request.