Roughly chop the mushrooms, carrot and eggplant and transfer them in batches in a food processor. Process until finely chopped but not mushy. You can also finely chop them by hand or grate them through the coarse side of a grater.
Heat a large pot over high heat, add the olive oil and the chopped vegetables and cook until all the juices evaporate, stirring frequently. Then cook some more, stirring constantly, until well browned, caramelized and fragrant.
Add the onion, cinnamon stick, bay leaves, cumin, salt and pepper and cook for 1 minute.Add the garlic and cook for another one minute.
Add the wine, pureed tomatoes, raisins (or plums) and tahini, let it come to a boil, reduce heat and let it simmer until reduced and thickened, about 20 minutes.
Add the walnuts and lentils and cook for 20 more minutes (add a splash of water during cooking, if needed).
Serve over pasta. Eat!
Notes
For one full cup of cooked lentils, you'll need about half a cup dried lentils. Boil them while preparing the vegetables to save time. For serving, I like to mix some sauce with the pasta, and then top with some extra.