alonso.torres 1b0137bde8 📎 Predict a grid cell override kept by a switch between equal grids
A variant switch keeps a copy's grid cell overrides when the old and the
new variant mains have identical grids: the same tracks and the same
cells holding corresponding children. The component model never
predicted it, since it compared the old main's cells, kept by id, with
the new main's list of cells, so a kept override showed as a phantom.
The model now carries the copy's cells whole in that case, with each
child replaced by the new child at its path.

Harness only; the benchmark is not run.

Also in this commit:

- Predict the end of a swap kept by a switch onto the same component. A variant
  switch keeps a child the copy swapped for another component, and when the new
  variant holds that same component at the child's place, the child becomes a
  plain copy of it: the swap ends, as the swap-group tests of a switch to a
  variant with the same component expect. The component model kept the swap
  override there. It now drops it for a kept swapped child whose new position
  has the same component.
- The harness changes that check the next commit, "Carry no grid cells a
  switched copy already shows".

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:47 +01:00
..