In a small bowl, beat egg yolks and Pecorino Romano together with a fork until they form a thick paste. Season with black pepper. Set aside.
In a large skillet, cook pancetta, sausage (pinch off 3/4- to 1-inch pieces), and onions over medium-low heat, stirring occasionally, until golden brown, about 15 minutes.
Season lightly with salt, add pepper flakes (if using), and bloom in rendered fat until aromatic, about 30 seconds.
Add tomato passata, season lightly with salt, and bring to a simmer. Cook, stirring occasionally, until the sauce has thickened slightly and the fat has emulsified into the sauce, about 10 minutes.
In a pot of salted boiling water, cook pasta until al dente
Using a spider skimmer, transfer pasta to the sauce, along with 1/2 cup pasta cooking water. Transfer an additional 1/4 cup pasta cooking water to the bowl with the reserved egg yolk-Pecorino Romano paste, and stir until well-combined; set aside. (If you don't have a skimmer, reserve about 2 cups of pasta water.)
Remove skillet from heat, add egg yolk mixture, and stir until fully incorporated and pasta is glossy. Season with salt and pepper to taste. Serve immediately,