for reference - with load-balancers, I STILL got the copper cable as ingredient for wood-lane-splitter introduced by wood-logistics. I pretty much copied it from your implementation for the mod lane-splitter, and for the life of me I couldn't figure out why it wasn't replaced with basic circuit board.
Then I couldn't even figure out why for the mod lane-splitters (which I quick-hacked to 2.1, just info.json and some category->categories business), your wood-splitter as well as wood-lane-splitter had copper cables replaced by basic circuit board.
Finally with the help of AI, I found this in mod lane-splitter's prototypes/entity/entities.lua, where the lane-splitters are generated:
local recipe = {
type = "recipe",
name = config.name,
enabled = false,
energy_required = 1,
category = data.raw["recipe"][config.base_splitter].category,
ingredients = data.raw["recipe"][config.base_splitter].ingredients,
results = {{type="item", name=config.name, amount=1}}
}
Turns out, this is really, really bad, because since they don't do a deep copy of the ingredients, they pass the reference to the ingredients for wood-splitter to wood-lane-splitter. And when you set this for the wood-splitter https://git.cacklingfiend.info/cacklingfiend/lignumis/src/commit/753803096ca40a9b99cac30addc276998da8c9fd/lignumis/prototypes/compatibility/wood-logistics.lua#L102, it implicitly sets the ingredients for wood-lane-splitter, too. Which is why I couldn't find the magic why wood-lane-splitter has its copper cables replaced, since the assignment to ingredients by reference didn't catch my eye when looking at the code. And I didn't even know that this is what would happen, wouldn't have caught it without AI.
I really wonder whether you were aware of this or if it just worked silently with your code and you didn't bother to check it (for which you would have no apparent reason, so would be 100% understandable :-).
However, because lane-balancers does indeed make a deep copy, that's the reason for this: https://git.cacklingfiend.info/cacklingfiend/lignumis/src/commit/753803096ca40a9b99cac30addc276998da8c9fd/lignumis/prototypes/compatibility/wood-logistics.lua#L126 making the replacement explicit. Doesn't matter for mod line-splitter (if it ever will be upgraded to 2.1), the ingredients to both wood-splitter and wood-lane-splitter is replaced twice, but your code in cf-lib guards against errors resulting from this.
Thanks for merging - I really hope I caught all subtleties...