Rinse the octopus under cold water. Put it in a 5-quart / 4.7 L Dutch oven (about 26 cm / 10 inch wide) with the quartered onion, 1 bay leaf, and 1/2 cup / 120 ml water. Do not add salt. Cover, bring to a gentle simmer over medium-low heat, and cook for 50 minutes, until a paring knife slides into the thickest part of an arm with little resistance. If it resists, cover and cook 10 minutes more.
Lift the octopus to a cutting board. Strain the liquid through a fine-mesh strainer into a measuring cup, discard the onion and bay leaf, and add water until you have 3 1/2 cups / 830 ml. Pour it into a 2-quart / 1.9 L saucepan and keep it at a bare simmer. Cut the octopus into 1-inch / 2.5 cm pieces.
Wipe out the Dutch oven and heat the olive oil over medium heat. Add the chopped onion, the remaining bay leaf, and a pinch of salt. Cook for 6 minutes, stirring, until soft and translucent but not browned. Stir in the garlic for 1 minute, until fragrant.
Add the grated tomato and cook for 3 to 4 minutes, until most of its liquid has cooked off and it looks thick. Pour in the wine and simmer for 2 minutes, until the sharp smell of alcohol fades.
Stir in the rice and cook for 1 minute to coat the grains. Pour in the hot liquid, taste it, and add up to 1/2 tsp salt if needed, plus the pepper. Bring to a boil, reduce the heat to medium-low, and simmer uncovered for 12 minutes, stirring only now and then.
Stir in the octopus and cook 3 more minutes, until the rice is tender with a slight bite and the pot still looks soupy. Remove from the heat, stir in the cilantro, cover, and rest for 5 minutes. The rice will thicken to a loose, spoonable consistency. Stir in a splash of hot water if it sets too firmly.