The tragedy of the commons, AI edition