ADR-0057 — The render path is Cardsite's own React; the label is served
- Status: Accepted
- Date: 2026-08-24
- Deciders: Repository owner, track 003 phase 02 (d)
- Follows: ADR-0031 (the kit is reference material, not a fourth target), ADR-0055 (the render spec is a crosswalk), ADR-0056 (migration = delete the case)
Context
ADR-0056 made the phase (d) migration contract "delete the arm's case;
the kit renders it from the crosswalk." That promise has no executable
subject. A deleted case in BiolinkBlockRenderer.tsx falls through to the
default arm — a generic link that ignores the descriptor entirely and
derives its text from block.type.replace(/_/g,' '). Migrate the 24-arm
label-only embed family (kit card-link) that way and every one regresses:
applemusic renders "applemusic", not "Apple Music". The gate stays
green while the page gets worse.
The kit cannot be the path either. The Linkbio kit is vanilla-JS DOM
(LB.page/LB.mount, def.render(props) building nodes) on its own design
system, Neue — published and maintained apart from Cardsite (ADR-0031).
It is never ported to React, never imported. Cardsite's public page and
editor preview are React over Studio primitives; the render path must be
too.
Two things are undecided, and the first migration is blocked on both: how a descriptor becomes JSX, and — since the human label must leave the switch — where the label ("Apple Music") now lives. The finding named the fork: served field vs. ADR-0030 package.
Decision
1. The executable path is a React interpreter, renderFromSpec, that
becomes the renderer's default arm. For a block whose case is gone it
looks up blockDescriptor(block.type). A spec/server-url descriptor
renders through a closed set of Cardsite render kinds — small
Studio-primitive components (labelled link / card-link, media facade,
avatar/image, alert, …) — never a per-kit-type port of Neue. The
descriptor's prop notes graduate to executable bindings
(settings.<key> | location_url | a literal) resolved at render time. A
bespoke or absent descriptor keeps today's generic-link fallback
unchanged. Studio primitives and tokens only; --lb-* already aliases Neue
tokens to Studio through the bridge layer.
2. Kit type maps to a render kind through a short crosswalk table in
packages/block-model, not a new per-arm field. 76% of arms are
card-link/link, so the table is small and the descriptor stays the
single source (ADR-0055). Aligning to theme.json's {type, props} is the
crosswalk, not a rival spec (ADR-0031/0055): render kinds are Cardsite's
Studio components; the table only says which kind a kit type resolves to.
3. The display label is server-owned identity — served, not a frontend
constant. BlockTypeInfo (apps/api/internal/models/block_types.go)
gains a Name field, delivered on the block-types catalogue the client
already consumes; renderFromSpec reads the label from served block-type
metadata, defaulting to Title-Cased type. This resolves the fork for
served, because phase 03 requires a brand-new server-registered type to
render with zero apps/web changes — a frontend-owned label table would
break that on the first new type. Mapping identity (render kinds, prop
bindings) stays generated/frontend because render kinds are a closed
Cardsite concern; the instance-facing label is an open set the server owns.
This is ADR-0030 read straight: identity the frontend fully enumerates is a
package; identity that grows with server registration is served.
Consequences
- The first (d) slice — the 24-arm
card-linkembed family — becomes buildable and is the next run's item: addNameto the registry + catalogue, addrenderFromSpecwith the card-link kind and a render test, delete the 24 cases. Both gates move 24 arms case→spec with no label regression. - Phase 03's "zero
apps/webchanges" reduces to: a new server type of an existing render kind renders from its served label + descriptor kind with no frontend edit. This ADR is the precondition for demonstrating it. - A genuinely new render kind (a shape no existing kind covers) is still an
apps/webchange. That is the intended boundary of "data-driven": layout primitives are Studio's, not data's (ADR-0031). - Risk: a
specdescriptor with a wrong kind/binding renders wrong while the parity gate is green. Guarded by each migration slice carrying a render test per kind, not by the parity gate — which is a renderer-axis check, not a visual one.
Source: docs/decisions/0057-the-render-path-is-react-the-label-is-served.md