Beat the butter and sugar until pale and smooth. Beat in the egg yolk and vanilla.
Whisk the flour, cornstarch, salt, and the finely minced rosemary; mix into the butter mixture on low just until a dough forms — the rosemary goes in with the dry ingredients so it disperses through the whole crumb. Cover and chill 30 minutes.
Heat the oven to 350°F (175°C). Roll the dough into 1-inch balls and roll each ball in the cornmeal to coat.
Place 2 inches apart on parchment-lined sheets. Press a deep well into each ball with a thumb or the round end of a wooden spoon. If a ball cracks, pinch it closed.
Bake EMPTY 14–16 minutes, until the edges are set and faintly golden and the well holds its shape.
Cool on the pan 10 minutes. If any well has puffed up in the bake, press it gently back down while the cookies are still warm.
Fill each well with 1 teaspoon of the Blackberry & Rosemary Jam and let the jam settle at room temperature.
Glaze. Whisk the powdered sugar, lemon juice, and vanilla to a thin, drizzling consistency and drizzle over the filled cookies. Let the glaze set before stacking or boxing.