Latched doors do not automatically close if they are open when you try to latch them. Also, unlatching an unlocked latched door results in "You don't see any such thing." (Inform 7 v10.1.2)
I resolved the first with this:
Carry out an actor turning a door-latch which is part of something (called the parent door) (this is the carry out turning door-latches rule):
if the parent door is locked:
safely unlock parent door;
otherwise:
if the parent door is open:
say "(first closing [the noun])[command clarification break]";
safely close the parent door;
safely lock parent door.
I resolved the second with:
Understand "unlatch [an unlocked latched door]" as a mistake ("[The noun] is already unlatched.").
Latched doors do not automatically close if they are open when you try to latch them. Also, unlatching an unlocked latched door results in "You don't see any such thing." (Inform 7 v10.1.2)
I resolved the first with this:
I resolved the second with: