Preheat the oven to 190°C fan.
Working in batches, put the first six ingredients into a food processor and pulse until everything is very finely chopped (or very finely chop everything by hand if you don’t have a food processor).
Put the chopped vegetables into a large, 36cm x 28cm non-stick high-sided baking tray with the oil, miso, harissa, tomato paste, soy sauce and cumin seeds and mix very well. Bake for 40 minutes, stirring halfway through, until browned around the edges and bubbling.
Reduce the heat to 180°C fan.
Add all the remaining ingredients to the tray, along with 150ml of water, ⅓ teaspoon of salt and a very generous grind of black pepper. Stir very well, scraping the crispy sides and bottom with a spatula. Cover tightly with foil and bake for another 40 minutes. Remove the foil and bake for a final 5 minutes. Set aside to rest for 15 minutes for the sauce to be absorbed a little before serving.