Yes, there are a whole multitude of possible inputs to make it a 'smart' car. (that's with a small 'm'!) Whenever braking or cornering are obvious ones, but those would probably be gated by speed. The tricky bit is getting it to add the drag and downforce when the driver wants it.I was pondering that too. It was certainly difficult to ascertain.
As a road car, pre-programming wouldn't make a great deal of sense (unless just for the purpose of willy-waving at the Nurburgring), so perhaps it uses multi-factor input decision logic? A combination of road speed, steering angle, multi-axis G-force, brake and throttle inputs?
Adaptive cruise has many of the right inputs, but is still not as predictive as a good driver. An interesting puzzle