In the bowl of a stand mixer (or with a hand mixer), cream the softened butter with both sugars for a few minutes, until the mixture looks light and fluffy. Scrape down the sides of the bowl as needed so everything gets well incorporated.
Add the eggs one at a time, mixing well between each addition. Then pour in the vanilla and your sourdough discard, and mix just until everything comes together.
In a separate bowl, whisk together the oats, flour, baking soda, baking powder, cinnamon, and salt.
Now, add the dry ingredients to the wet about ⅓ at a time. Mix until just combined—you don’t want to overwork the dough.
Then, fold in the raisins by hand with a silicone spatula to make sure they’re evenly distributed.
Cover the the dough and pop it in the fridge for at least 8 hours, but up to 3 days. This longer ferment gives the cookies more depth of flavor and easier digestibility.
After the fermentation process, preheat your oven to 350°F and line a baking sheet with parchment paper.
Scoop the dough onto your prepared baking sheet, leaving a bit of space between each cookie. I usually go with heaping tablespoon-sized scoops. Use a cookie scoop for perfectly portioned cookies.
Bake for about 10 minutes, or until the edges start turning golden brown. (baking time can vary from oven to oven, so it's best to keep an eye on them until you find the perfect bake time for your oven.) They’ll continue to firm up a bit as they cool.
Store the cookies in an airtight container at room temperature for 3 days for optimal freshness.