Three piles, no mixing
Raw, manufactured, and encoded each live in their own inventory. Inside one type you can trade grades and sub-categories. Across types, nothing converts. A raw material never becomes manufactured. Scan data never becomes a component.