Outstanding Peter! You have just described operations at Ford Motor Company and any other auto plant. If parts come in out of inspection, Engineering gets paperwork to allow it or else it is sent back to the maker. If he can'[t fix it---he eats it or if it is a material out of color---he sends it to our competitiors.
Also there is the problem of "first in and first out" or "last in and first out." If new parts to a new specification are received, unless noted otherwise, they are thrown in on top of the old stock and over time the old stuff shows up on later stuff and drives the collectors crazy because of the obvious change of parts by "bad collectors out there seeking to make things right to their knowledge!" Also the famous, if there is a problem, a day or weeks run is set aside for later repair as time permits. So somethings don't go out in numerical order. The last month of a car model year program was when the planat sweeped the floor for obsolete parts to get them out of the plant and still get paid for making a car. I know of a Canadian GM car with the Canadian equivalent of Buick nomenclature on one side of the car and Oldsmobile on the other side. Yes the customer ate it and without a bottle of ketchup.