With the economy finally on the upswing, smart companies are heeding the hard lessons of the recession—and preparing themselves for the next one. They are instituting new controls on borrowing, hiring, and expansion. And they are monitoring global political and economic events with far more precision, hoping to get a hint of when trouble might start brewing—and what form it might take once it arrives.