ai sez: "Bug: collectRuleMentionedObjects only inspects rule LHS/RHS cells, not win conditions. In semantic and mechanics modes (where both collapseEquivalentObjects and includeWinConditions are true), objects referenced only in win conditions are treated as inert — causing two problems: (1) objects on retained layers get merged together (e.g., All ObjA on ObjB becomes All X on X), and (2) objects on dropped layers produce dangling references in win conditions that don't exist in any output collision layer. The fix is to also collect objects from canonical.winConditions into the mentioned set when includeWinConditions is true."
ai sez: "Bug: collectRuleMentionedObjects only inspects rule LHS/RHS cells, not win conditions. In semantic and mechanics modes (where both collapseEquivalentObjects and includeWinConditions are true), objects referenced only in win conditions are treated as inert — causing two problems: (1) objects on retained layers get merged together (e.g., All ObjA on ObjB becomes All X on X), and (2) objects on dropped layers produce dangling references in win conditions that don't exist in any output collision layer. The fix is to also collect objects from canonical.winConditions into the mentioned set when includeWinConditions is true."