City lawmakers in Brazil have approved an ordinance that, unbeknownst to them, was drafted by artificial intelligence—sparking further debate about the place of AI in lawmaking.