alonso.torres 310dac9e42 ✨ Generate border radius tokens in component histories
The random histories never applied a design token. The token programs
give the file an active set of three border radius tokens and add token
steps: apply a token to every corner of a rectangle or board, main or
copy; take one off; set a corner's radius by hand, which takes its token
off; and edit a token's value, which sets it on every shape that applies
it, without touching, as the token editor and its propagation do.

The model learns what tokens change:
- the tokens of a shape's corners go with its radius group, so a copy
  that applies or takes off a token authors its radius;
- a token edit sets the authored corners that apply it; a token names
  the corners as a flipped shape shows them, so they are set mirrored;
- a switch carries each corner's token, or its lack of one, with its
  radius.
The undo and redo checks compare the tokens library by its exported
content, as undo gives it back with new modification times. The golden
master of case AY is recorded again for that: its token library is now
written as that content, key by key, with the same values.

A token edit does not reach the shapes deleted components store, so a
copy of a deleted main loses the edit at its next sync; no token edit is
made while a deleted component stores a shape that applies the token.

Tests: random-token-compositions, 200 programs pass;
a-token-edit-sets-the-corners-of-a-flipped-copy-as-it-shows-them,
switching-a-copy-carries-the-radius-tokens-it-applied,
switching-a-copy-carries-each-corner-token-with-its-radius.

Harness only; the benchmark is not run.

Also in this commit:

- Leave undone creations out of the harness sync comparisons. Undoing a new
  variant set leaves its component deleted, its stored objects holding the
  nested copies as they were. Undoing an earlier edit of a main restores the
  main, but an undo starts no sync, so those stored copies keep the edit. Only
  redo brings that component back, and redo restores the edit first, so no user
  sees them. The I5 and I6 checks compare the settled file with a full sync,
  which rewrites them.

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:48 +01:00
..
2022-11-08 13:02:14 +01:00