Make the cookie dough by mixing together the brown sugar, granulated sugar, melted butter, eggs, and vanilla.
Add the baking powder, baking soda, salt, cinnamon, nutmeg, allspice, and cloves, then mix in the all-purpose flour.
Scoop the dough into balls, place on a baking sheet, and freeze for 30 minutes.
Make the crumble topping by mixing together the melted butter, brown sugar, all-purpose flour, vanilla, cinnamon, and a pinch of salt. Bake at 350°F for 15 minutes until lightly toasted.
Make the apple pie filling by cooking the diced apples with butter, brown sugar, cinnamon, nutmeg, cloves, lemon juice, and vanilla until caramelized. Thicken with a cornstarch slurry.
Bake the cookie dough balls at 365°F for 10-15 minutes until lightly golden.
Indent the centers of the baked cookies with the back of a spoon, then fill with the apple pie filling.
Top the filled cookies with the crumble topping and a drizzle of caramel sauce.
