Mix the chai spice: stir together the cinnamon, ginger, cardamom, and cloves in a small jar. You'll use 2 teaspoons in the apples and 1½ teaspoons in the chai sugar — the rest keeps for coffee, oatmeal, or the next cake.
Brown the butter: melt the 1½ cups butter in a light-colored saucepan over medium heat, swirling, until it foams and turns golden brown and nutty. Pour into a large mixing bowl, scraping in all the brown bits.
Let the brown butter cool 10 minutes. Heat the oven to 350°F (325°F for a glass pan) and line a 9×13 pan with a parchment sling.
Make the dough: whisk the flour, both sugars, baking powder, and salt in a separate bowl. Add to the brown butter with the vanilla and stir with a fork until thick and sandy. Squeeze a handful — if it holds together, stop mixing. If it falls apart, add milk or cream one tablespoon at a time until it holds.
Reserve the topping: set aside 1½ cups of dough, squeeze it into a tight block, and leave it on the counter to firm up (or freeze 15 minutes if your kitchen is warm). Press the rest firmly and evenly into the pan with the bottom of a measuring cup.
Par-bake the base 15 minutes (about 20 in glass), until set and just golden at the edges.
While the base bakes, peel, core, and slice the apples ¼ inch thick.
Sauté the apples: melt the 1 tablespoon butter in a large, wide skillet over medium-high heat. Add the apples, the ⅓ cup brown sugar, and 2 teaspoons of the chai spice. Cook, stirring, until the edges are golden and the slices just start to soften — don't cook them to mush.
Stir in the cornstarch and lemon juice and cook 1 minute more, until the juices turn glossy and thick. Let cool a few minutes.
Spread the apples over the par-baked base and pack them into an even layer.
Grate the reserved dough over the apples on the coarse side of a box grater, spreading the shreds loosely — don't pack them down. If it crumbles instead of shredding, just scatter small pieces.
Bake 40–45 minutes in metal (45–50 in glass). Start checking at 30 minutes; if the top is golden before the edges bubble, lay foil loosely over it. It's done when the top is evenly golden and the juices bubble at the edges.
Cool completely — at least 3 hours, ideally overnight, loosely covered at room temperature. Lift out with the parchment sling and cut into squares with a sharp knife, wiping it between cuts.
Whisk the powdered sugar with 1½ teaspoons chai spice and sift over the top right before serving.