I am a software development team leader in a mid-size startup company (about 80 people). My direct manager is the VP R&D of the company. He basically hired me and I report to him on the progress etc.
There is also a product manager who is responsible for the mobile app (the product my team works on). His responsibilities (as far as I understand) are to define the features, make sure the product meets the clients' expectations and to give tasks to the development teams.
The product manager has made some attempts to manage (not just give tasks) my team, but until now I succeeded to avoid it. A couple of days ago after a meeting with the VP R&D I have been given some tasks (researches mainly) and have inserted them into the company's project management system. A day later the product manager called me at evening hours and asked about those tasks. After my answer that the tasks come from my direct manager, he nearly screamed that the VP R&D doesn't decide anything and it's not his business, and next time he gives me tasks I should refuse.
My guess is there is some plot to throw the VP R&D away. From the bigger picture I assume the CEO is involved in it. Basically it's not my business and I would live with that. But there was another thing he nearly shouted in that phone conversation. He said that from now on no single line of code should be inserted into the project without his approval.
Apart from the fact that for more than five years nobody has been telling me how to write code and design architecture unless I asked, which makes me feel uncomfortable, I sense here some distrust. I honestly have no idea where and when I had major failures. And even if there were I haven't been told about them.
The question is how should I act now in order to keep myself and my team from micromanagement? Assuming I cant go to my direct manager since I have a strong feeling that he will be outside very soon. Direct confrontation with the product manager won't do me any good. Of course the option to find another job is always there, but I'd like to stay in this company for a bit more.
Any advice is highly appreciated.