It's silly until you realize how similar they are to the weird kludges we apply when we need to get deterministic behavior out of humans. Airline pilots have a number of "skill files" (although they call them checklists) which they open and use on an as-needed basis, and are trained to respect a number of "hook" conditions when specific actions must be immediately performed.