The issue is regulators write regulations for one thing, but want a subtly different thing.
If you and I start a game of poker, but rather than winning through skill, I call the FBI and get them to search all your cards, have I broken the rules of poker? It wasn't a written rule not to call the FBI...
Regulators across the world have similar gaps in the rules, and both humans and automated design tools will start to exploit them, possibly unknowingly. Instead they need to make far more watertight rules. They should simply require all cars to measure their own emissions, and bill the companies for any cars which either mis-measure emissions, or measure more emissions in their lifetime than an allowed limit. Then manufacturers will have an incentive to upgrade cars in the field.