Yeah, I know they're allowed to make repairs, the most common things are small scuffs and dings that happen in dealer parking lots. It's too much to expect that they can guarantee that cars have never had a door ding before they're sold new as long as they fix it properly. A lot of cars that come in from Europe get damaged at port. It's a big enough deal that BMW has an entire service center at their California port location to rework cars that get damaged in transit. However a lot of those cars end up becoming dealer demo units, loaners, etc. Also as you say it varies by state what they are able to do.