Exactly what happened to me, but lasted 6 months. If the middle of the contract hadn't fallen over the US holiday season, when everyone kind of went into a holding pattern because some industries are just that way, it's entirely possible the contract would have been just 3 months.
The organization, at some level, clearly never wanted me to solve the issues I was supposedly brought in to address, but give them cover to say they hired help. After some reflection, I'm starting to think the project was never really expected to succeed in any significant way. The company claimed they were trying to build an in-house replacement for a third party system the vendor no longer supported, but it's possible they just wanted a stop-gap while they found another turn-key vendor. The interim system didn't have to be all that good, it just had to have enough structural integrity to carry the organization over the gap.
I thought of that and tried to reflect myself but in the end I couldn't decipher their motivation. It was either (1) I solved a big problem they wanted quicker than they thought and they had no idea what to do with me after, or (2) they lied to me that I did well, concluded I am no good and funneled me to a team where I was managed like an intern.
No clue either way but it was not okay to not communicate. It seems they still needed the manpower so they figured they will not say anything at all and hope that I will stay. Well, it didn't work for them. I was happy to leave, lol.
And sorry it happened to you as well. The motivations of companies when hiring are still foreign to me and I have to catch up there and learn a lot because I hate being blindsided like that.
The organization, at some level, clearly never wanted me to solve the issues I was supposedly brought in to address, but give them cover to say they hired help. After some reflection, I'm starting to think the project was never really expected to succeed in any significant way. The company claimed they were trying to build an in-house replacement for a third party system the vendor no longer supported, but it's possible they just wanted a stop-gap while they found another turn-key vendor. The interim system didn't have to be all that good, it just had to have enough structural integrity to carry the organization over the gap.