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.

Ramiro Rosário, a councilman in the southern city of Porto Alegre, bragged on X, formerly Twitter, last week that he had concocted a proposal with the help of ChatGPT.