The gear cable was hanging by three strands
The rear shifting had gone vague - not broken, just reluctant, especially two gears in the middle of the cassette. I blamed the derailleur, then the chain, then the shifter. The actual culprit cost almost nothing and was hiding inside the cable housing.
Finding it
Pulled the inner cable out and found it frayed to three strands where it exits the frame stop, sawing itself apart one ride at a time. From outside: nothing. The housing looked fine, the cable ends looked fine.
The lesson, logged
Cables are consumables. The log now says: replace inners every spring whether they look tired or not, and any time shifting goes vague, the cable is suspect number one - before the expensive parts get blamed.
New cable, new housing for the rear loop, and the shifting is as crisp as the bike has ever had. Fifteen minutes and small money, against a roadside failure that was perhaps a week away.