alonso.torres 645223d90c 🐛 Keep radius tokens on the corners a mirrored copy shows
A radius token names a corner as its shape shows it, but a copy mirrored
unlike its main inherited the main's corners as they were. A token value
edit then rounded the corner the main keeps square: the copy's tokens
named its other corners.

A flip now moves a shape's radius tokens with the corners they apply
to, and a transform writes them without making them an override. Sync,
reset, update main and a switch carry tokens into the orientation the
destination ends with (`ctsr/tokens-in-orientation`,
`cll/oriented-by`). The composable oracle compares a copy's radius
group with its main's in the copy's orientation.

Tests: `token-apply-test/a-flip-moves-a-radius-token-with-its-corner`,
generated `a-token-edit-keeps-the-square-corner-of-a-mirrored-copy`.

Benchmark (bench-components, alone):

|                             :world | :baseline |    :now |   :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
|  deepest-edit-through-three-levels |    35.215 |  22.352 |  23.145 |   0.63 |
| edit-through-a-chain-of-dependents |    68.931 |  44.184 |  45.036 |   0.64 |
|         library-update-into-copies |    83.083 |  52.481 |  54.229 |   0.63 |
|        main-edit-among-many-shapes |     4.837 |   2.354 |   2.498 |   0.49 |
|           main-edit-into-10-copies |      1.79 |   1.031 |     1.1 |   0.58 |
|          main-edit-into-100-copies |    15.415 |  10.729 |  10.946 |    0.7 |
|         main-edit-into-1000-copies |   153.086 | 103.496 | 105.968 |   0.68 |
|         variant-switch-into-copies |    32.052 |  23.207 |    23.7 |   0.72 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:49 +01:00
..