ADR-0061 — A block that is one of something the kit lists is a list of one
- Status: Accepted
- Date: 2026-08-27
- Deciders: Repository owner, track 003 phase 02 (d)
- Follows: ADR-0055 (the render spec is a crosswalk, not a rival), ADR-0058 (a repeat counts where the block counts), ADR-0060 (a setting nothing has read takes the kit's shape)
Context
review is the last bespoke row with a kit counterpart. Its field spec
collects a title, a star rating, the review text, an image and two lines of
attribution — and unlike social_proof, its arm draws all six. The migration
is therefore an ordinary faithful one, and the only question is which kit
object it crosses to.
Two are close, and neither fits whole:
quote-block—{ text, author, role?, href?, avatar?, variant }. A single pulled quotation with its attribution: exactly one review, except that it has no slot for a score.testimonials—{ title, items: [{ text, author, role?, avatar?, rating? }], layout }. Its item is a review, score included; its section is a list.
The kit's own render settles which of those two is the near miss. A testimonials item draws
t.rating ? LB.create("rating", { value: t.rating, size: "sm" }) : null,
blockquote(t.text),
figcaption.lb-quote-cite [ avatar, cite(author, role) ]
— the same lb-quote-cite figure quote-block draws, with the rating above
it. The kit's item shape is the one place in the kit where words and a score
sit together, and it is review's shape exactly. What separates them is not
the drawing but the arity.
Cardsite already has a grammar for arity. parseEntryKey — the fixed-arity
half of the list grammar, written for "the list at a length the descriptor
already knows" — spells one entry as items.0.<field>. Nothing about it
assumed a gallery.
Decision
A Cardsite block that carries one of something the kit lists is that list
at the fixed arity of one, not a new singular kind. review names kit type
testimonials and binds items.0.text, items.0.author, items.0.role,
items.0.avatar and items.0.rating. No grammar was added; the
testimonials kind gained the second arity image-gallery already has, and
declines only when the props describe neither a repeat nor an entry.
Two consequences follow, and are the reason this is an ADR rather than a commit message.
1. A value the kit has no prop for is still a binding, not a settings
reach. ADR-0060 let social_proof's description — kit gap, upstream feed
row 8 — be drawn by the kind reading ctx.block.settings.description
directly. The second tenant of the kind proves that shortcut wrong:
review's description is its quote, so a settings reach would have
printed the review twice, once as the section's supporting line and once as
the words. Only the descriptor knows which block is being drawn. The gap
still feeds upstream; the prop lives in the descriptor.
2. The arm's default rides the binding. review's arm drew five stars
for a block whose author had set no score. That default is
settings.stars || '5' in the descriptor, as stat-figure's zero is, so the
kind stays honest: no rating, no stars — which is what social_proof's
scoreless entries want.
Consequences
review moves from bespoke to spec: 15 → 14 by case, 70 → 71 by render
spec; check:block-model 78 → 79, bespoke 7 → 6. The six bespoke rows
left (divider, custom_html, business_hours, weather, progress_bar,
vcard) have no kit counterpart at all and ride the upstream feed, so this
is the last promotion available.
Two defects go with the arm, both of the kind this track keeps finding:
- Its stars were five glyphs of plain text. A read-only score is now one
labelled element announcing "4 out of 5", which is the kit's own a11y rule
for
ratingand the same repair the countdown slice made to its clock. '☆'.repeat(5 - Number(s.stars))is aRangeErrorfor any score above five, and the field is a plain number input with no clamp — a seven-star review took the whole page down. Scores are clamped now.
The arm also read stars_color, title_color, description_color,
author_name_color and author_description_color, none of which is in the
block's field spec. So its stars were always the same raw #eab308, a colour
literal no author could reach; the kind draws var(--warning). That is a
fourth instance of the unreachable-settings finding, which SESSION.md already
carries as a sweep of its own once 02 (d) closes — this ADR does not widen
into it.
Source: docs/decisions/0061-a-block-that-is-one-of-something-the-kit-lists-is-a-list-of-one.md