In the US ID spot checks for pedestrians are unconstitutional. It should be obvious this should extend to nonpedestrian travel, otherwise the protections on travel are basically meaningless.
Doesn't stop states from implementing Stop and Frisk policies. Technically they can't arrest you, but you also can't leave until the cops are satisfied.
They have to arrest you within a definite time window otherwise you can leave. If you ask the question "Am I under arrest or am I free to go?" and you are not told you are under arrest, you may leave.
Granted this may get you shot, but the hope is the court is on your side.
In my locale in the US the only question you need to answer is what your name is and I'm not even sure of that. Afterwards you may leave and they can not hold you.
The drug dogs are to my knowledge only if you're in a vehicle, and recently that has received challenges.
Protections on travel do extend to non-pedestrian travel which can be accomplished via non-spot-checked formats.
You just have to drive instead of fly.
I'm not trying to be hateful, but your argument just smacks of an 'I want what I want when I want how I want and will not take anything less than all of it' kind of argument.
If you don't want your ID scanned, just drive, or take a train, or a bus. Just don't fly, right?
And don't get pulled over for any reason, since they'll probably ask for your ID and your passengers. It doesn't matter if it is illegal: If they can't do it, you are in for a bad day, even if they let you go at the end.