ADR-0066 — A heading is a section with nothing under it
- Status: Accepted
- Date: 2026-08-27
- Deciders: Repository owner, track 003 phase 02 (d)
- Follows: ADR-0060 (a setting nothing has read takes the kit's shape), ADR-0061 (a block that carries one of something the kit lists is that list at arity one), ADR-0065 (a kind branches where the kit branches)
Context
heading and paragraph were the last two non-bespoke arms holding a
case. Both descriptors have named their kit types since phase 02 (b) —
section and bio — and the note on heading gave the reason nothing had
moved: "section renders the heading; no standalone heading block."
That reading is wrong on the snapshot in hand. section and bio are both in
theme.json's block enum, each with its own schema. What made section look
like page furniture is its blocks array: it is a titled region with
children, and a Cardsite heading has none.
The migration also surfaced the seventh instance of the recurring
collected-and-never-read finding, and the plainest one yet. heading's field
spec collects heading_type with options H1–H4. The arm rendered:
<h2 className="section-title strong" …>{s.heading || ''}</h2>
So every heading on every page has been an h2, whatever its author chose,
since the block existed. The kit carries the same idea as headingLevel and
bounds it to 2–6, "so the section sits correctly in the document outline".
Decision
A Cardsite heading is the kit's section at zero children — a titled
region whose region is the rest of the page. This is ADR-0061's move one step
further: there the arity was one, here it is none. A container prop a Cardsite
block cannot fill is not a reason to keep a case; it is a prop that binds to
nothing, like every other prop the kit offers and Cardsite does not collect.
The level binds, and the editor's H1 resolves to 2. headingLevel takes
settings.heading_type, so an author's choice reaches the document outline
for the first time. H1 is the one value that does not survive the crossing: a
biolink page's h1 is its own, and a second one flattens the outline for
anyone navigating by heading. The kit's 2–6 bound is that judgement already
made, and taking it is cheaper than a data migration over a vocabulary the
editor writes and the admin surfaces. The field spec still offering H1 is an
open item, not this slice's to change.
bio binds text and align and keeps the rest as presentation. The
per-block text_color has no kit prop, so the kind reads it from settings —
ADR-0057's line, unchanged. The kit's align enum is center | left; the
block collects right as well. The kind draws all three, because the page it
draws is Cardsite's, and the missing value goes to the upstream feed rather
than being clipped on the way in.
Consequences
- Phase 02 (d)'s migration queue is empty. Scoreboard 8 → 6 by case, 77
→ 79 by render spec; the six
cases left are exactly thebespokerows with no kit counterpart, which is the disposition's definition, so the number cannot go lower without the kit growing. - Heading blocks that chose H3 or H4 change appearance on next render — the first time that setting has done anything. This is the intended repair, and the same shape as ADR-0064's: a control that had never reached a page.
- The arm's
text_colorread onheadingis dropped: that block's field spec has never collected one, so the read could only ever resolve empty (ADR-0063's finding, one instance further on). SpecContextgainstextColor, the page's own text colour. Kinds that draw prose on the page rather than a label on a surface need it, andfg— which falls back to the button foreground — was never that colour.- Upstream feed row 11:
biohas norightalignment and Cardsite collects one.
Source: docs/decisions/0066-a-heading-is-a-section-with-nothing-under-it.md