Preheat the oven according to the cake-mix directions, usually 350°F. Grease two 9-inch round cake pans. Line the bottoms with parchment-paper rounds and lightly grease the parchment.
Prepare the yellow cake mix according to the package directions, replacing the water with an equal amount of milk and the vegetable oil with an equal amount of melted butter. Add the eggs called for on the box plus 1 additional egg, the vanilla, and almond extract. Mix according to the package directions. Do not overmix.
Divide the batter evenly between the prepared pans. Bake according to the package directions, beginning to check around 22 minutes. The cakes are done when the centers spring back lightly when touched and a toothpick inserted near the center comes out clean or with a few moist crumbs.
Let the cakes cool in their pans for about 10 minutes. Carefully turn them onto wire racks, remove the parchment, and allow them to cool completely. Do not assemble while warm.
Whisk together the pudding mix, cold milk, vanilla, and a small pinch of kosher salt for about 2 minutes, until thickened.
In a separate bowl, beat the heavy whipping cream until medium-stiff peaks form. Gently fold the whipped cream into the pudding. Refrigerate until ready to assemble.
If the bottom cake layer has a pronounced dome, carefully trim just enough from the top to create a reasonably level surface. Leave the second layer intact if possible.
Place the first cake layer cut-side up on a cake plate. Spread the vanilla cream filling evenly over the cake, stopping about ½ inch from the edge. Place the second cake layer on top, preferably bottom-side up.
Refrigerate the assembled cake for 20–30 minutes to firm the filling before adding the chocolate.
Place the chocolate in a heatproof bowl. Combine the milk, butter, espresso powder, and salt in a small saucepan or microwave-safe measuring cup. Heat until steaming and hot but not vigorously boiling. Stir to dissolve the espresso powder.
Pour the hot milk mixture over the chocolate. Let stand undisturbed for 2–3 minutes, then stir gently until smooth and glossy. If too thick to pour, stir in additional warm milk 1 teaspoon at a time.
Let the ganache cool for 5–10 minutes, until slightly thickened but still pourable. Pour it onto the center of the chilled cake and gently spread toward the edges, allowing some chocolate to naturally drip down the sides.
Refrigerate the finished cake for at least 30 minutes before slicing. For the best texture, remove it from the refrigerator about 15–20 minutes before serving.