pub fn check_open(store: &Store, def: &AgentDefinition) -> Result<(), String>Expand description
check for an agent being opened, in open_folder, with the refusal marked OPEN_REFUSAL_CODE. A container
agent is not refused here: it is asked when its own folders are saved.