As politicians wake up to the artificial-intelligence threat, Democratic strategist Rob Flaherty is steering his party toward a coherent plan.