After a little more investigation: High D is played by lifting the left thumb entirely. When I do that, it plays D in whatever octave was associated with the most recent note.
That means that exactly the same fingering can produce any of several different notes, depending on what I was doing before that.