A copy turned its grid from rows to columns and update main pushed the
direction; the layout reflow then reordered the main's children for the
new flow with a reorder-children change. components-changed did not count
that change, so the copies were never synced and kept the old order. A
reorder that changes a parent's order now marks the components whose main
holds that parent; one that keeps the order still marks none, since the
reflow writes those on every pass.
Tests: reordering-the-children-of-a-main-changes-its-component and
pushing-a-grid-direction-orders-the-copies-like-the-reflowed-main (the
variant gate program of round 12, seed 252148030). Common suite: 2429
tests, 0 failures.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+--------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 19.581 | 20.465 | 0.56 |
| edit-through-a-chain-of-dependents | 68.931 | 44.23 | 45.224 | 0.64 |
| library-update-into-copies | 83.083 | 55.313 | 56.272 | 0.67 |
| main-edit-among-many-shapes | 4.837 | 2.379 | 2.555 | 0.49 |
| main-edit-into-10-copies | 1.79 | 0.984 | 1.026 | 0.55 |
| main-edit-into-100-copies | 15.415 | 9.856 | 10.1 | 0.64 |
| main-edit-into-1000-copies | 153.086 | 97.071 | 101.457 | 0.63 |
| variant-switch-into-copies | 32.052 | 22.287 | 22.916 | 0.7 |
AI-assisted-by: claude-opus-5-5