From the shiurim of Rabbi Elchanan Peretz shlita on monetary law, damages and the laws of robbery
Even though lestim opened the gate of the pen, if the animal’s owner was in his house and saw the lestim’s act in real time, and it was in his power to shout, to summon neighbors, or to drive the animal back, and he did not do so – the animal’s owner is liable for the damages!
The answers were compiled from the shiurim of Rabbi Elchanan Peretz shlita and from rulings he received from HaGaon Rabbi Chaim Pinchas Scheinberg zt”l and from leading poskim, and are for study purposes only. One may not rely on what is stated here for practical halachic ruling; for a personal question, one should consult a rav or a Beit Horaah.