Up to a week. Put it away as soon as you can after cooking, keep it in a tight container, and don't open it unless you have to. Smell it when you take it out and examine it for discoloration. It may...
I would think most people would wrap and place the cooked ribs in the fridge before going to bed which means they will still be edible for a few days. If there has been a party and sleep was more...