What FIFO is measuring
FIFO does not attempt to trace physical stock movement. It is a cost-flow assumption used to assign inventory costs to cost of goods sold and ending inventory. Under FIFO, the oldest recorded lot costs are released first when units are sold.
That means the sold-layer table is often as important as the headline COGS figure. It shows exactly which cost layers were consumed and which purchase lots remain in ending inventory after the period's sales are assigned.