First, prepare the beans. Soak the kidney beans in 4 cups (960 ml) / 1 liter of water for at least 8 hours or overnight. For a quick soak, boil the beans in 3 cups / 710 ml of water for 2 minutes, then remove from heat and let them soak, covered, for 1 hour.
Drain the soaked beans, reserving the soaking water.
Add enough fresh water to the reserved liquid to make 6 cups (1440 ml) / 1.5 liters.
In a large saucepan, combine the beans, water, cassia/bay leaf, turmeric, cayenne, and butter.
Bring to a boil, then cover and simmer on low for 1½–3 hours, until tender. (For a pressure cooker, use 5 cups / 1200 ml / 1.25 liters of water and cook for 25-30 minutes).
Once cooked, mash ¾ cup / 180 ml (6.1 fl oz) of the beans into a purée. If the remaining cooking liquid is thin, remove the whole beans with a slotted spoon and boil the liquid until it reduces to about 1½ cups / 360 ml. (12.2 fl oz)
Set the beans and liquid aside.
While the beans cook, prepare the spice blend.
Combine the coriander, cumin, fennel, and ajwain seeds in a spice grinder or mortar and pestle and grind to a fine powder.
Create the ginger-spice paste.
Blend the minced ginger with ½ cup / 120 ml (4.1 fl oz) of water until smooth.
Pour this into a bowl with the freshly ground spice powder, garam masala, turmeric, salt, and lemon juice.
Stir until it resembles thin cream, adding a little more water if needed.
In a large casserole or heavy-bottomed pan, heat 5 tablespoons / 75 ml (2.5 fl oz) of ghee or oil over moderate heat. Carefully add the panir cubes and pan-fry, turning occasionally, for 5–7 minutes until golden brown on all sides.
Remove the browned panir and set aside.
In the same pan, pour in the ginger-spice paste and stir-fry for 1–2 minutes until fragrant.
Add the diced tomatoes and cook for about 8 minutes, stirring frequently, until the tomatoes break down into a thick paste and the oil begins to separate from the masala.
Add the whole cooked beans, the mashed bean purée, the fried panir cubes, and the reserved 1½ cups / 360 ml (12.2 fl oz) of cooking liquid to the pan.
Stir everything together, reduce the heat to low, and simmer gently for 15 minutes to allow the flavors to meld.
Just before serving, stir in the final tablespoon of ghee or butter and the chopped fresh coriander or parsley.
Serve hot with rice or your favorite Indian bread.