In the 2000s and 2010s millions of American jobs were destroyed by automation and Chinese competition. Now AI threatens to do the same. In theory innovation and change create just as many new jobs as they wipe out—but getting old workers into new fields is the tricky part that America didn’t figure out during its painful deindustrialisation. Governments, companies and nonprofits are trying to learn from that failure.

If that didn’t jolt you awake a cup of coffee might, but a cup of joe could become a luxury as climate change threatens coffee-growing regions. 1843, our sister magazine, profiles a scientist trying to save your morning brew in the surprisingly buccaneering world of wild coffee.

What to expect in the week ahead:

▸ On Tuesday SpaceX will release its first quarterly results since its record-breaking IPO, providing markets with an insight into the financial health of the rockets-and-AI company. The firm’s value soared to $2.1trn in June, before slumping amid wider concerns about long-term profitability in AI-related stocks.

Democrats in Michigan will vote in the party’s Senate primary on Tuesday. Abdul El-Sayed, a left-winger critical of the Democratic establishment, is facing up against Haley Stevens, a moderate who once worked for Barack Obama. The race is vital to Democrats’ hopes of winning a Senate majority and frustrating Donald Trump’s legislative agenda. But the contest is also important for determining which ideological faction will control the party going forward. 

▸ Markets and central bankers in America will be monitoring the release of key employment data on Friday. The Bureau of Labour Statistics is set to report on the growth of non-farm payrolls in July after an unexpected loss of momentum in the previous month. This followed an otherwise strong year so far. An uptick in jobs could mean growing pressure on Kevin Warsh, the Federal Reserve chair, to raise interest rates.