Reconfiguring regulatory institutions: learning from diplomacy and indirect reciprocity