In the oil and diamond sectors, contracts with the government spell out the commitments companies make to invest in infrastructure and social services to benefit local communities, such as building schools, equipping hospitals or funding microcredit programmes.