On a general theoretical framework of reliability