Toward a general theory of error cycles