Chop the dates (remove the pits if they have them) and dark chocolate, set aside.
Blend one cup of the oats in a coffee grinder, blender, or small food processor until you reach a flour consistency.
Once blended, add the oat flour to a medium bowl. Add the remaining whole oats, brown rice flour, desiccated coconut, coconut sugar, cinnamon, baking soda, and sea salt then mix.
Add the dates and stir to coat – this should help avoid the dates from clumping together. Add the chocolate, followed by the tapioca, mix again, then set aside.
Mix the flax egg then set aside.
In a saucepan, melt the coconut oil and ghee over low heat. Once melted, remove from heat and let it cool for a few minutes. Add the maple syrup, sourdough discard, and vanilla, then mix. Pour this mixture into the dry ingredients and give it a good stir. Everything should be well combined.
Fold in the flax egg – a few folds is plenty, do not over mix this.
Place in the fridge for 15-20 minutes to let everything infuse together. While they’re in the fridge, preheat the oven to 375F and line a large tray with parchment paper.
After the time has elapsed, shape the cookies into your preferred size *see consideration #1. Top with flaky sea salt and place in the oven and bake for about 10 minutes. Check on them and see if they need another minute or two. Bake until golden brown and not completely firm – they’ll continue to cook for a few minutes after baking.