How sworn enemies reached a pact on crude production