An open source design system that's fully customizable and agent ready
List edge naming vibe test
Status: ad-hoc · rounds 1–3 complete · recommendation shipped in PR #7592
Related: ../README.md (Checker Protocol), API Arbitration, Designing Vibe Tests, PR #7592
1. The question
PR #7592 gives List one prop that
picks where each row's text, highlight, and dividers sit relative to the list's sides
and a surrounding Card, Section, or Dialog. There are four looks:
| look | row text | highlight and dividers |
|---|---|---|
| 1 (default) | a short distance in from the list's sides | span the list, a little beyond the text |
| 2 | at the list's sides, on a heading's line | stop at the text |
| 3 | on a heading's line | a little beyond the text, short of the container's borders |
| 4 | on a heading's line | reach the container's borders, like table rows |
What should the prop and its four values be called? Rounds 1 and 2 tested the PR's
first names, edge with inset · flush · outset · bleed, against alternatives. Round 3
tests the names it ships, padded · flush · outset · bleed, against the released API and
against no API at all.
2. Design
Four-ingredient intake per Designing Vibe Tests.
Goal and measure. A naive agent is told what a layout needs and never told a prop or value name. Scored on correctness, invented props or styles, directness, and confidence calibration. Tie-break: fewer misreads and invented props, then plainer words.
Three probes.
| probe | what the agent gets | what it measures |
|---|---|---|
| use | its arm's reference doc and one layout prompt | can it pick the right value from the docs? |
| recall | a doc that describes the four looks but names no API | what API does it expect? one prop or several? |
| reading | no doc, only code with one value in a Card |
does the name alone predict the rendering? |
Use battery. Seven prompts in prompts.json. None name a prop, a
value, or the words padding, inset, edge, margin, or align.
| layout | correct look | |
|---|---|---|
| p1 | static list with dividers under a page heading, no card | 2 |
| p2 | static list in a card, lines touch the card's borders | 4 |
| p3 | static list in a card, lines stop short of the borders | 2 |
| p4 | clickable folders in a card, highlight with room that stays clear of the borders | 3 |
| p5 | clickable menu in a card, highlight touching the card's sides | 4 |
| p6 | recent-files popup, nothing to line up with | leave it unset (negative control) |
| p7 | sidebar list under a heading, no card, aligned text and a roomy highlight | no single value does both (conflict) |
Arms.
| arm | round | prop | look 1 | look 2 | look 3 | look 4 |
|---|---|---|---|---|---|---|
| A | 1 | edge |
inset |
flush |
outset |
bleed |
| B | 1 | edge |
padded |
flush |
hanging |
bleed |
| C | 2 | rowAlignment |
inset |
flush |
outset |
bleed |
| D | 3 | edge |
padded |
flush |
outset |
bleed |
| Both names | 3 | edge, plus deprecated edgeCompensation="inline" |
padded |
flush |
outset |
bleed |
| Main baseline | 3 | edgeCompensation |
unset | — | 'inline' |
— |
| Natural reach | 3 | none | — | — | — | — |
Arm B swaps the two names most likely to mislead: outset is rare, and inset
already names a different kind of list on some platforms. Arm C is round 1's most common recalled
prop name, added in round 2 as planned.
Round 3 adds the three arms a review asked for, each run on the same seven prompts:
- Main baseline: the released
List, whose only edge prop isedgeCompensation="inline"(look 3). Its API cannot produce looks 2 and 4, so p1, p2, p3, and p5 measure what agents do when the API falls short. - Natural reach: no edge API at all, and no anti-pattern section, so nothing steers agents away from the workaround being measured. The doc describes only the default look.
- Both names: the shipped names plus the deprecated
edgeCompensation, as the docs read during its compatibility window. Does the old name attract use? - Arm D, the shipped names alone, is the control the both-names arm is compared against. It is also the first use run of the shipped set as a whole.
Orchestration. 91 isolated agents, one per task, all on one model at one setting:
round 1 had 14 use, 6 recall, and 10 reading agents; round 2 had 7 use (arm C) and 26
reading agents; round 3 had 28 use agents (seven prompts in each of four arms). Round 2's reading probe adds samples where round 1 split or was thin,
tries both prop names, and adds a condition that shows the type an editor displays on
hover. A scripted checker (check.mjs) scores every value choice and
multiple-choice answer. One judge agent, seeing all arms side by side, scored round 1's
use replies on the rubric; rounds 2 and 3 were scored by the checker, with round 3's
workarounds read from each reply's code and notes.
Fairness (Checker Protocol)
| Invariant | How this honors it |
|---|---|
| §1 Fair evaluators | The checker applies one rule to every arm. The judge scored round 1 on one rubric with all arms side by side. Blinding is impossible because the value names show the arm, so the judge was told to score the rubric, not its own taste, and to audit doc parity first. It found none |
| §2 Only the SUT varies | gen-docs.mjs renders every arm from one template and fails unless arms B, C, and D with their differing names mapped back equal arm A byte for byte (507 words each), and the both-names doc without its deprecated row and paragraph equals arm D. The main baseline and natural-reach docs differ only in their edge section, which is the system under test: main's second example sits in a Card because its one value needs one, and natural reach has no anti-pattern. The prose never uses a word that echoes one arm's names (pad, inset, inside, outset, outside, hang), and the recall doc's prose never uses a word that would name the prop |
| §3 Never leak the answer | Ground truth lives in prompts.json and never reached a generating agent. The prompts were scanned for padding, inset, edge, margin, align, and indent |
| §4 Representative environment | A reference doc is what a consumer's agent reads. The reading probe is what a reviewer sees in code, with and without the editor's type hover |
| §5 Context-free | Each agent started fresh and received only the exact path of its own task file, in a directory it could not list. Each of the 91 test agents' logs shows exactly one tool call: reading that file |
3. Findings
3.1 With the docs, the names do not change what agents build
18 of 18 scored use prompts were correct across all three arms, with no invented props
and no custom styles. All three p6 agents left the prop unset. All three p7 agents saw
that look 3 needs a container: arms A and C chose look 2 and said the highlight would be
tight (confidence 2/5), and arm B wrapped the heading and list in a Section (3/5).
As in earlier naming tests, once the API is documented, agents pick by the look descriptions ("like table rows", "without reaching those borders"), not by the names. Everything below is about what agents expect and what they read.
3.2 One prop with four values is what agents expect
All six recall agents wrote one prop with four values. None wrote booleans, and all six rejected them unprompted: a yes/no switch cannot pick among four looks, and several switches allow combinations like "both on" that mean nothing.
3.3 inset is misread in code; padded is read better
| value | bare code | with the editor's type |
|---|---|---|
inset |
0/9 | 2/3 |
padded |
5/9 | 3/3 |
Every bare inset reader said the text lines up with the heading, which is the opposite
of what look 1 does. They read it as "inset inside the card's padding" (round 1:
"'inset' suggests the list sits inside the card's padding, so the row text lines up with
the heading"). The four padded readers who missed made the same placement mistake by
another route: they assumed the rows grow outward around their padding, so the text stays
on the heading's line.
Recall points the other way: five of six recall agents named look 1 inset, and three
chose outset for look 3 because it pairs with inset. The sixth chose padded only
because its prop was already called rowInset, and it produced padded · flush · outset · bleed exactly. Agents guess inset, but they misread it.
3.4 outset and bleed are read right every time
outset 4/4, hanging 2/2, and bleed 3/3 were fully right from code alone. In
recall, outset named look 3 in four of six samples (hanging and bleed once each).
Four recall agents considered hang or hanging and rejected it: two as typography terms
(hanging punctuation, a hanging indent) and two because outset pairs with inset.
bleed named look 4 in four samples (edgeToEdge and fullBleed once each).
3.5 flush is what everyone reaches for, but its highlight is a guess
All six recall agents named look 2 flush, and every use agent applied it correctly. From
code alone, all three readers put the text in the right place, but none put the
highlight at the text: one put it a little beyond the text, and two ran it and the dividers
to the card's borders. The docs have to say plainly that look 2's highlight and dividers
stop at the text.
3.6 Agents guess alignment-style prop names, but those do no better
Recall produced rowAlignment 3, rowAlign 1, rowInset 1, and edge 1. But arm C
(rowAlignment) scored the same as edge in use (6/6), and read no better:
| value | edge |
rowAlignment |
|---|---|---|
inset |
0/6 | 0/3 |
padded |
4/6 | 1/3 |
outset |
2/2 | 2/2 |
bleed |
1/1 | 2/2 |
Recall agents themselves rejected bare align and alignment as left, center, or right
text alignment. In this codebase, Item already has an align prop for the vertical
alignment of its start and end content, so rowAlignment on List would sit next to an
unrelated align.
3.7 Without the prop, agents hack around it; the deprecated name draws no use
| arm | right look (prompts its API can reach) | custom styles | deprecated prop written | confidence, p1–p5 |
|---|---|---|---|---|
| D (shipped names) | 6/6 | 0/7 | — | 4/5 |
| Both names | 6/6 | 0/7 | 0/7 | 4–5/5 |
| Main baseline | 2/2 (p4, p6) | 0/7 | — | 4/5 on p4; 2–3/5 where its API falls short |
| Natural reach | 1/1 (p6) | 5/7 | — | 1–2/5 |
- Shipped names. Arm D used the shipped set correctly every time, as arms A, B, and C did. Its p7 agent chose look 2 and named the tight highlight, as arms A and C did.
- Both names. No agent wrote
edgeCompensation; one said it left the deprecated prop out on purpose. Its p7 agent wrapped the heading and list in aSectionand usedoutset, as arm B did in round 1. - Main baseline. For the four layouts its API cannot produce (p1, p2, p3, p5), every
agent still wrote
edgeCompensation="inline", wrapping p1 in aSectionto make it apply. None added custom styles, and all four said the layout was out of reach: lines that overshoot the text, or a highlight that stops short of the card's borders. One asked for "something likeedgeCompensation=\"bleed\"". Four of six layouts ship visibly wrong, and the agents know it. - Natural reach. Every alignment prompt (p1–p5) ended in a workaround. Four agents
shifted the list or the heading by guessed pixel values (12px, 16px), and one dropped
Listfor a hand-built<ul>with its own borders. Each wrote that the numbers were guesses. The p7 agent put the heading inList'sheaderslot, hoping it would line up.
3.8 Doc gaps the use probe surfaced (not naming)
- Which containers count. All three p6 agents asked whether a popup counts as a container for looks 3 and 4.
- Whether start content counts as text. All three p4 agents were unsure whether the
icon in
startContentlines up with the heading or the label does. - Sidebars. No look aligns the text and keeps highlight room without a container. One
p7 agent in three used a
Sectionwrapper; the other two considered it and held back because the docs do not say whether aSectionlooks like a box. The docs could show the pattern.
4. Recommendation
Keep edge and one prop with four values. Rename look 1 from inset to padded. Keep
flush, outset, and bleed. Applied in PR #7592,
with the List docs covering §3.5 and the three gaps in §3.8.
- One prop with four values, because recall produced it 6/6 and the looks exclude each other (§3.2).
edge, because the alternative agents guess performs no better and collides withItem'salign(§3.6), andedgematches the existing edge-compensation vocabulary.paddedfor look 1, becauseinsetwas misread 0/9 from code andpadded5/9; the gap narrows, to 2/3 against 3/3, only when the editor shows the full type (§3.3). The cost is theinset/outsetpair that recall agents liked.outsetandbleed, because they were read right every time and recalled most (§3.4).flush, because everyone reaches for it, with docs that state where its highlight and dividers stop (§3.5).
Round 3 supports this. The shipped set scored 6/6 in use. With the deprecated name beside it, no agent picked the old name. Without the prop, agents either ship four of six layouts wrong (the released API) or shift rows by guessed pixel values (no API), which the List docs name as an anti-pattern (§3.7).
5. Caveats
- Small samples. Reading has 2 to 9 samples per condition and recall has 6. The
inset/paddedsplit (0/9 against 5/9) is the only reading result wide enough to matter on its own. - One model. All agents ran on one model at one setting, so they share priors and are not independent people.
- The use probe hit its ceiling. The prompts echo the look descriptions, so use cannot separate the arms.
- One composition. Reading covers one value at a time in a
Cardunder a heading. - Recall wording. The recall doc's phrases ("a short distance", "extend a little beyond") may prime some words.
- The shipped set was never read from code as a set. Round 3 used it as a whole (6/6 in arm D and in the both-names arm), but the reading probe tested values one at a time.
- Natural reach is one reading of the request. It is run here as "no edge API and no anti-pattern". A run with natural-language prompts instead of geometric ones would answer a different question: whether agents reach for the prop when not told the geometry.
- The main-baseline doc is the test template, not the released List docs. It swaps
in the released prop but keeps the template's anti-pattern section ("Don't shift rows
with your own styles … Use
edgeCompensationinstead.") and omits the releasedxstyle,listStyle, andstartprops. The natural-reach doc has no anti-pattern section, so main's 0/7 custom styles against natural reach's 5/7 partly reflects that warning, not only the prop. - One author wrote the battery and the candidates.
6. Folder layout
internal/vibe-tests/list-edge-naming-test/
├── PLAN.md # this file: design, findings, recommendation
├── prompts.json # battery, ground truth, recall and reading probes, rounds 2 and 3
├── gen-docs.mjs # renders every arm's doc from one template and proves parity
├── build-tasks.mjs # assembles one self-contained task per agent
├── check.mjs # scripted scoring of value choices and reading answers
├── docs/ # (gitignored) one doc per arm, generated by gen-docs.mjs
└── results/ # (gitignored) tasks, the agents' replies, check.md, judge
To rerun:
- Run
node gen-docs.mjs, thennode build-tasks.mjs(round 1),node build-tasks.mjs --round=2, andnode build-tasks.mjs --round=3. Each writesresults/tasks[-rN]/<task id>.mdand amanifest.jsonthat maps each task id to a random file name. - Copy each task file to its manifest name in a directory agents can open files in but
cannot list (for example, files
chmod 0444in a directorychmod 0311). - Start one fresh agent per task. Give it only the exact path of its own file, with the instruction to read that file and use no other tool.
- Save each reply verbatim to
results/out/<task id>.md, then runnode check.mjs.