alonso.torres 0009acf42d 🐛 Check a switched head's kept place through its own constraints
A nested copy head in a copy that is resized apart from its main keeps
its place as authored geometry when its constraint changes. Switching it
keeps that place and, keeping the touched groups, its constraints, but
the switch compared the place with its position placed through the
main's own constraints. Where the two matched it dropped the geometry
override, and the next sync of its parent moved the head through the
constraints it carries.

When a switch keeps the touched groups and the head authored its
constraints, the kept place is compared with its position placed
through those constraints, as sync places it. The harness model does
the same.

Test: switching-a-copy-head-keeps-the-place-its-own-constraint-kept.
Focused switch, swap and composable tests pass (288 tests).

Benchmark (alone):

|                             :world | :baseline |    :now |   :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
|  deepest-edit-through-three-levels |    35.215 |   23.06 |  29.353 |   0.65 |
| edit-through-a-chain-of-dependents |    68.931 |  46.664 |  61.416 |   0.68 |
|         library-update-into-copies |    83.083 |  49.118 |  51.106 |   0.59 |
|        main-edit-among-many-shapes |     4.837 |   2.744 |   3.366 |   0.57 |
|           main-edit-into-10-copies |      1.79 |   1.306 |    2.48 |   0.73 |
|          main-edit-into-100-copies |    15.415 |   11.34 |  12.203 |   0.74 |
|         main-edit-into-1000-copies |   153.086 | 130.776 | 191.745 |   0.85 |
|         variant-switch-into-copies |    32.052 |  22.084 |  26.522 |   0.69 |

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