Some physical environments for advanced age folks are designed with features to promote extra physical exertion, to help maintain the occupants' fitness, which in turn promotes safety. (Better balance, fewer falls.)
Similarly, we might consider building-in a baseline requirement of mental activity for the operation of certain systems. In the short term, this might increase alertness in the moment, as in the semi-autonomous driving example. (In that case, perhaps a UI that requires maintaining a certain amount of eye motion across the road, or particular posture.) In the long term, perhaps other (more challenging?) in-built exercises will promote mental and neurological health in people whose work and play would otherwise fail to be stimulating.