Update main of a copy that swapped a nested copy, pushed inside a copy of
the main, puts the swapped shapes in the position's place and points them
at the position's subtree. Their differing content became overrides, but
their constraints did not: a pushed icon kept the copy's fixed scroll
while its new reference scrolls fixed, untouched and different from its
main.
A shape pushed below the head now marks its constraints group when its
constraints differ from those of its new reference, keeping what the copy
showed, as the head already does. The composable model expects that
override.
Test: generated
`an-update-main-of-a-swap-keeps-the-constraints-its-children-showed`.
Benchmark (bench-components, alone):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 21.399 | 22.081 | 0.61 |
| edit-through-a-chain-of-dependents | 68.931 | 41.679 | 43.499 | 0.6 |
| library-update-into-copies | 83.083 | 50.272 | 54.817 | 0.61 |
| main-edit-among-many-shapes | 4.837 | 2.258 | 2.591 | 0.47 |
| main-edit-into-10-copies | 1.79 | 1.034 | 1.071 | 0.58 |
| main-edit-into-100-copies | 15.415 | 10.439 | 11.139 | 0.68 |
| main-edit-into-1000-copies | 153.086 | 101.545 | 105.155 | 0.66 |
| variant-switch-into-copies | 32.052 | 23.541 | 24.772 | 0.73 |
AI-assisted-by: claude-opus-5-5