Led by a former OpenAI executive, Amazon’s AI lab focuses on the decisionmaking capabilities of next-generation software agents—and borrows insights from physical robots.