The developers are usually aware of how the player can exploit some mechanincs, but speedrunners still manage to surprise them. Tim Schafer saw a speedrunner play Psachonauts and he said he felt very nervous, surprised and slightly disappointed in watching him skip everything he put a lot of effort into. He still appreciated his dedication, though.
.- -... -.-. -..