that's the result of quest knowledge. an ambush should be a surprise attack, even for us, but theres very little randomization. nothing you can do about that unless you role play the quest.
I agree that there should a risk of failure, but failure is part of a learning process. if you fail you should be thinking about what you could have done differently to succeed. than try a different strategy.