In Yahoo Fantasy Football, a player's position eligibility is based on past participation and on information that Yahoo's data provider collects from NFL teams. Yahoo's help page on position eligibility says that "Position eligibility is determined by a player's past participation and info our data provider collects from NFL teams."
Who makes the call
The same page says that "Our data provider makes the final decision (there's no set criteria) on position eligibility, including when a new position is added." The page does not describe any fixed criteria that would let a reader predict a change in eligibility.
What happens when a primary position changes
The page covers one case in detail. It says that "If it's determined that a player's primary position has changed, then that player gains eligibility for the new position but won't lose their original designation." A player whose primary position changes is therefore eligible at both the old and the new position.