A nested head whose position in the enclosing main has a geometry
override, such as a resize, switched to a variant whose main is turned.
The switch keeps the old head's orientation, which agrees with its
position, the placement a sync gives a swapped head; but because the
reference chain had a geometry override, the switch compared the kept
orientation with the new main and marked a geometry override that no
later sync needs.
The kept orientation is compared with the new main only when an
orientation override carries: the reference chain has a geometry
override and the old and new variant mains share their orientation.
Otherwise, inside a copy, it is compared with the position.
Benchmark (scripts/bench-components, lower quantile in ms):
| world | baseline | now | ratio |
|------------------------------------+----------+--------+-------|
| deepest-edit-through-three-levels | 35.215 | 20.017 | 0.57 |
| edit-through-a-chain-of-dependents | 68.931 | 37.029 | 0.54 |
| library-update-into-copies | 83.083 | 45.694 | 0.55 |
| main-edit-among-many-shapes | 4.837 | 2.094 | 0.43 |
| main-edit-into-10-copies | 1.79 | 0.95 | 0.53 |
| main-edit-into-100-copies | 15.415 | 9.21 | 0.60 |
| main-edit-into-1000-copies | 153.086 | 93.672 | 0.61 |
| variant-switch-into-copies | 32.052 | 20.466 | 0.64 |
AI-assisted-by: claude-opus-5-5