Towards an epistemological theory of historical consciousness