Heat the oven to 400°F (200°C). Lightly grease a 24-cup mini muffin pan.
Unfold the cold pastry and cut it into 24 equal squares. Press one square gently into each muffin cup.
Add one cube of Brie, about 1 teaspoon cranberry sauce, and a small pinch of pecans to every cup. Keep the filling below the pastry rim.
Brush exposed pastry edges with egg wash. Bake for 14 to 17 minutes, until deeply golden and puffed.
Cool in the pan for 5 minutes. Lift out carefully, then finish with rosemary and a tiny pinch of flaky salt.