Last year, when Sora was 8sp, lots of manufacturers were selling Sora bikes 'upgraded' with a Tiagra rear mech, e.g. Spesh Allez, Trek 1000
The mech doesn't 'know' how many gears you have and the inner width of the chain in the same so they ride the same tooth-width jockey wheels