If you open it and there's a sour fermented smell, it's been in there too long.
Four days sounds fine to me, in my house I would have had it for breakfast the next day.
overcook it a bit in the microwave with a bit of extra water and sniff it before you throw it in your head. The best thing about pasta is that it is cheap. Make more if you have to!