Using a compass on the top of a lodestone at y=255 DOES set the compass to the lodestone, but it doesn't play the setting sound like it should.
MC-11211 Unable to perform many right click actions when targeting the top face of blocks placed at y=255
MC-177561 Compasses used on the top of lodestone at y=255 do not break when the lodestone is destroyed