Cook the pasta in boiling salted water for about 8 minutes, then drain. In the meantime wash the tomatoes. Clean the mushrooms and tomatoes. Peel and halve the shallots. Peel garlic and press it through a garlic press.
Strip rosemary needles from the stem. Melt the sugar in a pan until golden brown. Add garlic and bay leaf. Deglaze with vinegar and 200 ml water. Cook the mushrooms and shallots for about 10 minutes.
Season with salt, pepper and rosemary. Toss the pasta and tomatoes briefly in the hot stock. Serve still warm or cold garnished with fresh herbs.