hmmm, I'm no expert but I would look towards a vacuum leak, possible around the intake gaskets. I'm just taking a guess seeing as it's a new engine that was running great when you got it. The front and rear of the intake is usually just RTV'd
Did this thing idle at or below 800 when you first got it? I think mine idles around 1000 and I may have less duration than yours...