The clock starts when the roast ends
Nobody writes this page, which is odd, because it decides whether the work you put into the roast survives the week.
Roasting does three things that all make a nut easier to spoil. It drives off the moisture that was part of the kernel's structure. It thins the fat so oil migrates to the surface, where air can reach it. And it heats that fat, which accelerates the oxidation reaction and leaves it running faster than it was before. From the moment the roast ends, oxygen is working on exposed oil at a rate set by temperature, light and time.
Which is why roasted nuts keep considerably worse than raw ones. A raw nut holds its oil inside intact cell structure at ambient temperature. As a working assumption, treat roasted nuts at room temperature as a matter of weeks rather than months, with oilier nuts at the short end of that, and treat raw stock kept cool as lasting far longer. Nobody can give you a guaranteed number, because it depends on the nut, the roast level, the crop and where you keep them — but the direction is never in doubt.
What rancid actually tastes and smells like
This is the useful part, because rancidity does not announce itself the way spoiled food does. There is no mould, no slime, no obvious wrongness. People eat mildly rancid nuts all the time, do not identify what they are tasting, and quietly conclude they do not much care for nuts.
What you are looking for:
- Old paint, putty, or linseed oil. The classic note, and the most reliable. It smells like the inside of a paint tin rather than like food.
- Crayon or candle wax. A related smell, common in almonds and cashews.
- Cardboard and dust. The flat, stale end of it, where nothing is offensive and nothing is there.
- A sharp, thin bitterness at the back of the throat that arrives after you swallow and lingers. This is often the first thing people notice without knowing why.
- A faintly fishy note, which turns up in walnuts more than anything else.
To test a batch properly, pour a small handful into a warm cupped hand, hold it for a few seconds and then smell it — warmth releases the volatile compounds. Better still, crush two or three and smell the broken surfaces. A fresh roasted nut smells sweet, toasty and faintly of its own oil. A rancid one smells like a hardware shop. Once you have identified it deliberately a couple of times, you will never miss it again.