Suppose one does an act on shabbas about which there is a machlokes whether it is forbidden d'oraysia or not (perhaps even a posek holds it is permitted). This person does the act regardless, but then he decides to ask his Rav because he knows it is a machlokes and the Rav declares the act an issur d'oraysia. Is this person liable to bring a chatas (sacrificial offering brought on a d'oraysia violation of shabbas)?
Since he now holds it is prohibited, do we say that, every time he did the act before the prohibiting ruling, he did something wrong? Or do we say that, since there are opinions who hold it is not a d'oraysia or even that its permitted, he would be exempt from a chatas up until he asked his Rav?