for sheep in flock: if sheep.elude(preadmission_checks): reveal(sub_rosa_info) else: continue; research(flock) until all_secrets_revealed; if compromised: return_to_square_one(destroy_all_evidence, leave_no_trace_behind)