Let me put it this way, because people can mean different things with farming and it's better to include all:
If you normally play the game, all is good.
If you reach the same outcome with a different way, it probably is not.
You are supposed to earn PEN/XP by playing the game. AFK is not playing. Bots are not playing. If someone else plays your account, it's not you who's playing. So all these cases are problematic.
Did I miss anything?