tgt_agent_check_active
while (next_orb && tgt_agent_check_active(agent)) {
if (tgt_agent_check_active(agent) && !doorbell) {