Function: diffInventories()
diffInventories(
before,after):InventoryDiff
Compares complete inventories without mutating them. Match ids first, then mutually unique body hashes, narrowing ambiguous hashes by file, suite and dependencies. Remaining ambiguities stay additions and removals. Hashes from different tool versions are not compared; scan both revisions with one version for rename and body detection.