Yes, the dogs actions are your responsibility. I suggest you lock the gate and install an intercom system so visitors can contact you prior to entering and the dog can be locked away.
“lock the gate and install an intercom system so visitors can contact you prior to entering”
Agreed
the right way to go