alonso.torres b14cec3c4f 🐛 Sync a swap back inside a copy of a deleted component
Swapping or switching a nested copy back to its slot's own component makes
it a plain copy of its position, and the swap syncs it through the copy head
that owns that position, so it takes the position's overrides. The head was
looked up among live components only. Inside a copy of a deleted component
no head was found, and the restored copy kept the new component's values
while its untouched position held others.

Look the head up with deleted components included, as the direct sync it
calls already does.

A fresh JVM library run (seed 20261031) found this: a switched-back board
lost an authored fill to the variant's white (I4). The direct regression
fails its fill assertion before the fix (#FFFFFF for #333333) and passes
after it.

Full common passes lint, JVM, JavaScript and formatting: JVM 2065 tests /
33858 assertions; JavaScript 2001 / 32461. All six component properties pass
40 programs each at seed 712 in both runtimes. Full rebuilt frontend passes
1799 / 16286. Backend passes 1838 / 9293; exporter passes 16 / 40. Consumer
lint and formatting pass.

Compare lower-quantile milliseconds with the saved baseline; keep that
baseline unchanged. The machine/JVM warning makes ratios rough. No world
is flagged.

World                      Baseline       Now    Ratio
Main into 10 copies           1.790     0.935     0.52
Main into 100 copies         15.415     9.267     0.60
Main into 1000 copies       153.086    85.839     0.56
Three nesting levels         35.215    17.833     0.51
Dependency chain             68.931    35.026     0.51
Library update               83.083    43.812     0.53
Many plain shapes             4.837     2.182     0.45
Variant switch               32.052    20.841     0.65

AI-assisted-by: claude-opus-5-5
2026-11-10 20:21:42 +01:00
..
2022-11-08 13:02:14 +01:00