I would like to get a ZM 50mm f1.5 Sonnar lens. I want it optimized for focus at f1.5. I've read online (so it must be true 🙄) that early samples of the lens were optimized for f2.8, later samples optimized for f1.5. If this is true, has Zeiss released serial number ranges to differentiate one variation from the other?
It's not true. The Sonnar design has inherent focus shift. Zeiss has said repeatedly, and will patiently reiterate to anyone who takes the trouble to ask, that every single C-Sonnar 1,5/50 they made was "optimized" at f2.8. Period.
You can either shoot at 2.8 and know that the point you are focusing on will be in focus, or, if choosing to shoot at f1.5 and minimum focus distance, you can focus, then lean forward a bare 2cm, 1 inch, or so, and your subject's eyes, or whatever, will be in focus in the resulting print. Easy.
The confusion results from the fact that they did offer to "optimize" any lens after the fact for f1.5, if the owner so desired. So those modified lenses are now out there. They are not "later production", they have just been modified from their original production specs and their existence has taken on a life of its own in the Internet hive mind. If buying used, at this point, the only way to really know what you have is to test it on a Lens Align or something similar, then shoot it accordingly. As others have said, even if you don't have a clue which "version" you have, factory original, or modified to show no focus shift at f1.5, in the vast majority of shooting situations the inherent focus shift makes no appreciable difference at all, is only going to be noticeable at close to minimum focus distance, and being swamped by other aspects of our technique. If the only thing you ever shoot is a model's eyes in full frontal aspect, from 1 meter away, then it matters. Outside of those situations, you'll rarely ever find a situation where the focus shift has caused you to be "off", even if you don't account for it with your technique.
Those who want to continue to see all this as some sort of an insurmountable problem will continue to do so, I suspect.
Personally, I love the lens.