def consensus_decision(consensus):
    """ Given a consensus dict, return list of candidates to delete/archive.
    """

    delete = []
    archive = []
    for k, v in consensus.items():
        tags = v['tags']
        if 'delete' in tags or 'rfi' in tags:
            delete.append(k)
        elif 'archive' in tags or 'astrophysical' in tags or 'notify' in tags:
            archive.append(k)

    return delete, archive