ADR-0055 — The render spec is a crosswalk, not a rival
- Status: Accepted
- Date: 2026-08-24
- Deciders: Repository owner, track 003 phase 02 (b)
- Follows: ADR-0030 (packages named ahead of time), ADR-0031 (the biolink renderer is the Linkbio kit, not a fourth Studio target)
Context
Phase 02 (b) has to shape packages/block-model. Two forcing constraints
already bound the answer: the [renderer-arm census] classified all 85 arms
of BiolinkBlockRenderer.tsx and the kit gap list .station/jobs/003-extensibility/analysis/kit-gap-list.md verified where each
arm meets the fork's theme.json. Between those two documents the design
choices were largely made — this ADR only writes down the rule the diff
enacts so it survives the next slice and every phase (d) migration.
The tempting shape for the package would be a rival spec: define
Cardsite's own block descriptors, then run a translation layer at render
time. That is what turns identity vocabularies into drift. link-model
and product-model do not describe another set of link types or
products; they name the same one, once, so two runtimes agree. The block
package has to do the same.
Decision
packages/block-model is a crosswalk, not a spec: one descriptor per
Cardsite block_type, aligned to the kit's theme.json block shape
({type, props, style, rules}) and nothing else. Three rules follow.
- The kit's shape is the shape. A descriptor's
kitTypeis a value fromtheme.json's block enum, ornull. There is no separate Cardsite block vocabulary; the crosswalk cannot describe a shape the kit does not publish. When Cardsite needs a shape the kit does not have, the descriptor isbespokeand the reason is a row on the upstream-feed list, per ADR-0031. - Every arm has a disposition. One of
spec,server-url, orbespoke, verified against the registry so the crosswalk cannot omit or invent arms.server-urlis the deliberate seam: the kit is URL-agnostic (it consumes finishedsrc/href), and Cardsite's settings ids and handles (kick.embed,venmo.username) resolve to a URL server-side before the kit ever sees them. That is Cardsite mapping, not spec surface, and the disposition names it so. - The kit stays reference material. Per ADR-0031 the fork is not
vendored. The crosswalk needs one surface of the kit — the block-type
enum — and holds it as a small transcribed list in the package
(
kit-types.json), refreshed by hand when the upstream publishes or the snapshot updates.theme.jsonitself, its$defs, its per-type schemas, and the kit's rendering code are read from a scratch extraction of the snapshot when a slice needs them, and never imported.
The parity gate check:block-model enforces (1)–(2) and B4: every
non-bespoke descriptor names props from settings, so phase (d) has a
migration recipe to read. Its scoreboard sentence — "N of 85 arms
rendered by the render spec" — is phase 02's line, the way
check:catalogue's closing sentence was phase 00's.
Consequences
- The
blocks.jsonfile is edited alongside the renderer. Adding a registeredblock_typewithout a descriptor breaks the gate; so does removing a descriptor for an arm the renderer still has. The gate ships innpm run verifyso it runs where it matters. - Phase (d) is enumerable:
specandserver-urlarms migrate one PR each; abespokearm either stays that way (with its reason) or promotes tospec(countdown,review,social_proofare the obvious candidates when their kit counterparts get connected). - The Go generator planned in ADR-0030 reads this same file and emits structs — a later slice, not this one. Because the file is the shape, not a translation layer, that generator has nothing to reconcile.
- Anyone tempted to define a Cardsite-side block schema next to the kit's answers this ADR first.
Source: docs/decisions/0055-the-render-spec-is-a-crosswalk-not-a-rival.md