So, the entire party succeeds at a perception check leading to Tav saying "I smell a trap" yet the ambush that follows (wouldn't a successful perception check differentiate between a trap and an ambush?) catches the entire party unawares and they are surprised. How does this make ANY sense whatsoever?
context of which "ambush" you are talking about might be helpful...