**This dough needs a 24 hour rest in the fridge. Prepare it the day before baking.
Set the butter and sugar in a small pot over medium low heat. Allow the butter to melt fully, then stir the mixture well to combine. Let cook until it bubbles, then give it about 60 seconds without stirring, then take it off the heat and transfer to a large bowl to fully cool.
Add the salt, vanilla and egg yolks and whisk well to combine, about 30 seconds. Whisk vigorously, until the mix becomes shiny and cohesive.
Add the sourdough starter (fed or unfed) and whisk to combine.
Measure in the flour, and baking soda. Stir until it’s half combined.
Chop up the chocolate (if using chocolate bars) into a mix of fine and big pieces. Add the chocolate to the bowl then stir until there are no more unmixed flour bits.
Cover the bowl with plastic wrap and set in the fridge. Chill for 24-48 hours.
An hour or two before baking, take the dough out to soften.
Preheat the oven to 350 F. Grease then line two baking sheets with parchment paper.
Scoop the cookie dough onto the pans so you have 2 tablespoons of dough per cookie, avoid baking more than 5-6 cookies per pan. The cookies will spread so leave a 2 inch border around each mound of dough.
Bake the cookies for 12 minutes, and at the 12 minute mark, lift the pan a few inches off the rack in the oven and then drop it. This will deflate the middles.
Bake another 2-3 minutes, until the edges are golden brown. When you take the cookies out of the oven, drop them on the counter so they deflate again.
The day of baking the cookies will have crispy edges and soft/chewy middles. Store leftovers in an airtight container. The next day the cookies will be chewy all over, they’ll keep for about 3 days.