Preheat the oven to 350° F (200°C). Grease four 10-ounce ramekins.
Heat the oil in a pot over medium heat. Add the onion, mushrooms, and sweet potatoes. Saute for 5 minutes. Add the chicken, salt, and pepper, and continue cooking for 5 more minutes.
Add the garlic, butter, and flour to the pot. Stir the flour into the mixture and cook for 1 minute.
Pour in the chicken broth and heavy cream. Stir until smooth. Remove from heat.
Roll out the puff pastry. Cut 4 large circles large enough to fit inside your ramekins and 4 smaller circles large enough to fit on top of the ramekins.
With a paring knife, cut out a jack-o-lantern face from the smaller rounds.
Place the larger rounds of dough inside the ramekins, with just a little dough above the rim of the dish.
Pour the chicken filling into each ramekin, filling about 3/4 of the way.
Place the smaller round of dough on top of the dish and press together the edges of the dough so they are sealed.
Beat the egg in a dish and add a few drops of water. Brush the egg wash onto the tops of the dough.
Bake for 40 minutes, until the tops of the pies are golden. Remove from the oven and let rest for 10 minutes. Remove the pies from their dishes to serve.