alonso.torres 59e848ea14 🐛 Keep a copy grid's own empty cell where it was as it grows back
A copy grid with its own cells that lost the row its main removed, and
grew one back to hold its children, fitted its cells into the fewer
tracks first. Its authored empty cell (`align-self :end` at row 2,
column 2) was merged into an occupied one and lost (F594). User
decision: the cell keeps its place.

`assign-inherited-grid-cells` now grows the track lists its children
need before fitting the cells (`grow-for-children`), so a grid that
grows back the tracks it lost keeps its cells where they were. Only the
track lists grow; the cells it holds keep their places.

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

Test: generated
`generated-a-copy-grid-keeps-an-authored-empty-cell-where-it-was-when-it-grows-back`
(JVM and frontend replay).

Benchmark (bench-components, alone):

|                             :world | :baseline |    :now |   :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
|  deepest-edit-through-three-levels |    35.215 |  21.906 |  23.299 |   0.62 |
| edit-through-a-chain-of-dependents |    68.931 |  46.008 |  46.834 |   0.67 |
|         library-update-into-copies |    83.083 |  53.933 |  55.436 |   0.65 |
|        main-edit-among-many-shapes |     4.837 |   2.497 |   2.639 |   0.52 |
|           main-edit-into-10-copies |      1.79 |   1.185 |   1.228 |   0.66 |
|          main-edit-into-100-copies |    15.415 |  11.262 |  11.561 |   0.73 |
|         main-edit-into-1000-copies |   153.086 | 108.966 | 112.568 |   0.71 |
|         variant-switch-into-copies |    32.052 |  23.931 |  24.195 |   0.75 |

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