title_body: 16yr od bags for beans from pantry!
upvoted_answer: Raw green coffee has a shelf life of about one year. Roasted beans last from a few days up to a year depending on how packaged; ground coffee even less than that. (source)
  Based on that, the probability of B is practically zero, so I wouldn't risk finding out about A! (Seriously though, if the beans are at all mouldy, don't use them.)