A grid copy that authors its cells gives its children without a cell
free cells at sync. It took them in the copy's order of its children,
which grid reordering changes, so a child given back by a shrunk track
and a child new from the main could take each other's cells. They now
take free cells in the order of the main shapes they refer to, as sync
adds children.
Test: a-grid-copy-gives-free-cells-to-children-in-their-main-order.
Grid, sync and golden master tests pass (399).
Benchmark (alone):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 21.19 | 22.83 | 0.6 |
| edit-through-a-chain-of-dependents | 68.931 | 42.408 | 44.279 | 0.62 |
| library-update-into-copies | 83.083 | 53.897 | 55.394 | 0.65 |
| main-edit-among-many-shapes | 4.837 | 2.367 | 2.548 | 0.49 |
| main-edit-into-10-copies | 1.79 | 1.031 | 1.103 | 0.58 |
| main-edit-into-100-copies | 15.415 | 10.483 | 10.835 | 0.68 |
| main-edit-into-1000-copies | 153.086 | 100.626 | 107.239 | 0.66 |
| variant-switch-into-copies | 32.052 | 23.355 | 23.926 | 0.73 |
AI-assisted-by: claude-opus-5-5