Those are some good points. I consider "gone bad" to be moldy or otherwise unsafe to eat, but other people have higher stsndards.
I'd be happy to know the shelf life for any specific set of variables, but neither the 1+ years of ≤ 25 years people specify anything other than the generic "air tight" container and glass jars or ziplock or vacuum seal bag.
I think I'm going to find out the hard way. I'll post my results in a couple years (or decades?). 🙂