Hi Nick,
Yes, you're right that the cost is being updated in the Sales History file when it shouldn't. A positive cost is being written to the component item, and a negative cost to the master item.
Thanks for finding this; I have forwarded this to our development team.