As AI becomes more capable of designing and implementing systems, I would invest in four technical disciplines.
Formal specification. Learn to express precisely what a system must do, what it must never do and under what conditions. Recognize where the specification departs from intent and what it leaves unstated.
Invariants, interface contracts, temporal logic, safety and liveness.
Formal verification. Learn to determine what has been proved, which assumptions the proof depends on and what remains unproven.
Mathematical proofs, model checking and trusted computing bases.
Empirical evaluation. Learn to establish how a system behaves under different conditions, how reliably it works and where it fails.
Experimental design, property-based testing, adversarial testing, statistical inference and monitoring.
Causal inference. Learn to determine what contributed to an outcome and how changing one part of a system might affect the whole.
Causal graphs, counterfactual reasoning, controlled interventions and confounding variables.
Even if AI surpasses humans in all four disciplines, understanding them remains valuable to anyone responsible for directing its work, judging its results and deciding what to change.
Know what must be true, how to establish whether it is true through proof or observation, and what caused the observed outcome.