Social and ecological regulation of a decision-making circuit.