So something is only a commodity if it is socially necessary (i.e. it fulfills a tangible want/has use-value). So basic formula for commodity value is c+v+s. But there is still necessary work that doesn't fulfill socially necessary purpose, e.g. research.
Research produces (discovers) data, but data is not a commodity. It has no social use. It is just information about nature. That information can still be used to produce something of social necessity, but the information alone does nothing, and can be reproduced with essentially no labor once the information is harvested from nature (in the age of modern technology, organized, analyzed data reports may be copied and pasted essentially ad infinitum onto servers, emails, hard drives, etc. for effectively no labor, copying the information, and unlike physical assets a capitalist owns that wear and tear with use/time, information is infinitely reusable, or at least usable until a resource that information uses is consumed to extinction).
That being said, the original discovery work is still labor, and labor is paid equal to the value necessary to reproduce it (the cost of living, variable capital, v) plus its surplus value. For a company that funds its own internal research, that wage comes from the surplus value of those who do socially necessary work, producing profitable commodities. However, after being paid their wage to subsist, are the non-socially necessary laborers entitled to other compensation? They produce no surplus value themselves, and the wage they earned through their labor was another worker's surplus value. What incentive is there to do non-socially necessary work if your work requires years of labor to gain the skill necessary to perform, but only provides a subsistence wage?
I understand that skilled labor is complex labor consisting of dead past labor plus current labor, but I am struggling to see how it can be amortized over the course of their career if they don't produce something of social necessity. Is the variable capital that goes into paying a skilled laborer higher due to paying for past labor, despite having the same subsistence needs as the socially necessary labor?
The only way I could see research work being paid beyond subsistence is if data was commodified, the data becoming intellectual property belonging to the researcher, only being done on contract work (essentially existing CROs), not integrated with a manufacturing company, with the data and manufacturing process being bought by the manufacturing company.
Research is only an example. If my understanding of research's status as non-socially necessary is flawed, you can replace it with other non-socially necessary work that still is necessary.