alonso.torres 7aa788c6e5 🐛 Give a re-headed swapped copy its new main's placement
A swapped nested head pasted out of every copy level becomes a plain
copy of the component it shows. It kept as overrides the placement that
differs from its new main, but left the rest as it was: a nil constraint,
the default of its old board, kept meaning something else at the page
root while its main states `:left`, so it no longer matched its main
(F592). Users reach it by copying such a copy and pasting it.

`rehead-swapped` now gives the placement attributes it does not override
the new main's values.

Found by a fresh gate round (seed 20261117, library property).

Test (swap-group-test, fails before the fix):
`paste-gives-a-swapped-head-the-placement-of-its-new-main`.

Benchmark (bench-components, alone):

|                             :world | :baseline |    :now |   :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
|  deepest-edit-through-three-levels |    35.215 |  20.608 |  21.876 |   0.59 |
| edit-through-a-chain-of-dependents |    68.931 |  42.175 |  44.133 |   0.61 |
|         library-update-into-copies |    83.083 |   50.77 |   52.63 |   0.61 |
|        main-edit-among-many-shapes |     4.837 |   2.352 |    2.51 |   0.49 |
|           main-edit-into-10-copies |      1.79 |   1.043 |   1.087 |   0.58 |
|          main-edit-into-100-copies |    15.415 |  10.185 |  10.428 |   0.66 |
|         main-edit-into-1000-copies |   153.086 | 101.226 | 105.622 |   0.66 |
|         variant-switch-into-copies |    32.052 |  22.621 |  23.491 |   0.71 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:50 +01:00
..
2026-11-10 20:21:16 +01:00
2026-09-29 09:07:34 +02:00
2026-03-11 15:24:40 +01:00