The issue is, if we only browse for an inventory, the miner would as welll start filling other nearby machines... f.e. Pumps or MFEs.
Limiting it's size is sort of the only way to prevent that, but if you got a machine with >= 9 slots, it would still consider those valid. Examples: Reactor, Cropmatron, Canner (I think).
Of course these are special cases of sorts...
Ok that's a point, but what about going for >= 9 slots except "IC ones which wouldn't be a target", like the ones you mentioned?
I guess if it would be simply possible to make it optionally check if there's a relay available you would have done that already I guess.
Maybe forge should have a function that can check if a defined blocktype is present without breaking if it isn't, something like that, wouldn't that help for such optional mod combination checks?